/* Generated by Cython 0.19.1 on Sun Aug 04 15:59:48 2013 */

#define PY_SSIZE_T_CLEAN
#ifndef CYTHON_USE_PYLONG_INTERNALS
#ifdef PYLONG_BITS_IN_DIGIT
#define CYTHON_USE_PYLONG_INTERNALS 0
#else
#include "pyconfig.h"
#ifdef PYLONG_BITS_IN_DIGIT
#define CYTHON_USE_PYLONG_INTERNALS 1
#else
#define CYTHON_USE_PYLONG_INTERNALS 0
#endif
#endif
#endif
#include "Python.h"
#ifndef Py_PYTHON_H
    #error Python headers needed to compile C extensions, please install development version of Python.
#elif PY_VERSION_HEX < 0x02040000
    #error Cython requires Python 2.4+.
#else
#include <stddef.h> /* For offsetof */
#ifndef offsetof
#define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
#endif
#if !defined(WIN32) && !defined(MS_WINDOWS)
  #ifndef __stdcall
    #define __stdcall
  #endif
  #ifndef __cdecl
    #define __cdecl
  #endif
  #ifndef __fastcall
    #define __fastcall
  #endif
#endif
#ifndef DL_IMPORT
  #define DL_IMPORT(t) t
#endif
#ifndef DL_EXPORT
  #define DL_EXPORT(t) t
#endif
#ifndef PY_LONG_LONG
  #define PY_LONG_LONG LONG_LONG
#endif
#ifndef Py_HUGE_VAL
  #define Py_HUGE_VAL HUGE_VAL
#endif
#ifdef PYPY_VERSION
#define CYTHON_COMPILING_IN_PYPY 1
#define CYTHON_COMPILING_IN_CPYTHON 0
#else
#define CYTHON_COMPILING_IN_PYPY 0
#define CYTHON_COMPILING_IN_CPYTHON 1
#endif
#if PY_VERSION_HEX < 0x02050000
  typedef int Py_ssize_t;
  #define PY_SSIZE_T_MAX INT_MAX
  #define PY_SSIZE_T_MIN INT_MIN
  #define PY_FORMAT_SIZE_T ""
  #define CYTHON_FORMAT_SSIZE_T ""
  #define PyInt_FromSsize_t(z) PyInt_FromLong(z)
  #define PyInt_AsSsize_t(o)   __Pyx_PyInt_AsInt(o)
  #define PyNumber_Index(o)    ((PyNumber_Check(o) && !PyFloat_Check(o)) ? PyNumber_Int(o) : \
                                (PyErr_Format(PyExc_TypeError, \
                                              "expected index value, got %.200s", Py_TYPE(o)->tp_name), \
                                 (PyObject*)0))
  #define __Pyx_PyIndex_Check(o) (PyNumber_Check(o) && !PyFloat_Check(o) && \
                                  !PyComplex_Check(o))
  #define PyIndex_Check __Pyx_PyIndex_Check
  #define PyErr_WarnEx(category, message, stacklevel) PyErr_Warn(category, message)
  #define __PYX_BUILD_PY_SSIZE_T "i"
#else
  #define __PYX_BUILD_PY_SSIZE_T "n"
  #define CYTHON_FORMAT_SSIZE_T "z"
  #define __Pyx_PyIndex_Check PyIndex_Check
#endif
#if PY_VERSION_HEX < 0x02060000
  #define Py_REFCNT(ob) (((PyObject*)(ob))->ob_refcnt)
  #define Py_TYPE(ob)   (((PyObject*)(ob))->ob_type)
  #define Py_SIZE(ob)   (((PyVarObject*)(ob))->ob_size)
  #define PyVarObject_HEAD_INIT(type, size) \
          PyObject_HEAD_INIT(type) size,
  #define PyType_Modified(t)
  typedef struct {
     void *buf;
     PyObject *obj;
     Py_ssize_t len;
     Py_ssize_t itemsize;
     int readonly;
     int ndim;
     char *format;
     Py_ssize_t *shape;
     Py_ssize_t *strides;
     Py_ssize_t *suboffsets;
     void *internal;
  } Py_buffer;
  #define PyBUF_SIMPLE 0
  #define PyBUF_WRITABLE 0x0001
  #define PyBUF_FORMAT 0x0004
  #define PyBUF_ND 0x0008
  #define PyBUF_STRIDES (0x0010 | PyBUF_ND)
  #define PyBUF_C_CONTIGUOUS (0x0020 | PyBUF_STRIDES)
  #define PyBUF_F_CONTIGUOUS (0x0040 | PyBUF_STRIDES)
  #define PyBUF_ANY_CONTIGUOUS (0x0080 | PyBUF_STRIDES)
  #define PyBUF_INDIRECT (0x0100 | PyBUF_STRIDES)
  #define PyBUF_RECORDS (PyBUF_STRIDES | PyBUF_FORMAT | PyBUF_WRITABLE)
  #define PyBUF_FULL (PyBUF_INDIRECT | PyBUF_FORMAT | PyBUF_WRITABLE)
  typedef int (*getbufferproc)(PyObject *, Py_buffer *, int);
  typedef void (*releasebufferproc)(PyObject *, Py_buffer *);
#endif
#if PY_MAJOR_VERSION < 3
  #define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
  #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) \
          PyCode_New(a, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
#else
  #define __Pyx_BUILTIN_MODULE_NAME "builtins"
  #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos) \
          PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
#endif
#if PY_MAJOR_VERSION < 3 && PY_MINOR_VERSION < 6
  #define PyUnicode_FromString(s) PyUnicode_Decode(s, strlen(s), "UTF-8", "strict")
#endif
#if PY_MAJOR_VERSION >= 3
  #define Py_TPFLAGS_CHECKTYPES 0
  #define Py_TPFLAGS_HAVE_INDEX 0
#endif
#if (PY_VERSION_HEX < 0x02060000) || (PY_MAJOR_VERSION >= 3)
  #define Py_TPFLAGS_HAVE_NEWBUFFER 0
#endif
#if PY_VERSION_HEX < 0x02060000
  #define Py_TPFLAGS_HAVE_VERSION_TAG 0
#endif
#if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND)
  #define CYTHON_PEP393_ENABLED 1
  #define __Pyx_PyUnicode_READY(op)       (likely(PyUnicode_IS_READY(op)) ? \
                                              0 : _PyUnicode_Ready((PyObject *)(op)))
  #define __Pyx_PyUnicode_GET_LENGTH(u)   PyUnicode_GET_LENGTH(u)
  #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)
  #define __Pyx_PyUnicode_READ(k, d, i)   PyUnicode_READ(k, d, i)
#else
  #define CYTHON_PEP393_ENABLED 0
  #define __Pyx_PyUnicode_READY(op)       (0)
  #define __Pyx_PyUnicode_GET_LENGTH(u)   PyUnicode_GET_SIZE(u)
  #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i]))
  #define __Pyx_PyUnicode_READ(k, d, i)   ((k=k), (Py_UCS4)(((Py_UNICODE*)d)[i]))
#endif
#if PY_MAJOR_VERSION >= 3
  #define PyBaseString_Type            PyUnicode_Type
  #define PyStringObject               PyUnicodeObject
  #define PyString_Type                PyUnicode_Type
  #define PyString_Check               PyUnicode_Check
  #define PyString_CheckExact          PyUnicode_CheckExact
#endif
#if PY_VERSION_HEX < 0x02060000
  #define PyBytesObject                PyStringObject
  #define PyBytes_Type                 PyString_Type
  #define PyBytes_Check                PyString_Check
  #define PyBytes_CheckExact           PyString_CheckExact
  #define PyBytes_FromString           PyString_FromString
  #define PyBytes_FromStringAndSize    PyString_FromStringAndSize
  #define PyBytes_FromFormat           PyString_FromFormat
  #define PyBytes_DecodeEscape         PyString_DecodeEscape
  #define PyBytes_AsString             PyString_AsString
  #define PyBytes_AsStringAndSize      PyString_AsStringAndSize
  #define PyBytes_Size                 PyString_Size
  #define PyBytes_AS_STRING            PyString_AS_STRING
  #define PyBytes_GET_SIZE             PyString_GET_SIZE
  #define PyBytes_Repr                 PyString_Repr
  #define PyBytes_Concat               PyString_Concat
  #define PyBytes_ConcatAndDel         PyString_ConcatAndDel
#endif
#if PY_MAJOR_VERSION >= 3
  #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj)
  #define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj)
#else
  #define __Pyx_PyBaseString_Check(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj) || \
                                         PyString_Check(obj) || PyUnicode_Check(obj))
  #define __Pyx_PyBaseString_CheckExact(obj) (Py_TYPE(obj) == &PyBaseString_Type)
#endif
#if PY_VERSION_HEX < 0x02060000
  #define PySet_Check(obj)             PyObject_TypeCheck(obj, &PySet_Type)
  #define PyFrozenSet_Check(obj)       PyObject_TypeCheck(obj, &PyFrozenSet_Type)
#endif
#ifndef PySet_CheckExact
  #define PySet_CheckExact(obj)        (Py_TYPE(obj) == &PySet_Type)
#endif
#define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
#if PY_MAJOR_VERSION >= 3
  #define PyIntObject                  PyLongObject
  #define PyInt_Type                   PyLong_Type
  #define PyInt_Check(op)              PyLong_Check(op)
  #define PyInt_CheckExact(op)         PyLong_CheckExact(op)
  #define PyInt_FromString             PyLong_FromString
  #define PyInt_FromUnicode            PyLong_FromUnicode
  #define PyInt_FromLong               PyLong_FromLong
  #define PyInt_FromSize_t             PyLong_FromSize_t
  #define PyInt_FromSsize_t            PyLong_FromSsize_t
  #define PyInt_AsLong                 PyLong_AsLong
  #define PyInt_AS_LONG                PyLong_AS_LONG
  #define PyInt_AsSsize_t              PyLong_AsSsize_t
  #define PyInt_AsUnsignedLongMask     PyLong_AsUnsignedLongMask
  #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
#endif
#if PY_MAJOR_VERSION >= 3
  #define PyBoolObject                 PyLongObject
#endif
#if PY_VERSION_HEX < 0x03020000
  typedef long Py_hash_t;
  #define __Pyx_PyInt_FromHash_t PyInt_FromLong
  #define __Pyx_PyInt_AsHash_t   PyInt_AsLong
#else
  #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t
  #define __Pyx_PyInt_AsHash_t   PyInt_AsSsize_t
#endif
#if (PY_MAJOR_VERSION < 3) || (PY_VERSION_HEX >= 0x03010300)
  #define __Pyx_PySequence_GetSlice(obj, a, b) PySequence_GetSlice(obj, a, b)
  #define __Pyx_PySequence_SetSlice(obj, a, b, value) PySequence_SetSlice(obj, a, b, value)
  #define __Pyx_PySequence_DelSlice(obj, a, b) PySequence_DelSlice(obj, a, b)
#else
  #define __Pyx_PySequence_GetSlice(obj, a, b) (unlikely(!(obj)) ? \
        (PyErr_SetString(PyExc_SystemError, "null argument to internal routine"), (PyObject*)0) : \
        (likely((obj)->ob_type->tp_as_mapping) ? (PySequence_GetSlice(obj, a, b)) : \
            (PyErr_Format(PyExc_TypeError, "'%.200s' object is unsliceable", (obj)->ob_type->tp_name), (PyObject*)0)))
  #define __Pyx_PySequence_SetSlice(obj, a, b, value) (unlikely(!(obj)) ? \
        (PyErr_SetString(PyExc_SystemError, "null argument to internal routine"), -1) : \
        (likely((obj)->ob_type->tp_as_mapping) ? (PySequence_SetSlice(obj, a, b, value)) : \
            (PyErr_Format(PyExc_TypeError, "'%.200s' object doesn't support slice assignment", (obj)->ob_type->tp_name), -1)))
  #define __Pyx_PySequence_DelSlice(obj, a, b) (unlikely(!(obj)) ? \
        (PyErr_SetString(PyExc_SystemError, "null argument to internal routine"), -1) : \
        (likely((obj)->ob_type->tp_as_mapping) ? (PySequence_DelSlice(obj, a, b)) : \
            (PyErr_Format(PyExc_TypeError, "'%.200s' object doesn't support slice deletion", (obj)->ob_type->tp_name), -1)))
#endif
#if PY_MAJOR_VERSION >= 3
  #define PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : PyInstanceMethod_New(func))
#endif
#if PY_VERSION_HEX < 0x02050000
  #define __Pyx_GetAttrString(o,n)   PyObject_GetAttrString((o),((char *)(n)))
  #define __Pyx_SetAttrString(o,n,a) PyObject_SetAttrString((o),((char *)(n)),(a))
  #define __Pyx_DelAttrString(o,n)   PyObject_DelAttrString((o),((char *)(n)))
#else
  #define __Pyx_GetAttrString(o,n)   PyObject_GetAttrString((o),(n))
  #define __Pyx_SetAttrString(o,n,a) PyObject_SetAttrString((o),(n),(a))
  #define __Pyx_DelAttrString(o,n)   PyObject_DelAttrString((o),(n))
#endif
#if PY_VERSION_HEX < 0x02050000
  #define __Pyx_NAMESTR(n) ((char *)(n))
  #define __Pyx_DOCSTR(n)  ((char *)(n))
#else
  #define __Pyx_NAMESTR(n) (n)
  #define __Pyx_DOCSTR(n)  (n)
#endif
#ifndef CYTHON_INLINE
  #if defined(__GNUC__)
    #define CYTHON_INLINE __inline__
  #elif defined(_MSC_VER)
    #define CYTHON_INLINE __inline
  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define CYTHON_INLINE inline
  #else
    #define CYTHON_INLINE
  #endif
#endif
#ifndef CYTHON_RESTRICT
  #if defined(__GNUC__)
    #define CYTHON_RESTRICT __restrict__
  #elif defined(_MSC_VER)
    #define CYTHON_RESTRICT __restrict
  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define CYTHON_RESTRICT restrict
  #else
    #define CYTHON_RESTRICT
  #endif
#endif
#ifdef NAN
#define __PYX_NAN() ((float) NAN)
#else
static CYTHON_INLINE float __PYX_NAN() {
  /* Initialize NaN. The sign is irrelevant, an exponent with all bits 1 and
   a nonzero mantissa means NaN. If the first bit in the mantissa is 1, it is
   a quiet NaN. */
  float value;
  memset(&value, 0xFF, sizeof(value));
  return value;
}
#endif


#if PY_MAJOR_VERSION >= 3
  #define __Pyx_PyNumber_Divide(x,y)         PyNumber_TrueDivide(x,y)
  #define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceTrueDivide(x,y)
#else
  #define __Pyx_PyNumber_Divide(x,y)         PyNumber_Divide(x,y)
  #define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceDivide(x,y)
#endif

#ifndef __PYX_EXTERN_C
  #ifdef __cplusplus
    #define __PYX_EXTERN_C extern "C"
  #else
    #define __PYX_EXTERN_C extern
  #endif
#endif

#if defined(WIN32) || defined(MS_WINDOWS)
#define _USE_MATH_DEFINES
#endif
#include <math.h>
#define __PYX_HAVE__kivy__graphics__c_opengl_debug
#define __PYX_HAVE_API__kivy__graphics__c_opengl_debug
#include "math.h"
#include "stdlib.h"
#include "string.h"
#include "gl_redirect.h"
#ifdef _OPENMP
#include <omp.h>
#endif /* _OPENMP */

#ifdef PYREX_WITHOUT_ASSERTIONS
#define CYTHON_WITHOUT_ASSERTIONS
#endif

#ifndef CYTHON_UNUSED
# if defined(__GNUC__)
#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
#     define CYTHON_UNUSED __attribute__ ((__unused__))
#   else
#     define CYTHON_UNUSED
#   endif
# elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER))
#   define CYTHON_UNUSED __attribute__ ((__unused__))
# else
#   define CYTHON_UNUSED
# endif
#endif
typedef struct {PyObject **p; char *s; const Py_ssize_t n; const char* encoding;
                const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry; /*proto*/

#define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0
#define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT 0
#define __PYX_DEFAULT_STRING_ENCODING "utf-8"
#define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString
#define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject*);
static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length);
#define __Pyx_PyBytes_FromString        PyBytes_FromString
#define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(char*);
#if PY_MAJOR_VERSION < 3
    #define __Pyx_PyStr_FromString        __Pyx_PyBytes_FromString
    #define __Pyx_PyStr_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
#else
    #define __Pyx_PyStr_FromString        __Pyx_PyUnicode_FromString
    #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize
#endif
#define __Pyx_PyObject_AsUString(s)    ((unsigned char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_FromUString(s)  __Pyx_PyObject_FromString((char*)s)
#define __Pyx_PyBytes_FromUString(s)   __Pyx_PyBytes_FromString((char*)s)
#define __Pyx_PyStr_FromUString(s)     __Pyx_PyStr_FromString((char*)s)
#define __Pyx_PyUnicode_FromUString(s) __Pyx_PyUnicode_FromString((char*)s)
#if PY_MAJOR_VERSION < 3
static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u)
{
    const Py_UNICODE *u_end = u;
    while (*u_end++) ;
    return u_end - u - 1;
}
#else
#define __Pyx_Py_UNICODE_strlen Py_UNICODE_strlen
#endif
#define __Pyx_PyUnicode_FromUnicode(u)       PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u))
#define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode
#define __Pyx_PyUnicode_AsUnicode            PyUnicode_AsUnicode
#define __Pyx_Owned_Py_None(b) (Py_INCREF(Py_None), Py_None)
#define __Pyx_PyBool_FromLong(b) ((b) ? (Py_INCREF(Py_True), Py_True) : (Py_INCREF(Py_False), Py_False))
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*);
static CYTHON_INLINE PyObject* __Pyx_PyNumber_Int(PyObject* x);
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t);
static CYTHON_INLINE size_t __Pyx_PyInt_AsSize_t(PyObject*);
#if CYTHON_COMPILING_IN_CPYTHON
#define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
#else
#define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x)
#endif
#define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x))
#if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
static int __Pyx_sys_getdefaultencoding_not_ascii;
static int __Pyx_init_sys_getdefaultencoding_params() {
    PyObject* sys = NULL;
    PyObject* default_encoding = NULL;
    PyObject* ascii_chars_u = NULL;
    PyObject* ascii_chars_b = NULL;
    sys = PyImport_ImportModule("sys");
    if (sys == NULL) goto bad;
    default_encoding = PyObject_CallMethod(sys, (char*) (const char*) "getdefaultencoding", NULL);
    if (default_encoding == NULL) goto bad;
    if (strcmp(PyBytes_AsString(default_encoding), "ascii") == 0) {
        __Pyx_sys_getdefaultencoding_not_ascii = 0;
    } else {
        const char* default_encoding_c = PyBytes_AS_STRING(default_encoding);
        char ascii_chars[128];
        int c;
        for (c = 0; c < 128; c++) {
            ascii_chars[c] = c;
        }
        __Pyx_sys_getdefaultencoding_not_ascii = 1;
        ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL);
        if (ascii_chars_u == NULL) goto bad;
        ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL);
        if (ascii_chars_b == NULL || strncmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) {
            PyErr_Format(
                PyExc_ValueError,
                "This module compiled with c_string_encoding=ascii, but default encoding '%s' is not a superset of ascii.",
                default_encoding_c);
            goto bad;
        }
    }
    Py_XDECREF(sys);
    Py_XDECREF(default_encoding);
    Py_XDECREF(ascii_chars_u);
    Py_XDECREF(ascii_chars_b);
    return 0;
bad:
    Py_XDECREF(sys);
    Py_XDECREF(default_encoding);
    Py_XDECREF(ascii_chars_u);
    Py_XDECREF(ascii_chars_b);
    return -1;
}
#endif
#if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT && PY_MAJOR_VERSION >= 3
#define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL)
#else
#define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL)
#if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
static char* __PYX_DEFAULT_STRING_ENCODING;
static int __Pyx_init_sys_getdefaultencoding_params() {
    PyObject* sys = NULL;
    PyObject* default_encoding = NULL;
    char* default_encoding_c;
    sys = PyImport_ImportModule("sys");
    if (sys == NULL) goto bad;
    default_encoding = PyObject_CallMethod(sys, (char*) (const char*) "getdefaultencoding", NULL);
    if (default_encoding == NULL) goto bad;
    default_encoding_c = PyBytes_AS_STRING(default_encoding);
    __PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c));
    strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c);
    Py_DECREF(sys);
    Py_DECREF(default_encoding);
    return 0;
bad:
    Py_XDECREF(sys);
    Py_XDECREF(default_encoding);
    return -1;
}
#endif
#endif


#ifdef __GNUC__
  /* Test for GCC > 2.95 */
  #if __GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95))
    #define likely(x)   __builtin_expect(!!(x), 1)
    #define unlikely(x) __builtin_expect(!!(x), 0)
  #else /* __GNUC__ > 2 ... */
    #define likely(x)   (x)
    #define unlikely(x) (x)
  #endif /* __GNUC__ > 2 ... */
#else /* __GNUC__ */
  #define likely(x)   (x)
  #define unlikely(x) (x)
#endif /* __GNUC__ */

static PyObject *__pyx_m;
static PyObject *__pyx_d;
static PyObject *__pyx_b;
static PyObject *__pyx_empty_tuple;
static PyObject *__pyx_empty_bytes;
static int __pyx_lineno;
static int __pyx_clineno = 0;
static const char * __pyx_cfilenm= __FILE__;
static const char *__pyx_filename;


static const char *__pyx_f[] = {
  "c_opengl_debug.pyx",
};

/* "kivy\graphics\c_opengl_debug.pxd":2
 * ctypedef void               GLvoid
 * ctypedef char               GLchar             # <<<<<<<<<<<<<<
 * ctypedef unsigned int       GLenum
 * ctypedef unsigned char      GLboolean
 */
typedef char __pyx_t_4kivy_8graphics_14c_opengl_debug_GLchar;

/* "kivy\graphics\c_opengl_debug.pxd":3
 * ctypedef void               GLvoid
 * ctypedef char               GLchar
 * ctypedef unsigned int       GLenum             # <<<<<<<<<<<<<<
 * ctypedef unsigned char      GLboolean
 * ctypedef unsigned int       GLbitfield
 */
typedef unsigned int __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum;

/* "kivy\graphics\c_opengl_debug.pxd":4
 * ctypedef char               GLchar
 * ctypedef unsigned int       GLenum
 * ctypedef unsigned char      GLboolean             # <<<<<<<<<<<<<<
 * ctypedef unsigned int       GLbitfield
 * ctypedef short              GLshort
 */
typedef unsigned char __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean;

/* "kivy\graphics\c_opengl_debug.pxd":5
 * ctypedef unsigned int       GLenum
 * ctypedef unsigned char      GLboolean
 * ctypedef unsigned int       GLbitfield             # <<<<<<<<<<<<<<
 * ctypedef short              GLshort
 * ctypedef int                GLint
 */
typedef unsigned int __pyx_t_4kivy_8graphics_14c_opengl_debug_GLbitfield;

/* "kivy\graphics\c_opengl_debug.pxd":6
 * ctypedef unsigned char      GLboolean
 * ctypedef unsigned int       GLbitfield
 * ctypedef short              GLshort             # <<<<<<<<<<<<<<
 * ctypedef int                GLint
 * ctypedef int                GLsizei
 */
typedef short __pyx_t_4kivy_8graphics_14c_opengl_debug_GLshort;

/* "kivy\graphics\c_opengl_debug.pxd":7
 * ctypedef unsigned int       GLbitfield
 * ctypedef short              GLshort
 * ctypedef int                GLint             # <<<<<<<<<<<<<<
 * ctypedef int                GLsizei
 * ctypedef unsigned short     GLushort
 */
typedef int __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint;

/* "kivy\graphics\c_opengl_debug.pxd":8
 * ctypedef short              GLshort
 * ctypedef int                GLint
 * ctypedef int                GLsizei             # <<<<<<<<<<<<<<
 * ctypedef unsigned short     GLushort
 * ctypedef unsigned int       GLuint
 */
typedef int __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei;

/* "kivy\graphics\c_opengl_debug.pxd":9
 * ctypedef int                GLint
 * ctypedef int                GLsizei
 * ctypedef unsigned short     GLushort             # <<<<<<<<<<<<<<
 * ctypedef unsigned int       GLuint
 * ctypedef signed char        GLbyte
 */
typedef unsigned short __pyx_t_4kivy_8graphics_14c_opengl_debug_GLushort;

/* "kivy\graphics\c_opengl_debug.pxd":10
 * ctypedef int                GLsizei
 * ctypedef unsigned short     GLushort
 * ctypedef unsigned int       GLuint             # <<<<<<<<<<<<<<
 * ctypedef signed char        GLbyte
 * ctypedef unsigned char      GLubyte
 */
typedef unsigned int __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint;

/* "kivy\graphics\c_opengl_debug.pxd":11
 * ctypedef unsigned short     GLushort
 * ctypedef unsigned int       GLuint
 * ctypedef signed char        GLbyte             # <<<<<<<<<<<<<<
 * ctypedef unsigned char      GLubyte
 * ctypedef float              GLfloat
 */
typedef signed char __pyx_t_4kivy_8graphics_14c_opengl_debug_GLbyte;

/* "kivy\graphics\c_opengl_debug.pxd":12
 * ctypedef unsigned int       GLuint
 * ctypedef signed char        GLbyte
 * ctypedef unsigned char      GLubyte             # <<<<<<<<<<<<<<
 * ctypedef float              GLfloat
 * ctypedef float              GLclampf
 */
typedef unsigned char __pyx_t_4kivy_8graphics_14c_opengl_debug_GLubyte;

/* "kivy\graphics\c_opengl_debug.pxd":13
 * ctypedef signed char        GLbyte
 * ctypedef unsigned char      GLubyte
 * ctypedef float              GLfloat             # <<<<<<<<<<<<<<
 * ctypedef float              GLclampf
 * ctypedef int                GLfixed
 */
typedef float __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat;

/* "kivy\graphics\c_opengl_debug.pxd":14
 * ctypedef unsigned char      GLubyte
 * ctypedef float              GLfloat
 * ctypedef float              GLclampf             # <<<<<<<<<<<<<<
 * ctypedef int                GLfixed
 * ctypedef signed long int    GLintptr
 */
typedef float __pyx_t_4kivy_8graphics_14c_opengl_debug_GLclampf;

/* "kivy\graphics\c_opengl_debug.pxd":15
 * ctypedef float              GLfloat
 * ctypedef float              GLclampf
 * ctypedef int                GLfixed             # <<<<<<<<<<<<<<
 * ctypedef signed long int    GLintptr
 * ctypedef signed long int    GLsizeiptr
 */
typedef int __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfixed;

/* "kivy\graphics\c_opengl_debug.pxd":16
 * ctypedef float              GLclampf
 * ctypedef int                GLfixed
 * ctypedef signed long int    GLintptr             # <<<<<<<<<<<<<<
 * ctypedef signed long int    GLsizeiptr
 * 
 */
typedef signed long __pyx_t_4kivy_8graphics_14c_opengl_debug_GLintptr;

/* "kivy\graphics\c_opengl_debug.pxd":17
 * ctypedef int                GLfixed
 * ctypedef signed long int    GLintptr
 * ctypedef signed long int    GLsizeiptr             # <<<<<<<<<<<<<<
 * 
 * cdef void   glActiveTexture (GLenum texture) with gil
 */
typedef signed long __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizeiptr;

/*--- Type declarations ---*/

/* "kivy\graphics\c_opengl_debug.pxd":1
 * ctypedef void               GLvoid             # <<<<<<<<<<<<<<
 * ctypedef char               GLchar
 * ctypedef unsigned int       GLenum
 */
typedef void __pyx_t_4kivy_8graphics_14c_opengl_debug_GLvoid;
#ifndef CYTHON_REFNANNY
  #define CYTHON_REFNANNY 0
#endif
#if CYTHON_REFNANNY
  typedef struct {
    void (*INCREF)(void*, PyObject*, int);
    void (*DECREF)(void*, PyObject*, int);
    void (*GOTREF)(void*, PyObject*, int);
    void (*GIVEREF)(void*, PyObject*, int);
    void* (*SetupContext)(const char*, int, const char*);
    void (*FinishContext)(void**);
  } __Pyx_RefNannyAPIStruct;
  static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL;
  static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname); /*proto*/
  #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL;
#ifdef WITH_THREAD
  #define __Pyx_RefNannySetupContext(name, acquire_gil) \
          if (acquire_gil) { \
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure(); \
              __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__); \
              PyGILState_Release(__pyx_gilstate_save); \
          } else { \
              __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__); \
          }
#else
  #define __Pyx_RefNannySetupContext(name, acquire_gil) \
          __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__)
#endif
  #define __Pyx_RefNannyFinishContext() \
          __Pyx_RefNanny->FinishContext(&__pyx_refnanny)
  #define __Pyx_INCREF(r)  __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_DECREF(r)  __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_GOTREF(r)  __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_XINCREF(r)  do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0)
  #define __Pyx_XDECREF(r)  do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0)
  #define __Pyx_XGOTREF(r)  do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0)
  #define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0)
#else
  #define __Pyx_RefNannyDeclarations
  #define __Pyx_RefNannySetupContext(name, acquire_gil)
  #define __Pyx_RefNannyFinishContext()
  #define __Pyx_INCREF(r) Py_INCREF(r)
  #define __Pyx_DECREF(r) Py_DECREF(r)
  #define __Pyx_GOTREF(r)
  #define __Pyx_GIVEREF(r)
  #define __Pyx_XINCREF(r) Py_XINCREF(r)
  #define __Pyx_XDECREF(r) Py_XDECREF(r)
  #define __Pyx_XGOTREF(r)
  #define __Pyx_XGIVEREF(r)
#endif /* CYTHON_REFNANNY */
#define __Pyx_CLEAR(r)    do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0)
#define __Pyx_XCLEAR(r)   do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0)

#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) {
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_getattro))
        return tp->tp_getattro(obj, attr_name);
#if PY_MAJOR_VERSION < 3
    if (likely(tp->tp_getattr))
        return tp->tp_getattr(obj, PyString_AS_STRING(attr_name));
#endif
    return PyObject_GetAttr(obj, attr_name);
}
#else
#define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n)
#endif

static PyObject *__Pyx_GetBuiltinName(PyObject *name); /*proto*/

#ifndef __PYX_FORCE_INIT_THREADS
  #define __PYX_FORCE_INIT_THREADS 0
#endif

static CYTHON_INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb); /*proto*/
static CYTHON_INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb); /*proto*/

static void __Pyx_WriteUnraisable(const char *name, int clineno,
                                  int lineno, const char *filename); /*proto*/

static int __Pyx_Print(PyObject*, PyObject *, int); /*proto*/
#if CYTHON_COMPILING_IN_PYPY || PY_MAJOR_VERSION >= 3
static PyObject* __pyx_print = 0;
static PyObject* __pyx_print_kwargs = 0;
#endif

static CYTHON_INLINE PyObject *__Pyx_PyInt_to_py_GLenum(GLenum);

static int __Pyx_PrintOne(PyObject* stream, PyObject *o); /*proto*/

static CYTHON_INLINE unsigned char __Pyx_PyInt_AsUnsignedChar(PyObject *);

static CYTHON_INLINE unsigned short __Pyx_PyInt_AsUnsignedShort(PyObject *);

static CYTHON_INLINE unsigned int __Pyx_PyInt_AsUnsignedInt(PyObject *);

static CYTHON_INLINE char __Pyx_PyInt_AsChar(PyObject *);

static CYTHON_INLINE short __Pyx_PyInt_AsShort(PyObject *);

static CYTHON_INLINE int __Pyx_PyInt_AsInt(PyObject *);

static CYTHON_INLINE signed char __Pyx_PyInt_AsSignedChar(PyObject *);

static CYTHON_INLINE signed short __Pyx_PyInt_AsSignedShort(PyObject *);

static CYTHON_INLINE signed int __Pyx_PyInt_AsSignedInt(PyObject *);

static CYTHON_INLINE int __Pyx_PyInt_AsLongDouble(PyObject *);

static CYTHON_INLINE unsigned long __Pyx_PyInt_AsUnsignedLong(PyObject *);

static CYTHON_INLINE unsigned PY_LONG_LONG __Pyx_PyInt_AsUnsignedLongLong(PyObject *);

static CYTHON_INLINE long __Pyx_PyInt_AsLong(PyObject *);

static CYTHON_INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject *);

static CYTHON_INLINE signed long __Pyx_PyInt_AsSignedLong(PyObject *);

static CYTHON_INLINE signed PY_LONG_LONG __Pyx_PyInt_AsSignedLongLong(PyObject *);

static int __Pyx_check_binary_version(void);

static int __Pyx_ExportFunction(const char *name, void (*f)(void), const char *sig); /*proto*/

typedef struct {
    int code_line;
    PyCodeObject* code_object;
} __Pyx_CodeObjectCacheEntry;
struct __Pyx_CodeObjectCache {
    int count;
    int max_count;
    __Pyx_CodeObjectCacheEntry* entries;
};
static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL};
static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line);
static PyCodeObject *__pyx_find_code_object(int code_line);
static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object);

static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename); /*proto*/

static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); /*proto*/


/* Module declarations from 'kivy.graphics.c_opengl' */

/* Module declarations from 'kivy.graphics.c_opengl_debug' */
static double __pyx_v_4kivy_8graphics_14c_opengl_debug_pi;
static __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError(void); /*proto*/
#define __Pyx_MODULE_NAME "kivy.graphics.c_opengl_debug"
int __pyx_module_is_main_kivy__graphics__c_opengl_debug = 0;

/* Implementation of 'kivy.graphics.c_opengl_debug' */
static PyObject *__pyx_builtin_hex;
static char __pyx_k_1[] = "GL glActiveTexture( texture = ";
static char __pyx_k_2[] = ", )";
static char __pyx_k_3[] = "OpenGL Error %d / %x";
static char __pyx_k_4[] = "GL glAttachShader( program = ";
static char __pyx_k_5[] = ", shader = ";
static char __pyx_k_6[] = "GL glBindAttribLocation( program = ";
static char __pyx_k_7[] = ", index = ";
static char __pyx_k_8[] = ", name*=";
static char __pyx_k_9[] = "GL glBindBuffer( target = ";
static char __pyx_k_10[] = ", buffer = ";
static char __pyx_k_11[] = "GL glBindFramebuffer( target = ";
static char __pyx_k_12[] = ", framebuffer = ";
static char __pyx_k_13[] = "GL glBindRenderbuffer( target = ";
static char __pyx_k_14[] = ", renderbuffer = ";
static char __pyx_k_15[] = "GL glBindTexture( target = ";
static char __pyx_k_16[] = ", texture = ";
static char __pyx_k_17[] = "GL glBlendColor( red = ";
static char __pyx_k_18[] = ", green = ";
static char __pyx_k_19[] = ", blue = ";
static char __pyx_k_20[] = ", alpha = ";
static char __pyx_k_21[] = "GL glBlendEquation( mode = ";
static char __pyx_k_22[] = "GL glBlendEquationSeparate( modeRGB = ";
static char __pyx_k_23[] = ", modeAlpha = ";
static char __pyx_k_24[] = "GL glBlendFunc( sfactor = ";
static char __pyx_k_25[] = ", dfactor = ";
static char __pyx_k_26[] = "GL glBlendFuncSeparate( srcRGB = ";
static char __pyx_k_27[] = ", dstRGB = ";
static char __pyx_k_28[] = ", srcAlpha = ";
static char __pyx_k_29[] = ", dstAlpha = ";
static char __pyx_k_30[] = "GL glBufferData( target = ";
static char __pyx_k_31[] = ", size = ";
static char __pyx_k_32[] = ", data*=";
static char __pyx_k_33[] = ", usage = ";
static char __pyx_k_34[] = "GL glBufferSubData( target = ";
static char __pyx_k_35[] = ", offset = ";
static char __pyx_k_36[] = "GL glCheckFramebufferStatus( target = ";
static char __pyx_k_37[] = "GL glClear( mask = ";
static char __pyx_k_38[] = "GL glClearColor( red = ";
static char __pyx_k_39[] = "GL glClearStencil( s = ";
static char __pyx_k_40[] = "GL glColorMask( red = ";
static char __pyx_k_41[] = "GL glCompileShader( shader = ";
static char __pyx_k_42[] = "GL glCompressedTexImage2D( target = ";
static char __pyx_k_43[] = ", level = ";
static char __pyx_k_44[] = ", internalformat = ";
static char __pyx_k_45[] = ", width = ";
static char __pyx_k_46[] = ", height = ";
static char __pyx_k_47[] = ", border = ";
static char __pyx_k_48[] = ", imageSize = ";
static char __pyx_k_49[] = "GL glCompressedTexSubImage2D( target = ";
static char __pyx_k_50[] = ", xoffset = ";
static char __pyx_k_51[] = ", yoffset = ";
static char __pyx_k_52[] = ", format = ";
static char __pyx_k_53[] = "GL glCopyTexImage2D( target = ";
static char __pyx_k_54[] = ", x = ";
static char __pyx_k_55[] = ", y = ";
static char __pyx_k_56[] = "GL glCopyTexSubImage2D( target = ";
static char __pyx_k_57[] = "GL glCreateProgram( )";
static char __pyx_k_58[] = "GL glCreateShader( type = ";
static char __pyx_k_59[] = "GL glCullFace( mode = ";
static char __pyx_k_60[] = "GL glDeleteBuffers( n = ";
static char __pyx_k_61[] = ", buffers*=";
static char __pyx_k_62[] = "GL glDeleteFramebuffers( n = ";
static char __pyx_k_63[] = ", framebuffers*=";
static char __pyx_k_64[] = "GL glDeleteProgram( program = ";
static char __pyx_k_65[] = "GL glDeleteRenderbuffers( n = ";
static char __pyx_k_66[] = ", renderbuffers*=";
static char __pyx_k_67[] = "GL glDeleteShader( shader = ";
static char __pyx_k_68[] = "GL glDeleteTextures( n = ";
static char __pyx_k_69[] = ", textures*=";
static char __pyx_k_70[] = "GL glDepthFunc( func = ";
static char __pyx_k_71[] = "GL glDepthMask( flag = ";
static char __pyx_k_72[] = "GL glDetachShader( program = ";
static char __pyx_k_73[] = "GL glDisable( cap = ";
static char __pyx_k_74[] = "GL glDisableVertexAttribArray( index = ";
static char __pyx_k_75[] = "GL glDrawArrays( mode = ";
static char __pyx_k_76[] = ", first = ";
static char __pyx_k_77[] = ", count = ";
static char __pyx_k_78[] = "GL glDrawElements( mode = ";
static char __pyx_k_79[] = ", type = ";
static char __pyx_k_80[] = ", indices*=";
static char __pyx_k_81[] = "GL glEnable( cap = ";
static char __pyx_k_82[] = "GL glEnableVertexAttribArray( index = ";
static char __pyx_k_83[] = "GL glFinish( )";
static char __pyx_k_84[] = "GL glFlush( )";
static char __pyx_k_85[] = "GL glFramebufferRenderbuffer( target = ";
static char __pyx_k_86[] = ", attachment = ";
static char __pyx_k_87[] = ", renderbuffertarget = ";
static char __pyx_k_88[] = "GL glFramebufferTexture2D( target = ";
static char __pyx_k_89[] = ", textarget = ";
static char __pyx_k_90[] = "GL glFrontFace( mode = ";
static char __pyx_k_91[] = "GL glGenBuffers( n = ";
static char __pyx_k_92[] = "GL glGenerateMipmap( target = ";
static char __pyx_k_93[] = "GL glGenFramebuffers( n = ";
static char __pyx_k_94[] = "GL glGenRenderbuffers( n = ";
static char __pyx_k_95[] = "GL glGenTextures( n = ";
static char __pyx_k_96[] = "GL glGetActiveAttrib( program = ";
static char __pyx_k_97[] = ", bufsize = ";
static char __pyx_k_98[] = ", length*=";
static char __pyx_k_99[] = ", size*=";
static char __pyx_k_100[] = ", type*=";
static char __pyx_k_101[] = "GL glGetActiveUniform( program = ";
static char __pyx_k_102[] = "GL glGetAttachedShaders( program = ";
static char __pyx_k_103[] = ", maxcount = ";
static char __pyx_k_104[] = ", count*=";
static char __pyx_k_105[] = ", shaders*=";
static char __pyx_k_106[] = "GL glGetAttribLocation( program = ";
static char __pyx_k_107[] = "GL glGetBooleanv( pname = ";
static char __pyx_k_108[] = ", params*=";
static char __pyx_k_109[] = "GL glGetBufferParameteriv( target = ";
static char __pyx_k_110[] = ", pname = ";
static char __pyx_k_111[] = "GL glGetError( )";
static char __pyx_k_112[] = "GL glGetFloatv( pname = ";
static char __pyx_k_113[] = "GL glGetFramebufferAttachmentParameteriv( target = ";
static char __pyx_k_114[] = "GL glGetIntegerv( pname = ";
static char __pyx_k_115[] = "GL glGetProgramiv( program = ";
static char __pyx_k_116[] = "GL glGetProgramInfoLog( program = ";
static char __pyx_k_117[] = ", infolog*=";
static char __pyx_k_118[] = "GL glGetRenderbufferParameteriv( target = ";
static char __pyx_k_119[] = "GL glGetShaderiv( shader = ";
static char __pyx_k_120[] = "GL glGetShaderInfoLog( shader = ";
static char __pyx_k_121[] = "GL glGetShaderSource( shader = ";
static char __pyx_k_122[] = ", source*=";
static char __pyx_k_123[] = "GL glGetString( name = ";
static char __pyx_k_124[] = "GL glGetTexParameterfv( target = ";
static char __pyx_k_125[] = "GL glGetTexParameteriv( target = ";
static char __pyx_k_126[] = "GL glGetUniformfv( program = ";
static char __pyx_k_127[] = ", location = ";
static char __pyx_k_128[] = "GL glGetUniformiv( program = ";
static char __pyx_k_129[] = "GL glGetUniformLocation( program = ";
static char __pyx_k_130[] = "GL glGetVertexAttribfv( index = ";
static char __pyx_k_131[] = "GL glGetVertexAttribiv( index = ";
static char __pyx_k_132[] = "GL glGetVertexAttribPointerv( index = ";
static char __pyx_k_133[] = ", pointer**=";
static char __pyx_k_134[] = "GL glHint( target = ";
static char __pyx_k_135[] = ", mode = ";
static char __pyx_k_136[] = "GL glIsBuffer( buffer = ";
static char __pyx_k_137[] = "GL glIsEnabled( cap = ";
static char __pyx_k_138[] = "GL glIsFramebuffer( framebuffer = ";
static char __pyx_k_139[] = "GL glIsProgram( program = ";
static char __pyx_k_140[] = "GL glIsRenderbuffer( renderbuffer = ";
static char __pyx_k_141[] = "GL glIsShader( shader = ";
static char __pyx_k_142[] = "GL glIsTexture( texture = ";
static char __pyx_k_143[] = "GL glLineWidth( width = ";
static char __pyx_k_144[] = "GL glLinkProgram( program = ";
static char __pyx_k_145[] = "GL glPixelStorei( pname = ";
static char __pyx_k_146[] = ", param = ";
static char __pyx_k_147[] = "GL glPolygonOffset( factor = ";
static char __pyx_k_148[] = ", units = ";
static char __pyx_k_149[] = "GL glReadPixels( x = ";
static char __pyx_k_150[] = ", pixels*=";
static char __pyx_k_151[] = "GL glRenderbufferStorage( target = ";
static char __pyx_k_152[] = "GL glSampleCoverage( value = ";
static char __pyx_k_153[] = ", invert = ";
static char __pyx_k_154[] = "GL glScissor( x = ";
static char __pyx_k_155[] = "GL glShaderSource( shader = ";
static char __pyx_k_156[] = ", string**=";
static char __pyx_k_157[] = "ERR %d / %x";
static char __pyx_k_158[] = "GL glStencilFunc( func = ";
static char __pyx_k_159[] = ", ref = ";
static char __pyx_k_160[] = ", mask = ";
static char __pyx_k_161[] = "GL glStencilFuncSeparate( face = ";
static char __pyx_k_162[] = ", func = ";
static char __pyx_k_163[] = "GL glStencilMask( mask = ";
static char __pyx_k_164[] = "GL glStencilMaskSeparate( face = ";
static char __pyx_k_165[] = "GL glStencilOp( fail = ";
static char __pyx_k_166[] = ", zfail = ";
static char __pyx_k_167[] = ", zpass = ";
static char __pyx_k_168[] = "GL glStencilOpSeparate( face = ";
static char __pyx_k_169[] = ", fail = ";
static char __pyx_k_170[] = "GL glTexImage2D( target = ";
static char __pyx_k_171[] = "GL glTexParameterf( target = ";
static char __pyx_k_172[] = "GL glTexParameterfv( target = ";
static char __pyx_k_173[] = "GL glTexParameteri( target = ";
static char __pyx_k_174[] = "GL glTexParameteriv( target = ";
static char __pyx_k_175[] = "GL glTexSubImage2D( target = ";
static char __pyx_k_176[] = "GL glUniform1f( location = ";
static char __pyx_k_177[] = "GL glUniform1fv( location = ";
static char __pyx_k_178[] = ", v*=";
static char __pyx_k_179[] = "GL glUniform1i( location = ";
static char __pyx_k_180[] = "GL glUniform1iv( location = ";
static char __pyx_k_181[] = "GL glUniform2f( location = ";
static char __pyx_k_182[] = "GL glUniform2fv( location = ";
static char __pyx_k_183[] = "GL glUniform2i( location = ";
static char __pyx_k_184[] = "GL glUniform2iv( location = ";
static char __pyx_k_185[] = "GL glUniform3f( location = ";
static char __pyx_k_186[] = ", z = ";
static char __pyx_k_187[] = "GL glUniform3fv( location = ";
static char __pyx_k_188[] = "GL glUniform3i( location = ";
static char __pyx_k_189[] = "GL glUniform3iv( location = ";
static char __pyx_k_190[] = "GL glUniform4f( location = ";
static char __pyx_k_191[] = ", w = ";
static char __pyx_k_192[] = "GL glUniform4fv( location = ";
static char __pyx_k_193[] = "GL glUniform4i( location = ";
static char __pyx_k_194[] = "GL glUniform4iv( location = ";
static char __pyx_k_195[] = "GL glUniformMatrix2fv( location = ";
static char __pyx_k_196[] = ", transpose = ";
static char __pyx_k_197[] = ", value*=";
static char __pyx_k_198[] = "GL glUniformMatrix3fv( location = ";
static char __pyx_k_199[] = "GL glUniformMatrix4fv( location = ";
static char __pyx_k_200[] = "GL glUseProgram( program = ";
static char __pyx_k_201[] = "GL glValidateProgram( program = ";
static char __pyx_k_202[] = "GL glVertexAttrib1f( indx = ";
static char __pyx_k_203[] = "GL glVertexAttrib1fv( indx = ";
static char __pyx_k_204[] = ", values*=";
static char __pyx_k_205[] = "GL glVertexAttrib2f( indx = ";
static char __pyx_k_206[] = "GL glVertexAttrib2fv( indx = ";
static char __pyx_k_207[] = "GL glVertexAttrib3f( indx = ";
static char __pyx_k_208[] = "GL glVertexAttrib3fv( indx = ";
static char __pyx_k_209[] = "GL glVertexAttrib4f( indx = ";
static char __pyx_k_210[] = "GL glVertexAttrib4fv( indx = ";
static char __pyx_k_211[] = "GL glVertexAttribPointer( indx = ";
static char __pyx_k_212[] = ", normalized = ";
static char __pyx_k_213[] = ", stride = ";
static char __pyx_k_214[] = ", ptr*=";
static char __pyx_k_215[] = "GL glViewport( x = ";
static char __pyx_k__end[] = "end";
static char __pyx_k__hex[] = "hex";
static char __pyx_k__file[] = "file";
static char __pyx_k__print[] = "print";
static char __pyx_k____main__[] = "__main__";
static char __pyx_k____test__[] = "__test__";
static PyObject *__pyx_kp_s_1;
static PyObject *__pyx_kp_s_10;
static PyObject *__pyx_kp_s_100;
static PyObject *__pyx_kp_s_101;
static PyObject *__pyx_kp_s_102;
static PyObject *__pyx_kp_s_103;
static PyObject *__pyx_kp_s_104;
static PyObject *__pyx_kp_s_105;
static PyObject *__pyx_kp_s_106;
static PyObject *__pyx_kp_s_107;
static PyObject *__pyx_kp_s_108;
static PyObject *__pyx_kp_s_109;
static PyObject *__pyx_kp_s_11;
static PyObject *__pyx_kp_s_110;
static PyObject *__pyx_kp_s_111;
static PyObject *__pyx_kp_s_112;
static PyObject *__pyx_kp_s_113;
static PyObject *__pyx_kp_s_114;
static PyObject *__pyx_kp_s_115;
static PyObject *__pyx_kp_s_116;
static PyObject *__pyx_kp_s_117;
static PyObject *__pyx_kp_s_118;
static PyObject *__pyx_kp_s_119;
static PyObject *__pyx_kp_s_12;
static PyObject *__pyx_kp_s_120;
static PyObject *__pyx_kp_s_121;
static PyObject *__pyx_kp_s_122;
static PyObject *__pyx_kp_s_123;
static PyObject *__pyx_kp_s_124;
static PyObject *__pyx_kp_s_125;
static PyObject *__pyx_kp_s_126;
static PyObject *__pyx_kp_s_127;
static PyObject *__pyx_kp_s_128;
static PyObject *__pyx_kp_s_129;
static PyObject *__pyx_kp_s_13;
static PyObject *__pyx_kp_s_130;
static PyObject *__pyx_kp_s_131;
static PyObject *__pyx_kp_s_132;
static PyObject *__pyx_kp_s_133;
static PyObject *__pyx_kp_s_134;
static PyObject *__pyx_kp_s_135;
static PyObject *__pyx_kp_s_136;
static PyObject *__pyx_kp_s_137;
static PyObject *__pyx_kp_s_138;
static PyObject *__pyx_kp_s_139;
static PyObject *__pyx_kp_s_14;
static PyObject *__pyx_kp_s_140;
static PyObject *__pyx_kp_s_141;
static PyObject *__pyx_kp_s_142;
static PyObject *__pyx_kp_s_143;
static PyObject *__pyx_kp_s_144;
static PyObject *__pyx_kp_s_145;
static PyObject *__pyx_kp_s_146;
static PyObject *__pyx_kp_s_147;
static PyObject *__pyx_kp_s_148;
static PyObject *__pyx_kp_s_149;
static PyObject *__pyx_kp_s_15;
static PyObject *__pyx_kp_s_150;
static PyObject *__pyx_kp_s_151;
static PyObject *__pyx_kp_s_152;
static PyObject *__pyx_kp_s_153;
static PyObject *__pyx_kp_s_154;
static PyObject *__pyx_kp_s_155;
static PyObject *__pyx_kp_s_156;
static PyObject *__pyx_kp_s_157;
static PyObject *__pyx_kp_s_158;
static PyObject *__pyx_kp_s_159;
static PyObject *__pyx_kp_s_16;
static PyObject *__pyx_kp_s_160;
static PyObject *__pyx_kp_s_161;
static PyObject *__pyx_kp_s_162;
static PyObject *__pyx_kp_s_163;
static PyObject *__pyx_kp_s_164;
static PyObject *__pyx_kp_s_165;
static PyObject *__pyx_kp_s_166;
static PyObject *__pyx_kp_s_167;
static PyObject *__pyx_kp_s_168;
static PyObject *__pyx_kp_s_169;
static PyObject *__pyx_kp_s_17;
static PyObject *__pyx_kp_s_170;
static PyObject *__pyx_kp_s_171;
static PyObject *__pyx_kp_s_172;
static PyObject *__pyx_kp_s_173;
static PyObject *__pyx_kp_s_174;
static PyObject *__pyx_kp_s_175;
static PyObject *__pyx_kp_s_176;
static PyObject *__pyx_kp_s_177;
static PyObject *__pyx_kp_s_178;
static PyObject *__pyx_kp_s_179;
static PyObject *__pyx_kp_s_18;
static PyObject *__pyx_kp_s_180;
static PyObject *__pyx_kp_s_181;
static PyObject *__pyx_kp_s_182;
static PyObject *__pyx_kp_s_183;
static PyObject *__pyx_kp_s_184;
static PyObject *__pyx_kp_s_185;
static PyObject *__pyx_kp_s_186;
static PyObject *__pyx_kp_s_187;
static PyObject *__pyx_kp_s_188;
static PyObject *__pyx_kp_s_189;
static PyObject *__pyx_kp_s_19;
static PyObject *__pyx_kp_s_190;
static PyObject *__pyx_kp_s_191;
static PyObject *__pyx_kp_s_192;
static PyObject *__pyx_kp_s_193;
static PyObject *__pyx_kp_s_194;
static PyObject *__pyx_kp_s_195;
static PyObject *__pyx_kp_s_196;
static PyObject *__pyx_kp_s_197;
static PyObject *__pyx_kp_s_198;
static PyObject *__pyx_kp_s_199;
static PyObject *__pyx_kp_s_2;
static PyObject *__pyx_kp_s_20;
static PyObject *__pyx_kp_s_200;
static PyObject *__pyx_kp_s_201;
static PyObject *__pyx_kp_s_202;
static PyObject *__pyx_kp_s_203;
static PyObject *__pyx_kp_s_204;
static PyObject *__pyx_kp_s_205;
static PyObject *__pyx_kp_s_206;
static PyObject *__pyx_kp_s_207;
static PyObject *__pyx_kp_s_208;
static PyObject *__pyx_kp_s_209;
static PyObject *__pyx_kp_s_21;
static PyObject *__pyx_kp_s_210;
static PyObject *__pyx_kp_s_211;
static PyObject *__pyx_kp_s_212;
static PyObject *__pyx_kp_s_213;
static PyObject *__pyx_kp_s_214;
static PyObject *__pyx_kp_s_215;
static PyObject *__pyx_kp_s_22;
static PyObject *__pyx_kp_s_23;
static PyObject *__pyx_kp_s_24;
static PyObject *__pyx_kp_s_25;
static PyObject *__pyx_kp_s_26;
static PyObject *__pyx_kp_s_27;
static PyObject *__pyx_kp_s_28;
static PyObject *__pyx_kp_s_29;
static PyObject *__pyx_kp_s_3;
static PyObject *__pyx_kp_s_30;
static PyObject *__pyx_kp_s_31;
static PyObject *__pyx_kp_s_32;
static PyObject *__pyx_kp_s_33;
static PyObject *__pyx_kp_s_34;
static PyObject *__pyx_kp_s_35;
static PyObject *__pyx_kp_s_36;
static PyObject *__pyx_kp_s_37;
static PyObject *__pyx_kp_s_38;
static PyObject *__pyx_kp_s_39;
static PyObject *__pyx_kp_s_4;
static PyObject *__pyx_kp_s_40;
static PyObject *__pyx_kp_s_41;
static PyObject *__pyx_kp_s_42;
static PyObject *__pyx_kp_s_43;
static PyObject *__pyx_kp_s_44;
static PyObject *__pyx_kp_s_45;
static PyObject *__pyx_kp_s_46;
static PyObject *__pyx_kp_s_47;
static PyObject *__pyx_kp_s_48;
static PyObject *__pyx_kp_s_49;
static PyObject *__pyx_kp_s_5;
static PyObject *__pyx_kp_s_50;
static PyObject *__pyx_kp_s_51;
static PyObject *__pyx_kp_s_52;
static PyObject *__pyx_kp_s_53;
static PyObject *__pyx_kp_s_54;
static PyObject *__pyx_kp_s_55;
static PyObject *__pyx_kp_s_56;
static PyObject *__pyx_kp_s_57;
static PyObject *__pyx_kp_s_58;
static PyObject *__pyx_kp_s_59;
static PyObject *__pyx_kp_s_6;
static PyObject *__pyx_kp_s_60;
static PyObject *__pyx_kp_s_61;
static PyObject *__pyx_kp_s_62;
static PyObject *__pyx_kp_s_63;
static PyObject *__pyx_kp_s_64;
static PyObject *__pyx_kp_s_65;
static PyObject *__pyx_kp_s_66;
static PyObject *__pyx_kp_s_67;
static PyObject *__pyx_kp_s_68;
static PyObject *__pyx_kp_s_69;
static PyObject *__pyx_kp_s_7;
static PyObject *__pyx_kp_s_70;
static PyObject *__pyx_kp_s_71;
static PyObject *__pyx_kp_s_72;
static PyObject *__pyx_kp_s_73;
static PyObject *__pyx_kp_s_74;
static PyObject *__pyx_kp_s_75;
static PyObject *__pyx_kp_s_76;
static PyObject *__pyx_kp_s_77;
static PyObject *__pyx_kp_s_78;
static PyObject *__pyx_kp_s_79;
static PyObject *__pyx_kp_s_8;
static PyObject *__pyx_kp_s_80;
static PyObject *__pyx_kp_s_81;
static PyObject *__pyx_kp_s_82;
static PyObject *__pyx_kp_s_83;
static PyObject *__pyx_kp_s_84;
static PyObject *__pyx_kp_s_85;
static PyObject *__pyx_kp_s_86;
static PyObject *__pyx_kp_s_87;
static PyObject *__pyx_kp_s_88;
static PyObject *__pyx_kp_s_89;
static PyObject *__pyx_kp_s_9;
static PyObject *__pyx_kp_s_90;
static PyObject *__pyx_kp_s_91;
static PyObject *__pyx_kp_s_92;
static PyObject *__pyx_kp_s_93;
static PyObject *__pyx_kp_s_94;
static PyObject *__pyx_kp_s_95;
static PyObject *__pyx_kp_s_96;
static PyObject *__pyx_kp_s_97;
static PyObject *__pyx_kp_s_98;
static PyObject *__pyx_kp_s_99;
static PyObject *__pyx_n_s____main__;
static PyObject *__pyx_n_s____test__;
static PyObject *__pyx_n_s__end;
static PyObject *__pyx_n_s__file;
static PyObject *__pyx_n_s__hex;
static PyObject *__pyx_n_s__print;

/* "kivy\graphics\c_opengl_debug.pyx":7
 * 
 * 
 * cdef void   glActiveTexture (GLenum texture) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glActiveTexture( texture = ", texture, ", )"
 *     cgl.glActiveTexture ( texture)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glActiveTexture(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_texture) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glActiveTexture", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":8
 * 
 * cdef void   glActiveTexture (GLenum texture) with gil:
 *     print "GL glActiveTexture( texture = ", texture, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glActiveTexture ( texture)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_texture); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 8; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 8; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_1));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_1));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_1));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 8; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":9
 * cdef void   glActiveTexture (GLenum texture) with gil:
 *     print "GL glActiveTexture( texture = ", texture, ", )"
 *     cgl.glActiveTexture ( texture)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glActiveTexture(__pyx_v_texture);

  /* "kivy\graphics\c_opengl_debug.pyx":10
 *     print "GL glActiveTexture( texture = ", texture, ", )"
 *     cgl.glActiveTexture ( texture)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glAttachShader (GLuint program, GLuint shader) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":11
 *     cgl.glActiveTexture ( texture)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glAttachShader (GLuint program, GLuint shader) with gil:
 *     print "GL glAttachShader( program = ", program, ", shader = ", shader, ", )"
 */
  __pyx_t_3 = (__pyx_v_ret != 0);
  if (__pyx_t_3) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glActiveTexture", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":12
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glAttachShader (GLuint program, GLuint shader) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glAttachShader( program = ", program, ", shader = ", shader, ", )"
 *     cgl.glAttachShader ( program, shader)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glAttachShader(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_program, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_shader) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glAttachShader", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":13
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glAttachShader (GLuint program, GLuint shader) with gil:
 *     print "GL glAttachShader( program = ", program, ", shader = ", shader, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glAttachShader ( program, shader)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_program); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_shader); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_4));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_4));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_4));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_5));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_5));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_5));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":14
 * cdef void   glAttachShader (GLuint program, GLuint shader) with gil:
 *     print "GL glAttachShader( program = ", program, ", shader = ", shader, ", )"
 *     cgl.glAttachShader ( program, shader)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glAttachShader(__pyx_v_program, __pyx_v_shader);

  /* "kivy\graphics\c_opengl_debug.pyx":15
 *     print "GL glAttachShader( program = ", program, ", shader = ", shader, ", )"
 *     cgl.glAttachShader ( program, shader)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glBindAttribLocation (GLuint program, GLuint index,  GLchar* name) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":16
 *     cgl.glAttachShader ( program, shader)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glBindAttribLocation (GLuint program, GLuint index,  GLchar* name) with gil:
 *     print "GL glBindAttribLocation( program = ", program, ", index = ", index, ", name*=", repr(hex(<long> name)), ", )"
 */
  __pyx_t_4 = (__pyx_v_ret != 0);
  if (__pyx_t_4) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 16; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 16; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 16; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_3 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 16; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 16; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glAttachShader", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":17
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glBindAttribLocation (GLuint program, GLuint index,  GLchar* name) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glBindAttribLocation( program = ", program, ", index = ", index, ", name*=", repr(hex(<long> name)), ", )"
 *     cgl.glBindAttribLocation ( program, index, name)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glBindAttribLocation(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_program, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_index, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLchar *__pyx_v_name) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glBindAttribLocation", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":18
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glBindAttribLocation (GLuint program, GLuint index,  GLchar* name) with gil:
 *     print "GL glBindAttribLocation( program = ", program, ", index = ", index, ", name*=", repr(hex(<long> name)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glBindAttribLocation ( program, index, name)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_program); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 18; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_index); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 18; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(((long)__pyx_v_name)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 18; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 18; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 18; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Repr(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 18; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(7); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 18; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_6));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_6));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_6));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_7));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_7));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_7));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_8));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_8));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_8));
  PyTuple_SET_ITEM(__pyx_t_3, 5, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 6, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_4 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 18; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":19
 * cdef void   glBindAttribLocation (GLuint program, GLuint index,  GLchar* name) with gil:
 *     print "GL glBindAttribLocation( program = ", program, ", index = ", index, ", name*=", repr(hex(<long> name)), ", )"
 *     cgl.glBindAttribLocation ( program, index, name)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glBindAttribLocation(__pyx_v_program, __pyx_v_index, __pyx_v_name);

  /* "kivy\graphics\c_opengl_debug.pyx":20
 *     print "GL glBindAttribLocation( program = ", program, ", index = ", index, ", name*=", repr(hex(<long> name)), ", )"
 *     cgl.glBindAttribLocation ( program, index, name)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glBindBuffer (GLenum target, GLuint buffer) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":21
 *     cgl.glBindAttribLocation ( program, index, name)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glBindBuffer (GLenum target, GLuint buffer) with gil:
 *     print "GL glBindBuffer( target = ", target, ", buffer = ", buffer, ", )"
 */
  __pyx_t_5 = (__pyx_v_ret != 0);
  if (__pyx_t_5) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 21; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 21; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 21; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_3 = 0;
    __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 21; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_4)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 21; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glBindAttribLocation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":22
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glBindBuffer (GLenum target, GLuint buffer) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glBindBuffer( target = ", target, ", buffer = ", buffer, ", )"
 *     cgl.glBindBuffer ( target, buffer)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glBindBuffer(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_target, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_buffer) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glBindBuffer", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":23
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glBindBuffer (GLenum target, GLuint buffer) with gil:
 *     print "GL glBindBuffer( target = ", target, ", buffer = ", buffer, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glBindBuffer ( target, buffer)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_target); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_buffer); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_9));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_9));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_9));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_10));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_10));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_10));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":24
 * cdef void   glBindBuffer (GLenum target, GLuint buffer) with gil:
 *     print "GL glBindBuffer( target = ", target, ", buffer = ", buffer, ", )"
 *     cgl.glBindBuffer ( target, buffer)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glBindBuffer(__pyx_v_target, __pyx_v_buffer);

  /* "kivy\graphics\c_opengl_debug.pyx":25
 *     print "GL glBindBuffer( target = ", target, ", buffer = ", buffer, ", )"
 *     cgl.glBindBuffer ( target, buffer)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glBindFramebuffer (GLenum target, GLuint framebuffer) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":26
 *     cgl.glBindBuffer ( target, buffer)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glBindFramebuffer (GLenum target, GLuint framebuffer) with gil:
 *     print "GL glBindFramebuffer( target = ", target, ", framebuffer = ", framebuffer, ", )"
 */
  __pyx_t_4 = (__pyx_v_ret != 0);
  if (__pyx_t_4) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 26; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 26; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 26; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_3 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 26; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 26; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glBindBuffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":27
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glBindFramebuffer (GLenum target, GLuint framebuffer) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glBindFramebuffer( target = ", target, ", framebuffer = ", framebuffer, ", )"
 *     cgl.glBindFramebuffer ( target, framebuffer)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glBindFramebuffer(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_target, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_framebuffer) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glBindFramebuffer", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":28
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glBindFramebuffer (GLenum target, GLuint framebuffer) with gil:
 *     print "GL glBindFramebuffer( target = ", target, ", framebuffer = ", framebuffer, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glBindFramebuffer ( target, framebuffer)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_target); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_framebuffer); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_11));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_11));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_11));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_12));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_12));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_12));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":29
 * cdef void   glBindFramebuffer (GLenum target, GLuint framebuffer) with gil:
 *     print "GL glBindFramebuffer( target = ", target, ", framebuffer = ", framebuffer, ", )"
 *     cgl.glBindFramebuffer ( target, framebuffer)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glBindFramebuffer(__pyx_v_target, __pyx_v_framebuffer);

  /* "kivy\graphics\c_opengl_debug.pyx":30
 *     print "GL glBindFramebuffer( target = ", target, ", framebuffer = ", framebuffer, ", )"
 *     cgl.glBindFramebuffer ( target, framebuffer)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glBindRenderbuffer (GLenum target, GLuint renderbuffer) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":31
 *     cgl.glBindFramebuffer ( target, framebuffer)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glBindRenderbuffer (GLenum target, GLuint renderbuffer) with gil:
 *     print "GL glBindRenderbuffer( target = ", target, ", renderbuffer = ", renderbuffer, ", )"
 */
  __pyx_t_4 = (__pyx_v_ret != 0);
  if (__pyx_t_4) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_3 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glBindFramebuffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":32
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glBindRenderbuffer (GLenum target, GLuint renderbuffer) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glBindRenderbuffer( target = ", target, ", renderbuffer = ", renderbuffer, ", )"
 *     cgl.glBindRenderbuffer ( target, renderbuffer)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glBindRenderbuffer(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_target, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_renderbuffer) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glBindRenderbuffer", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":33
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glBindRenderbuffer (GLenum target, GLuint renderbuffer) with gil:
 *     print "GL glBindRenderbuffer( target = ", target, ", renderbuffer = ", renderbuffer, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glBindRenderbuffer ( target, renderbuffer)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_target); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 33; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_renderbuffer); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 33; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 33; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_13));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_13));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_13));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_14));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_14));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_14));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 33; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":34
 * cdef void   glBindRenderbuffer (GLenum target, GLuint renderbuffer) with gil:
 *     print "GL glBindRenderbuffer( target = ", target, ", renderbuffer = ", renderbuffer, ", )"
 *     cgl.glBindRenderbuffer ( target, renderbuffer)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glBindRenderbuffer(__pyx_v_target, __pyx_v_renderbuffer);

  /* "kivy\graphics\c_opengl_debug.pyx":35
 *     print "GL glBindRenderbuffer( target = ", target, ", renderbuffer = ", renderbuffer, ", )"
 *     cgl.glBindRenderbuffer ( target, renderbuffer)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glBindTexture (GLenum target, GLuint texture) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":36
 *     cgl.glBindRenderbuffer ( target, renderbuffer)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glBindTexture (GLenum target, GLuint texture) with gil:
 *     print "GL glBindTexture( target = ", target, ", texture = ", texture, ", )"
 */
  __pyx_t_4 = (__pyx_v_ret != 0);
  if (__pyx_t_4) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_3 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 36; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glBindRenderbuffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":37
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glBindTexture (GLenum target, GLuint texture) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glBindTexture( target = ", target, ", texture = ", texture, ", )"
 *     cgl.glBindTexture ( target, texture)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glBindTexture(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_target, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_texture) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glBindTexture", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":38
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glBindTexture (GLenum target, GLuint texture) with gil:
 *     print "GL glBindTexture( target = ", target, ", texture = ", texture, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glBindTexture ( target, texture)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_target); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 38; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_texture); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 38; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 38; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_15));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_15));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_15));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_16));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_16));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_16));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 38; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":39
 * cdef void   glBindTexture (GLenum target, GLuint texture) with gil:
 *     print "GL glBindTexture( target = ", target, ", texture = ", texture, ", )"
 *     cgl.glBindTexture ( target, texture)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glBindTexture(__pyx_v_target, __pyx_v_texture);

  /* "kivy\graphics\c_opengl_debug.pyx":40
 *     print "GL glBindTexture( target = ", target, ", texture = ", texture, ", )"
 *     cgl.glBindTexture ( target, texture)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":41
 *     cgl.glBindTexture ( target, texture)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) with gil:
 *     print "GL glBlendColor( red = ", red, ", green = ", green, ", blue = ", blue, ", alpha = ", alpha, ", )"
 */
  __pyx_t_4 = (__pyx_v_ret != 0);
  if (__pyx_t_4) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 41; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 41; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 41; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_3 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 41; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 41; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glBindTexture", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":42
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glBlendColor( red = ", red, ", green = ", green, ", blue = ", blue, ", alpha = ", alpha, ", )"
 *     cgl.glBlendColor ( red, green, blue, alpha)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glBlendColor(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLclampf __pyx_v_red, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLclampf __pyx_v_green, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLclampf __pyx_v_blue, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLclampf __pyx_v_alpha) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glBlendColor", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":43
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) with gil:
 *     print "GL glBlendColor( red = ", red, ", green = ", green, ", blue = ", blue, ", alpha = ", alpha, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glBlendColor ( red, green, blue, alpha)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_red); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 43; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_green); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 43; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_blue); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 43; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_alpha); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 43; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(9); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 43; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_17));
  PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)__pyx_kp_s_17));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_17));
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_18));
  PyTuple_SET_ITEM(__pyx_t_5, 2, ((PyObject *)__pyx_kp_s_18));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_18));
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_19));
  PyTuple_SET_ITEM(__pyx_t_5, 4, ((PyObject *)__pyx_kp_s_19));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_19));
  PyTuple_SET_ITEM(__pyx_t_5, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_20));
  PyTuple_SET_ITEM(__pyx_t_5, 6, ((PyObject *)__pyx_kp_s_20));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_20));
  PyTuple_SET_ITEM(__pyx_t_5, 7, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_5, 8, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_5), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 43; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":44
 * cdef void   glBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) with gil:
 *     print "GL glBlendColor( red = ", red, ", green = ", green, ", blue = ", blue, ", alpha = ", alpha, ", )"
 *     cgl.glBlendColor ( red, green, blue, alpha)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glBlendColor(__pyx_v_red, __pyx_v_green, __pyx_v_blue, __pyx_v_alpha);

  /* "kivy\graphics\c_opengl_debug.pyx":45
 *     print "GL glBlendColor( red = ", red, ", green = ", green, ", blue = ", blue, ", alpha = ", alpha, ", )"
 *     cgl.glBlendColor ( red, green, blue, alpha)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glBlendEquation (GLenum mode) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":46
 *     cgl.glBlendColor ( red, green, blue, alpha)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glBlendEquation (GLenum mode) with gil:
 *     print "GL glBlendEquation( mode = ", mode, ", )"
 */
  __pyx_t_6 = (__pyx_v_ret != 0);
  if (__pyx_t_6) {
    __pyx_t_5 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 46; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 46; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 46; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_5 = 0;
    __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 46; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_4)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 46; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glBlendColor", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":47
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glBlendEquation (GLenum mode) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glBlendEquation( mode = ", mode, ", )"
 *     cgl.glBlendEquation ( mode)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glBlendEquation(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_mode) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glBlendEquation", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":48
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glBlendEquation (GLenum mode) with gil:
 *     print "GL glBlendEquation( mode = ", mode, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glBlendEquation ( mode)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_mode); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_21));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_21));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_21));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":49
 * cdef void   glBlendEquation (GLenum mode) with gil:
 *     print "GL glBlendEquation( mode = ", mode, ", )"
 *     cgl.glBlendEquation ( mode)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glBlendEquation(__pyx_v_mode);

  /* "kivy\graphics\c_opengl_debug.pyx":50
 *     print "GL glBlendEquation( mode = ", mode, ", )"
 *     cgl.glBlendEquation ( mode)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":51
 *     cgl.glBlendEquation ( mode)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha) with gil:
 *     print "GL glBlendEquationSeparate( modeRGB = ", modeRGB, ", modeAlpha = ", modeAlpha, ", )"
 */
  __pyx_t_3 = (__pyx_v_ret != 0);
  if (__pyx_t_3) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 51; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 51; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 51; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 51; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 51; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glBlendEquation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":52
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glBlendEquationSeparate( modeRGB = ", modeRGB, ", modeAlpha = ", modeAlpha, ", )"
 *     cgl.glBlendEquationSeparate ( modeRGB, modeAlpha)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glBlendEquationSeparate(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_modeRGB, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_modeAlpha) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glBlendEquationSeparate", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":53
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha) with gil:
 *     print "GL glBlendEquationSeparate( modeRGB = ", modeRGB, ", modeAlpha = ", modeAlpha, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glBlendEquationSeparate ( modeRGB, modeAlpha)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_modeRGB); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 53; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_modeAlpha); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 53; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 53; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_22));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_22));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_22));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_23));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_23));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_23));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 53; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":54
 * cdef void   glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha) with gil:
 *     print "GL glBlendEquationSeparate( modeRGB = ", modeRGB, ", modeAlpha = ", modeAlpha, ", )"
 *     cgl.glBlendEquationSeparate ( modeRGB, modeAlpha)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glBlendEquationSeparate(__pyx_v_modeRGB, __pyx_v_modeAlpha);

  /* "kivy\graphics\c_opengl_debug.pyx":55
 *     print "GL glBlendEquationSeparate( modeRGB = ", modeRGB, ", modeAlpha = ", modeAlpha, ", )"
 *     cgl.glBlendEquationSeparate ( modeRGB, modeAlpha)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glBlendFunc (GLenum sfactor, GLenum dfactor) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":56
 *     cgl.glBlendEquationSeparate ( modeRGB, modeAlpha)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glBlendFunc (GLenum sfactor, GLenum dfactor) with gil:
 *     print "GL glBlendFunc( sfactor = ", sfactor, ", dfactor = ", dfactor, ", )"
 */
  __pyx_t_4 = (__pyx_v_ret != 0);
  if (__pyx_t_4) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 56; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 56; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 56; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_3 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 56; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 56; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glBlendEquationSeparate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":57
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glBlendFunc (GLenum sfactor, GLenum dfactor) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glBlendFunc( sfactor = ", sfactor, ", dfactor = ", dfactor, ", )"
 *     cgl.glBlendFunc ( sfactor, dfactor)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glBlendFunc(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_sfactor, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_dfactor) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glBlendFunc", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":58
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glBlendFunc (GLenum sfactor, GLenum dfactor) with gil:
 *     print "GL glBlendFunc( sfactor = ", sfactor, ", dfactor = ", dfactor, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glBlendFunc ( sfactor, dfactor)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_sfactor); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 58; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_dfactor); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 58; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 58; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_24));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_24));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_24));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_25));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_25));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_25));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 58; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":59
 * cdef void   glBlendFunc (GLenum sfactor, GLenum dfactor) with gil:
 *     print "GL glBlendFunc( sfactor = ", sfactor, ", dfactor = ", dfactor, ", )"
 *     cgl.glBlendFunc ( sfactor, dfactor)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glBlendFunc(__pyx_v_sfactor, __pyx_v_dfactor);

  /* "kivy\graphics\c_opengl_debug.pyx":60
 *     print "GL glBlendFunc( sfactor = ", sfactor, ", dfactor = ", dfactor, ", )"
 *     cgl.glBlendFunc ( sfactor, dfactor)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glBlendFuncSeparate (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":61
 *     cgl.glBlendFunc ( sfactor, dfactor)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glBlendFuncSeparate (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) with gil:
 *     print "GL glBlendFuncSeparate( srcRGB = ", srcRGB, ", dstRGB = ", dstRGB, ", srcAlpha = ", srcAlpha, ", dstAlpha = ", dstAlpha, ", )"
 */
  __pyx_t_4 = (__pyx_v_ret != 0);
  if (__pyx_t_4) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 61; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 61; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 61; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_3 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 61; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 61; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glBlendFunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":62
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glBlendFuncSeparate (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glBlendFuncSeparate( srcRGB = ", srcRGB, ", dstRGB = ", dstRGB, ", srcAlpha = ", srcAlpha, ", dstAlpha = ", dstAlpha, ", )"
 *     cgl.glBlendFuncSeparate ( srcRGB, dstRGB, srcAlpha, dstAlpha)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glBlendFuncSeparate(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_srcRGB, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_dstRGB, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_srcAlpha, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_dstAlpha) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glBlendFuncSeparate", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":63
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glBlendFuncSeparate (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) with gil:
 *     print "GL glBlendFuncSeparate( srcRGB = ", srcRGB, ", dstRGB = ", dstRGB, ", srcAlpha = ", srcAlpha, ", dstAlpha = ", dstAlpha, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glBlendFuncSeparate ( srcRGB, dstRGB, srcAlpha, dstAlpha)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_srcRGB); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 63; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_dstRGB); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 63; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyLong_FromUnsignedLong(__pyx_v_srcAlpha); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 63; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyLong_FromUnsignedLong(__pyx_v_dstAlpha); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 63; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(9); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 63; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_26));
  PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)__pyx_kp_s_26));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_26));
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_27));
  PyTuple_SET_ITEM(__pyx_t_5, 2, ((PyObject *)__pyx_kp_s_27));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_27));
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_28));
  PyTuple_SET_ITEM(__pyx_t_5, 4, ((PyObject *)__pyx_kp_s_28));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_28));
  PyTuple_SET_ITEM(__pyx_t_5, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_29));
  PyTuple_SET_ITEM(__pyx_t_5, 6, ((PyObject *)__pyx_kp_s_29));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_29));
  PyTuple_SET_ITEM(__pyx_t_5, 7, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_5, 8, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_5), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 63; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":64
 * cdef void   glBlendFuncSeparate (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) with gil:
 *     print "GL glBlendFuncSeparate( srcRGB = ", srcRGB, ", dstRGB = ", dstRGB, ", srcAlpha = ", srcAlpha, ", dstAlpha = ", dstAlpha, ", )"
 *     cgl.glBlendFuncSeparate ( srcRGB, dstRGB, srcAlpha, dstAlpha)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glBlendFuncSeparate(__pyx_v_srcRGB, __pyx_v_dstRGB, __pyx_v_srcAlpha, __pyx_v_dstAlpha);

  /* "kivy\graphics\c_opengl_debug.pyx":65
 *     print "GL glBlendFuncSeparate( srcRGB = ", srcRGB, ", dstRGB = ", dstRGB, ", srcAlpha = ", srcAlpha, ", dstAlpha = ", dstAlpha, ", )"
 *     cgl.glBlendFuncSeparate ( srcRGB, dstRGB, srcAlpha, dstAlpha)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glBufferData (GLenum target, GLsizeiptr size,  GLvoid* data, GLenum usage) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":66
 *     cgl.glBlendFuncSeparate ( srcRGB, dstRGB, srcAlpha, dstAlpha)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glBufferData (GLenum target, GLsizeiptr size,  GLvoid* data, GLenum usage) with gil:
 *     print "GL glBufferData( target = ", target, ", size = ", size, ", data*=", repr(hex(<long> data)), ", usage = ", usage, ", )"
 */
  __pyx_t_6 = (__pyx_v_ret != 0);
  if (__pyx_t_6) {
    __pyx_t_5 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_5 = 0;
    __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_4)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glBlendFuncSeparate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":67
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glBufferData (GLenum target, GLsizeiptr size,  GLvoid* data, GLenum usage) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glBufferData( target = ", target, ", size = ", size, ", data*=", repr(hex(<long> data)), ", usage = ", usage, ", )"
 *     cgl.glBufferData ( target, size, data, usage)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glBufferData(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_target, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizeiptr __pyx_v_size, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLvoid *__pyx_v_data, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_usage) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glBufferData", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":68
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glBufferData (GLenum target, GLsizeiptr size,  GLvoid* data, GLenum usage) with gil:
 *     print "GL glBufferData( target = ", target, ", size = ", size, ", data*=", repr(hex(<long> data)), ", usage = ", usage, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glBufferData ( target, size, data, usage)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_target); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_size); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(((long)__pyx_v_data)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Repr(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyLong_FromUnsignedLong(__pyx_v_usage); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = PyTuple_New(9); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_30));
  PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)__pyx_kp_s_30));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_30));
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_31));
  PyTuple_SET_ITEM(__pyx_t_5, 2, ((PyObject *)__pyx_kp_s_31));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_31));
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_32));
  PyTuple_SET_ITEM(__pyx_t_5, 4, ((PyObject *)__pyx_kp_s_32));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_32));
  PyTuple_SET_ITEM(__pyx_t_5, 5, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_33));
  PyTuple_SET_ITEM(__pyx_t_5, 6, ((PyObject *)__pyx_kp_s_33));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_33));
  PyTuple_SET_ITEM(__pyx_t_5, 7, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_5, 8, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_4 = 0;
  __pyx_t_3 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_5), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":69
 * cdef void   glBufferData (GLenum target, GLsizeiptr size,  GLvoid* data, GLenum usage) with gil:
 *     print "GL glBufferData( target = ", target, ", size = ", size, ", data*=", repr(hex(<long> data)), ", usage = ", usage, ", )"
 *     cgl.glBufferData ( target, size, data, usage)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glBufferData(__pyx_v_target, __pyx_v_size, __pyx_v_data, __pyx_v_usage);

  /* "kivy\graphics\c_opengl_debug.pyx":70
 *     print "GL glBufferData( target = ", target, ", size = ", size, ", data*=", repr(hex(<long> data)), ", usage = ", usage, ", )"
 *     cgl.glBufferData ( target, size, data, usage)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size,  GLvoid* data) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":71
 *     cgl.glBufferData ( target, size, data, usage)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size,  GLvoid* data) with gil:
 *     print "GL glBufferSubData( target = ", target, ", offset = ", offset, ", size = ", size, ", data*=", repr(hex(<long> data)), ", )"
 */
  __pyx_t_6 = (__pyx_v_ret != 0);
  if (__pyx_t_6) {
    __pyx_t_5 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 71; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 71; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 71; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_5 = 0;
    __pyx_t_3 = 0;
    __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 71; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 71; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glBufferData", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":72
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size,  GLvoid* data) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glBufferSubData( target = ", target, ", offset = ", offset, ", size = ", size, ", data*=", repr(hex(<long> data)), ", )"
 *     cgl.glBufferSubData ( target, offset, size, data)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glBufferSubData(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_target, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLintptr __pyx_v_offset, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizeiptr __pyx_v_size, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLvoid *__pyx_v_data) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glBufferSubData", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":73
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size,  GLvoid* data) with gil:
 *     print "GL glBufferSubData( target = ", target, ", offset = ", offset, ", size = ", size, ", data*=", repr(hex(<long> data)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glBufferSubData ( target, offset, size, data)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_target); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 73; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_offset); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 73; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(__pyx_v_size); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 73; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromLong(((long)__pyx_v_data)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 73; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 73; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 73; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
  __pyx_t_5 = PyObject_Repr(__pyx_t_4); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 73; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(9); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 73; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_34));
  PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_kp_s_34));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_34));
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_35));
  PyTuple_SET_ITEM(__pyx_t_4, 2, ((PyObject *)__pyx_kp_s_35));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_35));
  PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_31));
  PyTuple_SET_ITEM(__pyx_t_4, 4, ((PyObject *)__pyx_kp_s_31));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_31));
  PyTuple_SET_ITEM(__pyx_t_4, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_32));
  PyTuple_SET_ITEM(__pyx_t_4, 6, ((PyObject *)__pyx_kp_s_32));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_32));
  PyTuple_SET_ITEM(__pyx_t_4, 7, __pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_4, 8, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_4), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 73; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":74
 * cdef void   glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size,  GLvoid* data) with gil:
 *     print "GL glBufferSubData( target = ", target, ", offset = ", offset, ", size = ", size, ", data*=", repr(hex(<long> data)), ", )"
 *     cgl.glBufferSubData ( target, offset, size, data)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glBufferSubData(__pyx_v_target, __pyx_v_offset, __pyx_v_size, __pyx_v_data);

  /* "kivy\graphics\c_opengl_debug.pyx":75
 *     print "GL glBufferSubData( target = ", target, ", offset = ", offset, ", size = ", size, ", data*=", repr(hex(<long> data)), ", )"
 *     cgl.glBufferSubData ( target, offset, size, data)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef GLenum glCheckFramebufferStatus (GLenum target) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":76
 *     cgl.glBufferSubData ( target, offset, size, data)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef GLenum glCheckFramebufferStatus (GLenum target) with gil:
 *     print "GL glCheckFramebufferStatus( target = ", target, ", )"
 */
  __pyx_t_6 = (__pyx_v_ret != 0);
  if (__pyx_t_6) {
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 76; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 76; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 76; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_t_5 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 76; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_5));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_5)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 76; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glBufferSubData", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":77
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef GLenum glCheckFramebufferStatus (GLenum target) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glCheckFramebufferStatus( target = ", target, ", )"
 *     ret = cgl.glGetError()
 */

static __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_f_4kivy_8graphics_14c_opengl_debug_glCheckFramebufferStatus(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_target) {
  GLenum __pyx_v_ret;
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glCheckFramebufferStatus", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":78
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef GLenum glCheckFramebufferStatus (GLenum target) with gil:
 *     print "GL glCheckFramebufferStatus( target = ", target, ", )"             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_target); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 78; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 78; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_36));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_36));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_36));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 78; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":79
 * cdef GLenum glCheckFramebufferStatus (GLenum target) with gil:
 *     print "GL glCheckFramebufferStatus( target = ", target, ", )"
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 *     return cgl.glCheckFramebufferStatus ( target)
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":80
 *     print "GL glCheckFramebufferStatus( target = ", target, ", )"
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 *     return cgl.glCheckFramebufferStatus ( target)
 * cdef void   glClear (GLbitfield mask) with gil:
 */
  __pyx_t_3 = (__pyx_v_ret != 0);
  if (__pyx_t_3) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 80; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 80; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 80; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 80; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 80; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "kivy\graphics\c_opengl_debug.pyx":81
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 *     return cgl.glCheckFramebufferStatus ( target)             # <<<<<<<<<<<<<<
 * cdef void   glClear (GLbitfield mask) with gil:
 *     print "GL glClear( mask = ", mask, ", )"
 */
  __pyx_r = glCheckFramebufferStatus(__pyx_v_target);
  goto __pyx_L0;

  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glCheckFramebufferStatus", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
  return __pyx_r;
}

/* "kivy\graphics\c_opengl_debug.pyx":82
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 *     return cgl.glCheckFramebufferStatus ( target)
 * cdef void   glClear (GLbitfield mask) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glClear( mask = ", mask, ", )"
 *     cgl.glClear ( mask)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glClear(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLbitfield __pyx_v_mask) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glClear", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":83
 *     return cgl.glCheckFramebufferStatus ( target)
 * cdef void   glClear (GLbitfield mask) with gil:
 *     print "GL glClear( mask = ", mask, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glClear ( mask)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_mask); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 83; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 83; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_37));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_37));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_37));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 83; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":84
 * cdef void   glClear (GLbitfield mask) with gil:
 *     print "GL glClear( mask = ", mask, ", )"
 *     cgl.glClear ( mask)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glClear(__pyx_v_mask);

  /* "kivy\graphics\c_opengl_debug.pyx":85
 *     print "GL glClear( mask = ", mask, ", )"
 *     cgl.glClear ( mask)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":86
 *     cgl.glClear ( mask)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) with gil:
 *     print "GL glClearColor( red = ", red, ", green = ", green, ", blue = ", blue, ", alpha = ", alpha, ", )"
 */
  __pyx_t_3 = (__pyx_v_ret != 0);
  if (__pyx_t_3) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 86; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glClear", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":87
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glClearColor( red = ", red, ", green = ", green, ", blue = ", blue, ", alpha = ", alpha, ", )"
 *     cgl.glClearColor ( red, green, blue, alpha)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glClearColor(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLclampf __pyx_v_red, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLclampf __pyx_v_green, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLclampf __pyx_v_blue, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLclampf __pyx_v_alpha) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glClearColor", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":88
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) with gil:
 *     print "GL glClearColor( red = ", red, ", green = ", green, ", blue = ", blue, ", alpha = ", alpha, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glClearColor ( red, green, blue, alpha)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_red); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 88; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_green); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 88; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_blue); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 88; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_alpha); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 88; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(9); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 88; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_38));
  PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)__pyx_kp_s_38));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_38));
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_18));
  PyTuple_SET_ITEM(__pyx_t_5, 2, ((PyObject *)__pyx_kp_s_18));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_18));
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_19));
  PyTuple_SET_ITEM(__pyx_t_5, 4, ((PyObject *)__pyx_kp_s_19));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_19));
  PyTuple_SET_ITEM(__pyx_t_5, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_20));
  PyTuple_SET_ITEM(__pyx_t_5, 6, ((PyObject *)__pyx_kp_s_20));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_20));
  PyTuple_SET_ITEM(__pyx_t_5, 7, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_5, 8, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_5), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 88; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":89
 * cdef void   glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) with gil:
 *     print "GL glClearColor( red = ", red, ", green = ", green, ", blue = ", blue, ", alpha = ", alpha, ", )"
 *     cgl.glClearColor ( red, green, blue, alpha)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glClearColor(__pyx_v_red, __pyx_v_green, __pyx_v_blue, __pyx_v_alpha);

  /* "kivy\graphics\c_opengl_debug.pyx":90
 *     print "GL glClearColor( red = ", red, ", green = ", green, ", blue = ", blue, ", alpha = ", alpha, ", )"
 *     cgl.glClearColor ( red, green, blue, alpha)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * #crash on android platform
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":91
 *     cgl.glClearColor ( red, green, blue, alpha)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * #crash on android platform
 * #cdef void   glClearDepthf (GLclampf depth) with gil:
 */
  __pyx_t_6 = (__pyx_v_ret != 0);
  if (__pyx_t_6) {
    __pyx_t_5 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_5 = 0;
    __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_4)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 91; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glClearColor", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":98
 * #    ret = cgl.glGetError()
 * #    if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glClearStencil (GLint s) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glClearStencil( s = ", s, ", )"
 *     cgl.glClearStencil ( s)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glClearStencil(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_s) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glClearStencil", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":99
 * #    if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glClearStencil (GLint s) with gil:
 *     print "GL glClearStencil( s = ", s, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glClearStencil ( s)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_s); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_39));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_39));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_39));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":100
 * cdef void   glClearStencil (GLint s) with gil:
 *     print "GL glClearStencil( s = ", s, ", )"
 *     cgl.glClearStencil ( s)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glClearStencil(__pyx_v_s);

  /* "kivy\graphics\c_opengl_debug.pyx":101
 *     print "GL glClearStencil( s = ", s, ", )"
 *     cgl.glClearStencil ( s)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":102
 *     cgl.glClearStencil ( s)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) with gil:
 *     print "GL glColorMask( red = ", red, ", green = ", green, ", blue = ", blue, ", alpha = ", alpha, ", )"
 */
  __pyx_t_3 = (__pyx_v_ret != 0);
  if (__pyx_t_3) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 102; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 102; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 102; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 102; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 102; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glClearStencil", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":103
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glColorMask( red = ", red, ", green = ", green, ", blue = ", blue, ", alpha = ", alpha, ", )"
 *     cgl.glColorMask ( red, green, blue, alpha)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glColorMask(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean __pyx_v_red, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean __pyx_v_green, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean __pyx_v_blue, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean __pyx_v_alpha) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glColorMask", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":104
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) with gil:
 *     print "GL glColorMask( red = ", red, ", green = ", green, ", blue = ", blue, ", alpha = ", alpha, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glColorMask ( red, green, blue, alpha)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_red); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_green); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(__pyx_v_blue); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromLong(__pyx_v_alpha); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(9); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_40));
  PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)__pyx_kp_s_40));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_40));
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_18));
  PyTuple_SET_ITEM(__pyx_t_5, 2, ((PyObject *)__pyx_kp_s_18));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_18));
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_19));
  PyTuple_SET_ITEM(__pyx_t_5, 4, ((PyObject *)__pyx_kp_s_19));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_19));
  PyTuple_SET_ITEM(__pyx_t_5, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_20));
  PyTuple_SET_ITEM(__pyx_t_5, 6, ((PyObject *)__pyx_kp_s_20));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_20));
  PyTuple_SET_ITEM(__pyx_t_5, 7, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_5, 8, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_5), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":105
 * cdef void   glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) with gil:
 *     print "GL glColorMask( red = ", red, ", green = ", green, ", blue = ", blue, ", alpha = ", alpha, ", )"
 *     cgl.glColorMask ( red, green, blue, alpha)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glColorMask(__pyx_v_red, __pyx_v_green, __pyx_v_blue, __pyx_v_alpha);

  /* "kivy\graphics\c_opengl_debug.pyx":106
 *     print "GL glColorMask( red = ", red, ", green = ", green, ", blue = ", blue, ", alpha = ", alpha, ", )"
 *     cgl.glColorMask ( red, green, blue, alpha)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glCompileShader (GLuint shader) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":107
 *     cgl.glColorMask ( red, green, blue, alpha)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glCompileShader (GLuint shader) with gil:
 *     print "GL glCompileShader( shader = ", shader, ", )"
 */
  __pyx_t_6 = (__pyx_v_ret != 0);
  if (__pyx_t_6) {
    __pyx_t_5 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 107; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 107; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 107; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_5 = 0;
    __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 107; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_4)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 107; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glColorMask", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":108
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glCompileShader (GLuint shader) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glCompileShader( shader = ", shader, ", )"
 *     cgl.glCompileShader ( shader)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glCompileShader(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_shader) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glCompileShader", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":109
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glCompileShader (GLuint shader) with gil:
 *     print "GL glCompileShader( shader = ", shader, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glCompileShader ( shader)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_shader); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_41));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_41));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_41));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 109; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":110
 * cdef void   glCompileShader (GLuint shader) with gil:
 *     print "GL glCompileShader( shader = ", shader, ", )"
 *     cgl.glCompileShader ( shader)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glCompileShader(__pyx_v_shader);

  /* "kivy\graphics\c_opengl_debug.pyx":111
 *     print "GL glCompileShader( shader = ", shader, ", )"
 *     cgl.glCompileShader ( shader)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize,  GLvoid* data) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":112
 *     cgl.glCompileShader ( shader)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize,  GLvoid* data) with gil:
 *     print "GL glCompressedTexImage2D( target = ", target, ", level = ", level, ", internalformat = ", internalformat, ", width = ", width, ", height = ", height, ", border = ", border, ", imageSize = ", imageSize, ", data*=", repr(hex(<long> data)), ", )"
 */
  __pyx_t_3 = (__pyx_v_ret != 0);
  if (__pyx_t_3) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 112; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 112; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 112; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 112; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 112; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glCompileShader", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":113
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize,  GLvoid* data) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glCompressedTexImage2D( target = ", target, ", level = ", level, ", internalformat = ", internalformat, ", width = ", width, ", height = ", height, ", border = ", border, ", imageSize = ", imageSize, ", data*=", repr(hex(<long> data)), ", )"
 *     cgl.glCompressedTexImage2D ( target, level, internalformat, width, height, border, imageSize, data)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glCompressedTexImage2D(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_target, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_level, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_internalformat, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_width, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_height, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_border, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_imageSize, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLvoid *__pyx_v_data) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glCompressedTexImage2D", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":114
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize,  GLvoid* data) with gil:
 *     print "GL glCompressedTexImage2D( target = ", target, ", level = ", level, ", internalformat = ", internalformat, ", width = ", width, ", height = ", height, ", border = ", border, ", imageSize = ", imageSize, ", data*=", repr(hex(<long> data)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glCompressedTexImage2D ( target, level, internalformat, width, height, border, imageSize, data)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_target); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_level); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyLong_FromUnsignedLong(__pyx_v_internalformat); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromLong(__pyx_v_width); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromLong(__pyx_v_height); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyInt_FromLong(__pyx_v_border); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = PyInt_FromLong(__pyx_v_imageSize); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = PyInt_FromLong(((long)__pyx_v_data)); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_9);
  PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_8);
  __pyx_t_8 = 0;
  __pyx_t_8 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_9), NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(((PyObject *)__pyx_t_9)); __pyx_t_9 = 0;
  __pyx_t_9 = PyObject_Repr(__pyx_t_8); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyTuple_New(17); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_42));
  PyTuple_SET_ITEM(__pyx_t_8, 0, ((PyObject *)__pyx_kp_s_42));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_42));
  PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_43));
  PyTuple_SET_ITEM(__pyx_t_8, 2, ((PyObject *)__pyx_kp_s_43));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_43));
  PyTuple_SET_ITEM(__pyx_t_8, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_44));
  PyTuple_SET_ITEM(__pyx_t_8, 4, ((PyObject *)__pyx_kp_s_44));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_44));
  PyTuple_SET_ITEM(__pyx_t_8, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_45));
  PyTuple_SET_ITEM(__pyx_t_8, 6, ((PyObject *)__pyx_kp_s_45));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_45));
  PyTuple_SET_ITEM(__pyx_t_8, 7, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_46));
  PyTuple_SET_ITEM(__pyx_t_8, 8, ((PyObject *)__pyx_kp_s_46));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_46));
  PyTuple_SET_ITEM(__pyx_t_8, 9, __pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_47));
  PyTuple_SET_ITEM(__pyx_t_8, 10, ((PyObject *)__pyx_kp_s_47));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_47));
  PyTuple_SET_ITEM(__pyx_t_8, 11, __pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_6);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_48));
  PyTuple_SET_ITEM(__pyx_t_8, 12, ((PyObject *)__pyx_kp_s_48));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_48));
  PyTuple_SET_ITEM(__pyx_t_8, 13, __pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_7);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_32));
  PyTuple_SET_ITEM(__pyx_t_8, 14, ((PyObject *)__pyx_kp_s_32));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_32));
  PyTuple_SET_ITEM(__pyx_t_8, 15, __pyx_t_9);
  __Pyx_GIVEREF(__pyx_t_9);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_8, 16, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_6 = 0;
  __pyx_t_7 = 0;
  __pyx_t_9 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_8), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 114; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_8)); __pyx_t_8 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":115
 * cdef void   glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize,  GLvoid* data) with gil:
 *     print "GL glCompressedTexImage2D( target = ", target, ", level = ", level, ", internalformat = ", internalformat, ", width = ", width, ", height = ", height, ", border = ", border, ", imageSize = ", imageSize, ", data*=", repr(hex(<long> data)), ", )"
 *     cgl.glCompressedTexImage2D ( target, level, internalformat, width, height, border, imageSize, data)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glCompressedTexImage2D(__pyx_v_target, __pyx_v_level, __pyx_v_internalformat, __pyx_v_width, __pyx_v_height, __pyx_v_border, __pyx_v_imageSize, __pyx_v_data);

  /* "kivy\graphics\c_opengl_debug.pyx":116
 *     print "GL glCompressedTexImage2D( target = ", target, ", level = ", level, ", internalformat = ", internalformat, ", width = ", width, ", height = ", height, ", border = ", border, ", imageSize = ", imageSize, ", data*=", repr(hex(<long> data)), ", )"
 *     cgl.glCompressedTexImage2D ( target, level, internalformat, width, height, border, imageSize, data)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize,  GLvoid* data) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":117
 *     cgl.glCompressedTexImage2D ( target, level, internalformat, width, height, border, imageSize, data)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize,  GLvoid* data) with gil:
 *     print "GL glCompressedTexSubImage2D( target = ", target, ", level = ", level, ", xoffset = ", xoffset, ", yoffset = ", yoffset, ", width = ", width, ", height = ", height, ", format = ", format, ", imageSize = ", imageSize, ", data*=", repr(hex(<long> data)), ", )"
 */
  __pyx_t_10 = (__pyx_v_ret != 0);
  if (__pyx_t_10) {
    __pyx_t_8 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 117; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_9 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 117; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 117; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_7);
    PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_8);
    __Pyx_GIVEREF(__pyx_t_8);
    PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_9);
    __Pyx_GIVEREF(__pyx_t_9);
    __pyx_t_8 = 0;
    __pyx_t_9 = 0;
    __pyx_t_9 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_7)); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 117; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_9));
    __Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_9)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 117; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_9)); __pyx_t_9 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glCompressedTexImage2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":118
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize,  GLvoid* data) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glCompressedTexSubImage2D( target = ", target, ", level = ", level, ", xoffset = ", xoffset, ", yoffset = ", yoffset, ", width = ", width, ", height = ", height, ", format = ", format, ", imageSize = ", imageSize, ", data*=", repr(hex(<long> data)), ", )"
 *     cgl.glCompressedTexSubImage2D ( target, level, xoffset, yoffset, width, height, format, imageSize, data)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glCompressedTexSubImage2D(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_target, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_level, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_xoffset, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_yoffset, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_width, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_height, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_format, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_imageSize, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLvoid *__pyx_v_data) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glCompressedTexSubImage2D", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":119
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize,  GLvoid* data) with gil:
 *     print "GL glCompressedTexSubImage2D( target = ", target, ", level = ", level, ", xoffset = ", xoffset, ", yoffset = ", yoffset, ", width = ", width, ", height = ", height, ", format = ", format, ", imageSize = ", imageSize, ", data*=", repr(hex(<long> data)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glCompressedTexSubImage2D ( target, level, xoffset, yoffset, width, height, format, imageSize, data)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_target); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_level); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(__pyx_v_xoffset); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromLong(__pyx_v_yoffset); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromLong(__pyx_v_width); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyInt_FromLong(__pyx_v_height); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = PyLong_FromUnsignedLong(__pyx_v_format); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = PyInt_FromLong(__pyx_v_imageSize); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = PyInt_FromLong(((long)__pyx_v_data)); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_10 = PyTuple_New(1); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_10);
  PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_9);
  __Pyx_GIVEREF(__pyx_t_9);
  __pyx_t_9 = 0;
  __pyx_t_9 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_10), NULL); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(((PyObject *)__pyx_t_10)); __pyx_t_10 = 0;
  __pyx_t_10 = PyObject_Repr(__pyx_t_9); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_10);
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __pyx_t_9 = PyTuple_New(19); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_49));
  PyTuple_SET_ITEM(__pyx_t_9, 0, ((PyObject *)__pyx_kp_s_49));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_49));
  PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_43));
  PyTuple_SET_ITEM(__pyx_t_9, 2, ((PyObject *)__pyx_kp_s_43));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_43));
  PyTuple_SET_ITEM(__pyx_t_9, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_50));
  PyTuple_SET_ITEM(__pyx_t_9, 4, ((PyObject *)__pyx_kp_s_50));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_50));
  PyTuple_SET_ITEM(__pyx_t_9, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_51));
  PyTuple_SET_ITEM(__pyx_t_9, 6, ((PyObject *)__pyx_kp_s_51));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_51));
  PyTuple_SET_ITEM(__pyx_t_9, 7, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_45));
  PyTuple_SET_ITEM(__pyx_t_9, 8, ((PyObject *)__pyx_kp_s_45));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_45));
  PyTuple_SET_ITEM(__pyx_t_9, 9, __pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_46));
  PyTuple_SET_ITEM(__pyx_t_9, 10, ((PyObject *)__pyx_kp_s_46));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_46));
  PyTuple_SET_ITEM(__pyx_t_9, 11, __pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_6);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_52));
  PyTuple_SET_ITEM(__pyx_t_9, 12, ((PyObject *)__pyx_kp_s_52));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_52));
  PyTuple_SET_ITEM(__pyx_t_9, 13, __pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_7);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_48));
  PyTuple_SET_ITEM(__pyx_t_9, 14, ((PyObject *)__pyx_kp_s_48));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_48));
  PyTuple_SET_ITEM(__pyx_t_9, 15, __pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_8);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_32));
  PyTuple_SET_ITEM(__pyx_t_9, 16, ((PyObject *)__pyx_kp_s_32));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_32));
  PyTuple_SET_ITEM(__pyx_t_9, 17, __pyx_t_10);
  __Pyx_GIVEREF(__pyx_t_10);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_9, 18, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_6 = 0;
  __pyx_t_7 = 0;
  __pyx_t_8 = 0;
  __pyx_t_10 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_9), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_9)); __pyx_t_9 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":120
 * cdef void   glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize,  GLvoid* data) with gil:
 *     print "GL glCompressedTexSubImage2D( target = ", target, ", level = ", level, ", xoffset = ", xoffset, ", yoffset = ", yoffset, ", width = ", width, ", height = ", height, ", format = ", format, ", imageSize = ", imageSize, ", data*=", repr(hex(<long> data)), ", )"
 *     cgl.glCompressedTexSubImage2D ( target, level, xoffset, yoffset, width, height, format, imageSize, data)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glCompressedTexSubImage2D(__pyx_v_target, __pyx_v_level, __pyx_v_xoffset, __pyx_v_yoffset, __pyx_v_width, __pyx_v_height, __pyx_v_format, __pyx_v_imageSize, __pyx_v_data);

  /* "kivy\graphics\c_opengl_debug.pyx":121
 *     print "GL glCompressedTexSubImage2D( target = ", target, ", level = ", level, ", xoffset = ", xoffset, ", yoffset = ", yoffset, ", width = ", width, ", height = ", height, ", format = ", format, ", imageSize = ", imageSize, ", data*=", repr(hex(<long> data)), ", )"
 *     cgl.glCompressedTexSubImage2D ( target, level, xoffset, yoffset, width, height, format, imageSize, data)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":122
 *     cgl.glCompressedTexSubImage2D ( target, level, xoffset, yoffset, width, height, format, imageSize, data)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) with gil:
 *     print "GL glCopyTexImage2D( target = ", target, ", level = ", level, ", internalformat = ", internalformat, ", x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", border = ", border, ", )"
 */
  __pyx_t_11 = (__pyx_v_ret != 0);
  if (__pyx_t_11) {
    __pyx_t_9 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 122; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_10 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 122; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_10);
    __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 122; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_8);
    PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_9);
    __Pyx_GIVEREF(__pyx_t_9);
    PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_10);
    __Pyx_GIVEREF(__pyx_t_10);
    __pyx_t_9 = 0;
    __pyx_t_10 = 0;
    __pyx_t_10 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_8)); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 122; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_10));
    __Pyx_DECREF(((PyObject *)__pyx_t_8)); __pyx_t_8 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_10)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 122; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_10)); __pyx_t_10 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glCompressedTexSubImage2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":123
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glCopyTexImage2D( target = ", target, ", level = ", level, ", internalformat = ", internalformat, ", x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", border = ", border, ", )"
 *     cgl.glCopyTexImage2D ( target, level, internalformat, x, y, width, height, border)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glCopyTexImage2D(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_target, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_level, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_internalformat, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_x, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_y, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_width, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_height, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_border) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glCopyTexImage2D", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":124
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) with gil:
 *     print "GL glCopyTexImage2D( target = ", target, ", level = ", level, ", internalformat = ", internalformat, ", x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", border = ", border, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glCopyTexImage2D ( target, level, internalformat, x, y, width, height, border)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_target); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_level); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyLong_FromUnsignedLong(__pyx_v_internalformat); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromLong(__pyx_v_x); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromLong(__pyx_v_y); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyInt_FromLong(__pyx_v_width); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = PyInt_FromLong(__pyx_v_height); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = PyInt_FromLong(__pyx_v_border); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = PyTuple_New(17); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_53));
  PyTuple_SET_ITEM(__pyx_t_9, 0, ((PyObject *)__pyx_kp_s_53));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_53));
  PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_43));
  PyTuple_SET_ITEM(__pyx_t_9, 2, ((PyObject *)__pyx_kp_s_43));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_43));
  PyTuple_SET_ITEM(__pyx_t_9, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_44));
  PyTuple_SET_ITEM(__pyx_t_9, 4, ((PyObject *)__pyx_kp_s_44));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_44));
  PyTuple_SET_ITEM(__pyx_t_9, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_54));
  PyTuple_SET_ITEM(__pyx_t_9, 6, ((PyObject *)__pyx_kp_s_54));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_54));
  PyTuple_SET_ITEM(__pyx_t_9, 7, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_55));
  PyTuple_SET_ITEM(__pyx_t_9, 8, ((PyObject *)__pyx_kp_s_55));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_55));
  PyTuple_SET_ITEM(__pyx_t_9, 9, __pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_45));
  PyTuple_SET_ITEM(__pyx_t_9, 10, ((PyObject *)__pyx_kp_s_45));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_45));
  PyTuple_SET_ITEM(__pyx_t_9, 11, __pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_6);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_46));
  PyTuple_SET_ITEM(__pyx_t_9, 12, ((PyObject *)__pyx_kp_s_46));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_46));
  PyTuple_SET_ITEM(__pyx_t_9, 13, __pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_7);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_47));
  PyTuple_SET_ITEM(__pyx_t_9, 14, ((PyObject *)__pyx_kp_s_47));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_47));
  PyTuple_SET_ITEM(__pyx_t_9, 15, __pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_8);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_9, 16, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_6 = 0;
  __pyx_t_7 = 0;
  __pyx_t_8 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_9), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 124; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_9)); __pyx_t_9 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":125
 * cdef void   glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) with gil:
 *     print "GL glCopyTexImage2D( target = ", target, ", level = ", level, ", internalformat = ", internalformat, ", x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", border = ", border, ", )"
 *     cgl.glCopyTexImage2D ( target, level, internalformat, x, y, width, height, border)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glCopyTexImage2D(__pyx_v_target, __pyx_v_level, __pyx_v_internalformat, __pyx_v_x, __pyx_v_y, __pyx_v_width, __pyx_v_height, __pyx_v_border);

  /* "kivy\graphics\c_opengl_debug.pyx":126
 *     print "GL glCopyTexImage2D( target = ", target, ", level = ", level, ", internalformat = ", internalformat, ", x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", border = ", border, ", )"
 *     cgl.glCopyTexImage2D ( target, level, internalformat, x, y, width, height, border)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":127
 *     cgl.glCopyTexImage2D ( target, level, internalformat, x, y, width, height, border)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) with gil:
 *     print "GL glCopyTexSubImage2D( target = ", target, ", level = ", level, ", xoffset = ", xoffset, ", yoffset = ", yoffset, ", x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", )"
 */
  __pyx_t_10 = (__pyx_v_ret != 0);
  if (__pyx_t_10) {
    __pyx_t_9 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 127; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_8 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 127; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 127; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_7);
    PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_9);
    __Pyx_GIVEREF(__pyx_t_9);
    PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_8);
    __Pyx_GIVEREF(__pyx_t_8);
    __pyx_t_9 = 0;
    __pyx_t_8 = 0;
    __pyx_t_8 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_7)); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 127; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_8));
    __Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_8)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 127; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_8)); __pyx_t_8 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glCopyTexImage2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":128
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glCopyTexSubImage2D( target = ", target, ", level = ", level, ", xoffset = ", xoffset, ", yoffset = ", yoffset, ", x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", )"
 *     cgl.glCopyTexSubImage2D ( target, level, xoffset, yoffset, x, y, width, height)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glCopyTexSubImage2D(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_target, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_level, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_xoffset, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_yoffset, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_x, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_y, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_width, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_height) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  int __pyx_t_10;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glCopyTexSubImage2D", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":129
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) with gil:
 *     print "GL glCopyTexSubImage2D( target = ", target, ", level = ", level, ", xoffset = ", xoffset, ", yoffset = ", yoffset, ", x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glCopyTexSubImage2D ( target, level, xoffset, yoffset, x, y, width, height)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_target); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 129; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_level); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 129; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(__pyx_v_xoffset); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 129; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromLong(__pyx_v_yoffset); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 129; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromLong(__pyx_v_x); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 129; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyInt_FromLong(__pyx_v_y); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 129; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = PyInt_FromLong(__pyx_v_width); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 129; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = PyInt_FromLong(__pyx_v_height); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 129; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = PyTuple_New(17); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 129; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_56));
  PyTuple_SET_ITEM(__pyx_t_9, 0, ((PyObject *)__pyx_kp_s_56));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_56));
  PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_43));
  PyTuple_SET_ITEM(__pyx_t_9, 2, ((PyObject *)__pyx_kp_s_43));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_43));
  PyTuple_SET_ITEM(__pyx_t_9, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_50));
  PyTuple_SET_ITEM(__pyx_t_9, 4, ((PyObject *)__pyx_kp_s_50));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_50));
  PyTuple_SET_ITEM(__pyx_t_9, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_51));
  PyTuple_SET_ITEM(__pyx_t_9, 6, ((PyObject *)__pyx_kp_s_51));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_51));
  PyTuple_SET_ITEM(__pyx_t_9, 7, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_54));
  PyTuple_SET_ITEM(__pyx_t_9, 8, ((PyObject *)__pyx_kp_s_54));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_54));
  PyTuple_SET_ITEM(__pyx_t_9, 9, __pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_55));
  PyTuple_SET_ITEM(__pyx_t_9, 10, ((PyObject *)__pyx_kp_s_55));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_55));
  PyTuple_SET_ITEM(__pyx_t_9, 11, __pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_6);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_45));
  PyTuple_SET_ITEM(__pyx_t_9, 12, ((PyObject *)__pyx_kp_s_45));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_45));
  PyTuple_SET_ITEM(__pyx_t_9, 13, __pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_7);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_46));
  PyTuple_SET_ITEM(__pyx_t_9, 14, ((PyObject *)__pyx_kp_s_46));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_46));
  PyTuple_SET_ITEM(__pyx_t_9, 15, __pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_8);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_9, 16, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_6 = 0;
  __pyx_t_7 = 0;
  __pyx_t_8 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_9), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 129; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_9)); __pyx_t_9 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":130
 * cdef void   glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) with gil:
 *     print "GL glCopyTexSubImage2D( target = ", target, ", level = ", level, ", xoffset = ", xoffset, ", yoffset = ", yoffset, ", x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", )"
 *     cgl.glCopyTexSubImage2D ( target, level, xoffset, yoffset, x, y, width, height)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glCopyTexSubImage2D(__pyx_v_target, __pyx_v_level, __pyx_v_xoffset, __pyx_v_yoffset, __pyx_v_x, __pyx_v_y, __pyx_v_width, __pyx_v_height);

  /* "kivy\graphics\c_opengl_debug.pyx":131
 *     print "GL glCopyTexSubImage2D( target = ", target, ", level = ", level, ", xoffset = ", xoffset, ", yoffset = ", yoffset, ", x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", )"
 *     cgl.glCopyTexSubImage2D ( target, level, xoffset, yoffset, x, y, width, height)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef GLuint glCreateProgram () with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":132
 *     cgl.glCopyTexSubImage2D ( target, level, xoffset, yoffset, x, y, width, height)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef GLuint glCreateProgram () with gil:
 *     print "GL glCreateProgram( )"
 */
  __pyx_t_10 = (__pyx_v_ret != 0);
  if (__pyx_t_10) {
    __pyx_t_9 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 132; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_8 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 132; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 132; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_7);
    PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_9);
    __Pyx_GIVEREF(__pyx_t_9);
    PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_8);
    __Pyx_GIVEREF(__pyx_t_8);
    __pyx_t_9 = 0;
    __pyx_t_8 = 0;
    __pyx_t_8 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_7)); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 132; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_8));
    __Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_8)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 132; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_8)); __pyx_t_8 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glCopyTexSubImage2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":133
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef GLuint glCreateProgram () with gil:             # <<<<<<<<<<<<<<
 *     print "GL glCreateProgram( )"
 *     ret = cgl.glGetError()
 */

static __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_f_4kivy_8graphics_14c_opengl_debug_glCreateProgram(void) {
  GLenum __pyx_v_ret;
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glCreateProgram", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":134
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef GLuint glCreateProgram () with gil:
 *     print "GL glCreateProgram( )"             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_57)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 134; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "kivy\graphics\c_opengl_debug.pyx":135
 * cdef GLuint glCreateProgram () with gil:
 *     print "GL glCreateProgram( )"
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 *     return cgl.glCreateProgram ()
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":136
 *     print "GL glCreateProgram( )"
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 *     return cgl.glCreateProgram ()
 * cdef GLuint glCreateShader (GLenum type) with gil:
 */
  __pyx_t_1 = (__pyx_v_ret != 0);
  if (__pyx_t_1) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 136; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 136; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 136; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_2 = 0;
    __pyx_t_3 = 0;
    __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 136; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 136; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "kivy\graphics\c_opengl_debug.pyx":137
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 *     return cgl.glCreateProgram ()             # <<<<<<<<<<<<<<
 * cdef GLuint glCreateShader (GLenum type) with gil:
 *     print "GL glCreateShader( type = ", type, ", )"
 */
  __pyx_r = glCreateProgram();
  goto __pyx_L0;

  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glCreateProgram", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
  return __pyx_r;
}

/* "kivy\graphics\c_opengl_debug.pyx":138
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 *     return cgl.glCreateProgram ()
 * cdef GLuint glCreateShader (GLenum type) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glCreateShader( type = ", type, ", )"
 *     ret = cgl.glGetError()
 */

static __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_f_4kivy_8graphics_14c_opengl_debug_glCreateShader(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_type) {
  GLenum __pyx_v_ret;
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glCreateShader", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":139
 *     return cgl.glCreateProgram ()
 * cdef GLuint glCreateShader (GLenum type) with gil:
 *     print "GL glCreateShader( type = ", type, ", )"             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_type); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 139; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 139; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_58));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_58));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_58));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 139; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":140
 * cdef GLuint glCreateShader (GLenum type) with gil:
 *     print "GL glCreateShader( type = ", type, ", )"
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 *     return cgl.glCreateShader ( type)
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":141
 *     print "GL glCreateShader( type = ", type, ", )"
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 *     return cgl.glCreateShader ( type)
 * cdef void   glCullFace (GLenum mode) with gil:
 */
  __pyx_t_3 = (__pyx_v_ret != 0);
  if (__pyx_t_3) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 141; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 141; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 141; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 141; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 141; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "kivy\graphics\c_opengl_debug.pyx":142
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 *     return cgl.glCreateShader ( type)             # <<<<<<<<<<<<<<
 * cdef void   glCullFace (GLenum mode) with gil:
 *     print "GL glCullFace( mode = ", mode, ", )"
 */
  __pyx_r = glCreateShader(__pyx_v_type);
  goto __pyx_L0;

  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glCreateShader", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
  return __pyx_r;
}

/* "kivy\graphics\c_opengl_debug.pyx":143
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 *     return cgl.glCreateShader ( type)
 * cdef void   glCullFace (GLenum mode) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glCullFace( mode = ", mode, ", )"
 *     cgl.glCullFace ( mode)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glCullFace(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_mode) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glCullFace", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":144
 *     return cgl.glCreateShader ( type)
 * cdef void   glCullFace (GLenum mode) with gil:
 *     print "GL glCullFace( mode = ", mode, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glCullFace ( mode)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_mode); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_59));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_59));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_59));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 144; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":145
 * cdef void   glCullFace (GLenum mode) with gil:
 *     print "GL glCullFace( mode = ", mode, ", )"
 *     cgl.glCullFace ( mode)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glCullFace(__pyx_v_mode);

  /* "kivy\graphics\c_opengl_debug.pyx":146
 *     print "GL glCullFace( mode = ", mode, ", )"
 *     cgl.glCullFace ( mode)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glDeleteBuffers (GLsizei n,  GLuint* buffers) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":147
 *     cgl.glCullFace ( mode)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glDeleteBuffers (GLsizei n,  GLuint* buffers) with gil:
 *     print "GL glDeleteBuffers( n = ", n, ", buffers*=", repr(hex(<long> buffers)), ", )"
 */
  __pyx_t_3 = (__pyx_v_ret != 0);
  if (__pyx_t_3) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glCullFace", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":148
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glDeleteBuffers (GLsizei n,  GLuint* buffers) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glDeleteBuffers( n = ", n, ", buffers*=", repr(hex(<long> buffers)), ", )"
 *     cgl.glDeleteBuffers ( n, buffers)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glDeleteBuffers(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_n, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint *__pyx_v_buffers) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glDeleteBuffers", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":149
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glDeleteBuffers (GLsizei n,  GLuint* buffers) with gil:
 *     print "GL glDeleteBuffers( n = ", n, ", buffers*=", repr(hex(<long> buffers)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glDeleteBuffers ( n, buffers)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_n); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 149; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(((long)__pyx_v_buffers)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 149; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 149; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;
  __pyx_t_2 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 149; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Repr(__pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 149; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(5); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 149; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_60));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_60));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_60));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_61));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_61));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_61));
  PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 4, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_3 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 149; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":150
 * cdef void   glDeleteBuffers (GLsizei n,  GLuint* buffers) with gil:
 *     print "GL glDeleteBuffers( n = ", n, ", buffers*=", repr(hex(<long> buffers)), ", )"
 *     cgl.glDeleteBuffers ( n, buffers)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glDeleteBuffers(__pyx_v_n, __pyx_v_buffers);

  /* "kivy\graphics\c_opengl_debug.pyx":151
 *     print "GL glDeleteBuffers( n = ", n, ", buffers*=", repr(hex(<long> buffers)), ", )"
 *     cgl.glDeleteBuffers ( n, buffers)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glDeleteFramebuffers (GLsizei n,  GLuint* framebuffers) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":152
 *     cgl.glDeleteBuffers ( n, buffers)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glDeleteFramebuffers (GLsizei n,  GLuint* framebuffers) with gil:
 *     print "GL glDeleteFramebuffers( n = ", n, ", framebuffers*=", repr(hex(<long> framebuffers)), ", )"
 */
  __pyx_t_4 = (__pyx_v_ret != 0);
  if (__pyx_t_4) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 152; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 152; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 152; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_2 = 0;
    __pyx_t_3 = 0;
    __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 152; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 152; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glDeleteBuffers", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":153
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glDeleteFramebuffers (GLsizei n,  GLuint* framebuffers) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glDeleteFramebuffers( n = ", n, ", framebuffers*=", repr(hex(<long> framebuffers)), ", )"
 *     cgl.glDeleteFramebuffers ( n, framebuffers)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glDeleteFramebuffers(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_n, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint *__pyx_v_framebuffers) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glDeleteFramebuffers", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":154
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glDeleteFramebuffers (GLsizei n,  GLuint* framebuffers) with gil:
 *     print "GL glDeleteFramebuffers( n = ", n, ", framebuffers*=", repr(hex(<long> framebuffers)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glDeleteFramebuffers ( n, framebuffers)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_n); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 154; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(((long)__pyx_v_framebuffers)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 154; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 154; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;
  __pyx_t_2 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 154; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Repr(__pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 154; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(5); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 154; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_62));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_62));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_62));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_63));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_63));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_63));
  PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 4, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_3 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 154; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":155
 * cdef void   glDeleteFramebuffers (GLsizei n,  GLuint* framebuffers) with gil:
 *     print "GL glDeleteFramebuffers( n = ", n, ", framebuffers*=", repr(hex(<long> framebuffers)), ", )"
 *     cgl.glDeleteFramebuffers ( n, framebuffers)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glDeleteFramebuffers(__pyx_v_n, __pyx_v_framebuffers);

  /* "kivy\graphics\c_opengl_debug.pyx":156
 *     print "GL glDeleteFramebuffers( n = ", n, ", framebuffers*=", repr(hex(<long> framebuffers)), ", )"
 *     cgl.glDeleteFramebuffers ( n, framebuffers)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glDeleteProgram (GLuint program) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":157
 *     cgl.glDeleteFramebuffers ( n, framebuffers)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glDeleteProgram (GLuint program) with gil:
 *     print "GL glDeleteProgram( program = ", program, ", )"
 */
  __pyx_t_4 = (__pyx_v_ret != 0);
  if (__pyx_t_4) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_2 = 0;
    __pyx_t_3 = 0;
    __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glDeleteFramebuffers", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":158
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glDeleteProgram (GLuint program) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glDeleteProgram( program = ", program, ", )"
 *     cgl.glDeleteProgram ( program)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glDeleteProgram(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_program) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glDeleteProgram", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":159
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glDeleteProgram (GLuint program) with gil:
 *     print "GL glDeleteProgram( program = ", program, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glDeleteProgram ( program)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_program); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 159; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 159; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_64));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_64));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_64));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 159; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":160
 * cdef void   glDeleteProgram (GLuint program) with gil:
 *     print "GL glDeleteProgram( program = ", program, ", )"
 *     cgl.glDeleteProgram ( program)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glDeleteProgram(__pyx_v_program);

  /* "kivy\graphics\c_opengl_debug.pyx":161
 *     print "GL glDeleteProgram( program = ", program, ", )"
 *     cgl.glDeleteProgram ( program)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glDeleteRenderbuffers (GLsizei n,  GLuint* renderbuffers) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":162
 *     cgl.glDeleteProgram ( program)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glDeleteRenderbuffers (GLsizei n,  GLuint* renderbuffers) with gil:
 *     print "GL glDeleteRenderbuffers( n = ", n, ", renderbuffers*=", repr(hex(<long> renderbuffers)), ", )"
 */
  __pyx_t_3 = (__pyx_v_ret != 0);
  if (__pyx_t_3) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 162; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 162; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 162; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 162; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 162; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glDeleteProgram", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":163
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glDeleteRenderbuffers (GLsizei n,  GLuint* renderbuffers) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glDeleteRenderbuffers( n = ", n, ", renderbuffers*=", repr(hex(<long> renderbuffers)), ", )"
 *     cgl.glDeleteRenderbuffers ( n, renderbuffers)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glDeleteRenderbuffers(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_n, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint *__pyx_v_renderbuffers) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glDeleteRenderbuffers", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":164
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glDeleteRenderbuffers (GLsizei n,  GLuint* renderbuffers) with gil:
 *     print "GL glDeleteRenderbuffers( n = ", n, ", renderbuffers*=", repr(hex(<long> renderbuffers)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glDeleteRenderbuffers ( n, renderbuffers)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_n); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 164; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(((long)__pyx_v_renderbuffers)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 164; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 164; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;
  __pyx_t_2 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 164; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Repr(__pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 164; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(5); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 164; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_65));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_65));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_65));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_66));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_66));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_66));
  PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 4, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_3 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 164; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":165
 * cdef void   glDeleteRenderbuffers (GLsizei n,  GLuint* renderbuffers) with gil:
 *     print "GL glDeleteRenderbuffers( n = ", n, ", renderbuffers*=", repr(hex(<long> renderbuffers)), ", )"
 *     cgl.glDeleteRenderbuffers ( n, renderbuffers)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glDeleteRenderbuffers(__pyx_v_n, __pyx_v_renderbuffers);

  /* "kivy\graphics\c_opengl_debug.pyx":166
 *     print "GL glDeleteRenderbuffers( n = ", n, ", renderbuffers*=", repr(hex(<long> renderbuffers)), ", )"
 *     cgl.glDeleteRenderbuffers ( n, renderbuffers)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glDeleteShader (GLuint shader) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":167
 *     cgl.glDeleteRenderbuffers ( n, renderbuffers)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glDeleteShader (GLuint shader) with gil:
 *     print "GL glDeleteShader( shader = ", shader, ", )"
 */
  __pyx_t_4 = (__pyx_v_ret != 0);
  if (__pyx_t_4) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 167; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 167; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 167; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_2 = 0;
    __pyx_t_3 = 0;
    __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 167; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 167; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glDeleteRenderbuffers", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":168
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glDeleteShader (GLuint shader) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glDeleteShader( shader = ", shader, ", )"
 *     cgl.glDeleteShader ( shader)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glDeleteShader(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_shader) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glDeleteShader", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":169
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glDeleteShader (GLuint shader) with gil:
 *     print "GL glDeleteShader( shader = ", shader, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glDeleteShader ( shader)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_shader); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_67));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_67));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_67));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":170
 * cdef void   glDeleteShader (GLuint shader) with gil:
 *     print "GL glDeleteShader( shader = ", shader, ", )"
 *     cgl.glDeleteShader ( shader)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glDeleteShader(__pyx_v_shader);

  /* "kivy\graphics\c_opengl_debug.pyx":171
 *     print "GL glDeleteShader( shader = ", shader, ", )"
 *     cgl.glDeleteShader ( shader)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glDeleteTextures (GLsizei n,  GLuint* textures) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":172
 *     cgl.glDeleteShader ( shader)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glDeleteTextures (GLsizei n,  GLuint* textures) with gil:
 *     print "GL glDeleteTextures( n = ", n, ", textures*=", repr(hex(<long> textures)), ", )"
 */
  __pyx_t_3 = (__pyx_v_ret != 0);
  if (__pyx_t_3) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 172; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 172; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 172; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 172; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 172; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glDeleteShader", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":173
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glDeleteTextures (GLsizei n,  GLuint* textures) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glDeleteTextures( n = ", n, ", textures*=", repr(hex(<long> textures)), ", )"
 *     cgl.glDeleteTextures ( n, textures)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glDeleteTextures(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_n, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint *__pyx_v_textures) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glDeleteTextures", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":174
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glDeleteTextures (GLsizei n,  GLuint* textures) with gil:
 *     print "GL glDeleteTextures( n = ", n, ", textures*=", repr(hex(<long> textures)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glDeleteTextures ( n, textures)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_n); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 174; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(((long)__pyx_v_textures)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 174; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 174; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;
  __pyx_t_2 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 174; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Repr(__pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 174; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(5); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 174; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_68));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_68));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_68));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_69));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_69));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_69));
  PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 4, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_3 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 174; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":175
 * cdef void   glDeleteTextures (GLsizei n,  GLuint* textures) with gil:
 *     print "GL glDeleteTextures( n = ", n, ", textures*=", repr(hex(<long> textures)), ", )"
 *     cgl.glDeleteTextures ( n, textures)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glDeleteTextures(__pyx_v_n, __pyx_v_textures);

  /* "kivy\graphics\c_opengl_debug.pyx":176
 *     print "GL glDeleteTextures( n = ", n, ", textures*=", repr(hex(<long> textures)), ", )"
 *     cgl.glDeleteTextures ( n, textures)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glDepthFunc (GLenum func) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":177
 *     cgl.glDeleteTextures ( n, textures)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glDepthFunc (GLenum func) with gil:
 *     print "GL glDepthFunc( func = ", func, ", )"
 */
  __pyx_t_4 = (__pyx_v_ret != 0);
  if (__pyx_t_4) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 177; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 177; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 177; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_2 = 0;
    __pyx_t_3 = 0;
    __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 177; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 177; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glDeleteTextures", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":178
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glDepthFunc (GLenum func) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glDepthFunc( func = ", func, ", )"
 *     cgl.glDepthFunc ( func)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glDepthFunc(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_func) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glDepthFunc", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":179
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glDepthFunc (GLenum func) with gil:
 *     print "GL glDepthFunc( func = ", func, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glDepthFunc ( func)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_func); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 179; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 179; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_70));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_70));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_70));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 179; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":180
 * cdef void   glDepthFunc (GLenum func) with gil:
 *     print "GL glDepthFunc( func = ", func, ", )"
 *     cgl.glDepthFunc ( func)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glDepthFunc(__pyx_v_func);

  /* "kivy\graphics\c_opengl_debug.pyx":181
 *     print "GL glDepthFunc( func = ", func, ", )"
 *     cgl.glDepthFunc ( func)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glDepthMask (GLboolean flag) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":182
 *     cgl.glDepthFunc ( func)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glDepthMask (GLboolean flag) with gil:
 *     print "GL glDepthMask( flag = ", flag, ", )"
 */
  __pyx_t_3 = (__pyx_v_ret != 0);
  if (__pyx_t_3) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glDepthFunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":183
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glDepthMask (GLboolean flag) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glDepthMask( flag = ", flag, ", )"
 *     cgl.glDepthMask ( flag)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glDepthMask(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean __pyx_v_flag) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glDepthMask", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":184
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glDepthMask (GLboolean flag) with gil:
 *     print "GL glDepthMask( flag = ", flag, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glDepthMask ( flag)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_flag); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 184; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 184; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_71));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_71));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_71));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 184; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":185
 * cdef void   glDepthMask (GLboolean flag) with gil:
 *     print "GL glDepthMask( flag = ", flag, ", )"
 *     cgl.glDepthMask ( flag)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glDepthMask(__pyx_v_flag);

  /* "kivy\graphics\c_opengl_debug.pyx":186
 *     print "GL glDepthMask( flag = ", flag, ", )"
 *     cgl.glDepthMask ( flag)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * #crash on android platform
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":187
 *     cgl.glDepthMask ( flag)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * #crash on android platform
 * #cdef void   glDepthRangef (GLclampf zNear, GLclampf zFar) with gil:
 */
  __pyx_t_3 = (__pyx_v_ret != 0);
  if (__pyx_t_3) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 187; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 187; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 187; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 187; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 187; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glDepthMask", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":194
 * #    ret = glGetError()
 * #    if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDetachShader (GLuint program, GLuint shader) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glDetachShader( program = ", program, ", shader = ", shader, ", )"
 *     cgl.glDetachShader ( program, shader)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glDetachShader(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_program, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_shader) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glDetachShader", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":195
 * #    if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDetachShader (GLuint program, GLuint shader) with gil:
 *     print "GL glDetachShader( program = ", program, ", shader = ", shader, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glDetachShader ( program, shader)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_program); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 195; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_shader); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 195; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 195; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_72));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_72));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_72));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_5));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_5));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_5));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 195; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":196
 * cdef void   glDetachShader (GLuint program, GLuint shader) with gil:
 *     print "GL glDetachShader( program = ", program, ", shader = ", shader, ", )"
 *     cgl.glDetachShader ( program, shader)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glDetachShader(__pyx_v_program, __pyx_v_shader);

  /* "kivy\graphics\c_opengl_debug.pyx":197
 *     print "GL glDetachShader( program = ", program, ", shader = ", shader, ", )"
 *     cgl.glDetachShader ( program, shader)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glDisable (GLenum cap) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":198
 *     cgl.glDetachShader ( program, shader)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glDisable (GLenum cap) with gil:
 *     print "GL glDisable( cap = ", cap, ", )"
 */
  __pyx_t_4 = (__pyx_v_ret != 0);
  if (__pyx_t_4) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 198; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 198; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 198; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_3 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 198; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 198; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glDetachShader", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":199
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glDisable (GLenum cap) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glDisable( cap = ", cap, ", )"
 *     cgl.glDisable ( cap)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glDisable(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_cap) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glDisable", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":200
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glDisable (GLenum cap) with gil:
 *     print "GL glDisable( cap = ", cap, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glDisable ( cap)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_cap); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 200; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 200; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_73));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_73));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_73));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 200; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":201
 * cdef void   glDisable (GLenum cap) with gil:
 *     print "GL glDisable( cap = ", cap, ", )"
 *     cgl.glDisable ( cap)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glDisable(__pyx_v_cap);

  /* "kivy\graphics\c_opengl_debug.pyx":202
 *     print "GL glDisable( cap = ", cap, ", )"
 *     cgl.glDisable ( cap)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glDisableVertexAttribArray (GLuint index) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":203
 *     cgl.glDisable ( cap)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glDisableVertexAttribArray (GLuint index) with gil:
 *     print "GL glDisableVertexAttribArray( index = ", index, ", )"
 */
  __pyx_t_3 = (__pyx_v_ret != 0);
  if (__pyx_t_3) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 203; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 203; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 203; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 203; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 203; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glDisable", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":204
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glDisableVertexAttribArray (GLuint index) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glDisableVertexAttribArray( index = ", index, ", )"
 *     cgl.glDisableVertexAttribArray ( index)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glDisableVertexAttribArray(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_index) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glDisableVertexAttribArray", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":205
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glDisableVertexAttribArray (GLuint index) with gil:
 *     print "GL glDisableVertexAttribArray( index = ", index, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glDisableVertexAttribArray ( index)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_index); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 205; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 205; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_74));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_74));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_74));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 205; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":206
 * cdef void   glDisableVertexAttribArray (GLuint index) with gil:
 *     print "GL glDisableVertexAttribArray( index = ", index, ", )"
 *     cgl.glDisableVertexAttribArray ( index)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glDisableVertexAttribArray(__pyx_v_index);

  /* "kivy\graphics\c_opengl_debug.pyx":207
 *     print "GL glDisableVertexAttribArray( index = ", index, ", )"
 *     cgl.glDisableVertexAttribArray ( index)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glDrawArrays (GLenum mode, GLint first, GLsizei count) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":208
 *     cgl.glDisableVertexAttribArray ( index)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glDrawArrays (GLenum mode, GLint first, GLsizei count) with gil:
 *     print "GL glDrawArrays( mode = ", mode, ", first = ", first, ", count = ", count, ", )"
 */
  __pyx_t_3 = (__pyx_v_ret != 0);
  if (__pyx_t_3) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 208; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 208; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 208; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 208; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 208; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glDisableVertexAttribArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":209
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glDrawArrays (GLenum mode, GLint first, GLsizei count) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glDrawArrays( mode = ", mode, ", first = ", first, ", count = ", count, ", )"
 *     cgl.glDrawArrays ( mode, first, count)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glDrawArrays(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_mode, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_first, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_count) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glDrawArrays", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":210
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glDrawArrays (GLenum mode, GLint first, GLsizei count) with gil:
 *     print "GL glDrawArrays( mode = ", mode, ", first = ", first, ", count = ", count, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glDrawArrays ( mode, first, count)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_mode); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 210; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_first); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 210; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(__pyx_v_count); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 210; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(7); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 210; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_75));
  PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_kp_s_75));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_75));
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_76));
  PyTuple_SET_ITEM(__pyx_t_4, 2, ((PyObject *)__pyx_kp_s_76));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_76));
  PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_77));
  PyTuple_SET_ITEM(__pyx_t_4, 4, ((PyObject *)__pyx_kp_s_77));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_77));
  PyTuple_SET_ITEM(__pyx_t_4, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_4, 6, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_4), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 210; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":211
 * cdef void   glDrawArrays (GLenum mode, GLint first, GLsizei count) with gil:
 *     print "GL glDrawArrays( mode = ", mode, ", first = ", first, ", count = ", count, ", )"
 *     cgl.glDrawArrays ( mode, first, count)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glDrawArrays(__pyx_v_mode, __pyx_v_first, __pyx_v_count);

  /* "kivy\graphics\c_opengl_debug.pyx":212
 *     print "GL glDrawArrays( mode = ", mode, ", first = ", first, ", count = ", count, ", )"
 *     cgl.glDrawArrays ( mode, first, count)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glDrawElements (GLenum mode, GLsizei count, GLenum type,  GLvoid* indices) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":213
 *     cgl.glDrawArrays ( mode, first, count)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glDrawElements (GLenum mode, GLsizei count, GLenum type,  GLvoid* indices) with gil:
 *     print "GL glDrawElements( mode = ", mode, ", count = ", count, ", type = ", type, ", indices*=", repr(hex(<long> indices)), ", )"
 */
  __pyx_t_5 = (__pyx_v_ret != 0);
  if (__pyx_t_5) {
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 213; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 213; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 213; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_4 = 0;
    __pyx_t_3 = 0;
    __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 213; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 213; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glDrawArrays", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":214
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glDrawElements (GLenum mode, GLsizei count, GLenum type,  GLvoid* indices) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glDrawElements( mode = ", mode, ", count = ", count, ", type = ", type, ", indices*=", repr(hex(<long> indices)), ", )"
 *     cgl.glDrawElements ( mode, count, type, indices)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glDrawElements(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_mode, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_count, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_type, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLvoid *__pyx_v_indices) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glDrawElements", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":215
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glDrawElements (GLenum mode, GLsizei count, GLenum type,  GLvoid* indices) with gil:
 *     print "GL glDrawElements( mode = ", mode, ", count = ", count, ", type = ", type, ", indices*=", repr(hex(<long> indices)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glDrawElements ( mode, count, type, indices)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_mode); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 215; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_count); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 215; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyLong_FromUnsignedLong(__pyx_v_type); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 215; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromLong(((long)__pyx_v_indices)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 215; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 215; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 215; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
  __pyx_t_5 = PyObject_Repr(__pyx_t_4); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 215; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(9); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 215; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_78));
  PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_kp_s_78));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_78));
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_77));
  PyTuple_SET_ITEM(__pyx_t_4, 2, ((PyObject *)__pyx_kp_s_77));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_77));
  PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_79));
  PyTuple_SET_ITEM(__pyx_t_4, 4, ((PyObject *)__pyx_kp_s_79));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_79));
  PyTuple_SET_ITEM(__pyx_t_4, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_80));
  PyTuple_SET_ITEM(__pyx_t_4, 6, ((PyObject *)__pyx_kp_s_80));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_80));
  PyTuple_SET_ITEM(__pyx_t_4, 7, __pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_4, 8, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_4), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 215; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":216
 * cdef void   glDrawElements (GLenum mode, GLsizei count, GLenum type,  GLvoid* indices) with gil:
 *     print "GL glDrawElements( mode = ", mode, ", count = ", count, ", type = ", type, ", indices*=", repr(hex(<long> indices)), ", )"
 *     cgl.glDrawElements ( mode, count, type, indices)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glDrawElements(__pyx_v_mode, __pyx_v_count, __pyx_v_type, __pyx_v_indices);

  /* "kivy\graphics\c_opengl_debug.pyx":217
 *     print "GL glDrawElements( mode = ", mode, ", count = ", count, ", type = ", type, ", indices*=", repr(hex(<long> indices)), ", )"
 *     cgl.glDrawElements ( mode, count, type, indices)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glEnable (GLenum cap) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":218
 *     cgl.glDrawElements ( mode, count, type, indices)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glEnable (GLenum cap) with gil:
 *     print "GL glEnable( cap = ", cap, ", )"
 */
  __pyx_t_6 = (__pyx_v_ret != 0);
  if (__pyx_t_6) {
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 218; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 218; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 218; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_t_5 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 218; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_5));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_5)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 218; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glDrawElements", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":219
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glEnable (GLenum cap) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glEnable( cap = ", cap, ", )"
 *     cgl.glEnable ( cap)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glEnable(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_cap) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glEnable", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":220
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glEnable (GLenum cap) with gil:
 *     print "GL glEnable( cap = ", cap, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glEnable ( cap)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_cap); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 220; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 220; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_81));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_81));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_81));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 220; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":221
 * cdef void   glEnable (GLenum cap) with gil:
 *     print "GL glEnable( cap = ", cap, ", )"
 *     cgl.glEnable ( cap)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glEnable(__pyx_v_cap);

  /* "kivy\graphics\c_opengl_debug.pyx":222
 *     print "GL glEnable( cap = ", cap, ", )"
 *     cgl.glEnable ( cap)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glEnableVertexAttribArray (GLuint index) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":223
 *     cgl.glEnable ( cap)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glEnableVertexAttribArray (GLuint index) with gil:
 *     print "GL glEnableVertexAttribArray( index = ", index, ", )"
 */
  __pyx_t_3 = (__pyx_v_ret != 0);
  if (__pyx_t_3) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 223; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 223; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 223; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 223; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 223; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glEnable", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":224
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glEnableVertexAttribArray (GLuint index) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glEnableVertexAttribArray( index = ", index, ", )"
 *     cgl.glEnableVertexAttribArray ( index)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glEnableVertexAttribArray(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_index) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glEnableVertexAttribArray", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":225
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glEnableVertexAttribArray (GLuint index) with gil:
 *     print "GL glEnableVertexAttribArray( index = ", index, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glEnableVertexAttribArray ( index)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_index); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 225; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 225; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_82));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_82));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_82));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 225; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":226
 * cdef void   glEnableVertexAttribArray (GLuint index) with gil:
 *     print "GL glEnableVertexAttribArray( index = ", index, ", )"
 *     cgl.glEnableVertexAttribArray ( index)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glEnableVertexAttribArray(__pyx_v_index);

  /* "kivy\graphics\c_opengl_debug.pyx":227
 *     print "GL glEnableVertexAttribArray( index = ", index, ", )"
 *     cgl.glEnableVertexAttribArray ( index)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glFinish () with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":228
 *     cgl.glEnableVertexAttribArray ( index)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glFinish () with gil:
 *     print "GL glFinish( )"
 */
  __pyx_t_3 = (__pyx_v_ret != 0);
  if (__pyx_t_3) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 228; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 228; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 228; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 228; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 228; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glEnableVertexAttribArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":229
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glFinish () with gil:             # <<<<<<<<<<<<<<
 *     print "GL glFinish( )"
 *     cgl.glFinish ()
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glFinish(void) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glFinish", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":230
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glFinish () with gil:
 *     print "GL glFinish( )"             # <<<<<<<<<<<<<<
 *     cgl.glFinish ()
 *     ret = cgl.glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_83)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 230; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "kivy\graphics\c_opengl_debug.pyx":231
 * cdef void   glFinish () with gil:
 *     print "GL glFinish( )"
 *     cgl.glFinish ()             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glFinish();

  /* "kivy\graphics\c_opengl_debug.pyx":232
 *     print "GL glFinish( )"
 *     cgl.glFinish ()
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glFlush () with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":233
 *     cgl.glFinish ()
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glFlush () with gil:
 *     print "GL glFlush( )"
 */
  __pyx_t_1 = (__pyx_v_ret != 0);
  if (__pyx_t_1) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 233; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 233; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 233; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_2 = 0;
    __pyx_t_3 = 0;
    __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 233; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 233; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glFinish", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":234
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glFlush () with gil:             # <<<<<<<<<<<<<<
 *     print "GL glFlush( )"
 *     cgl.glFlush ()
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glFlush(void) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glFlush", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":235
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glFlush () with gil:
 *     print "GL glFlush( )"             # <<<<<<<<<<<<<<
 *     cgl.glFlush ()
 *     ret = cgl.glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_84)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 235; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "kivy\graphics\c_opengl_debug.pyx":236
 * cdef void   glFlush () with gil:
 *     print "GL glFlush( )"
 *     cgl.glFlush ()             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glFlush();

  /* "kivy\graphics\c_opengl_debug.pyx":237
 *     print "GL glFlush( )"
 *     cgl.glFlush ()
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":238
 *     cgl.glFlush ()
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) with gil:
 *     print "GL glFramebufferRenderbuffer( target = ", target, ", attachment = ", attachment, ", renderbuffertarget = ", renderbuffertarget, ", renderbuffer = ", renderbuffer, ", )"
 */
  __pyx_t_1 = (__pyx_v_ret != 0);
  if (__pyx_t_1) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_2 = 0;
    __pyx_t_3 = 0;
    __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glFlush", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":239
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glFramebufferRenderbuffer( target = ", target, ", attachment = ", attachment, ", renderbuffertarget = ", renderbuffertarget, ", renderbuffer = ", renderbuffer, ", )"
 *     cgl.glFramebufferRenderbuffer ( target, attachment, renderbuffertarget, renderbuffer)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glFramebufferRenderbuffer(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_target, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_attachment, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_renderbuffertarget, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_renderbuffer) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glFramebufferRenderbuffer", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":240
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) with gil:
 *     print "GL glFramebufferRenderbuffer( target = ", target, ", attachment = ", attachment, ", renderbuffertarget = ", renderbuffertarget, ", renderbuffer = ", renderbuffer, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glFramebufferRenderbuffer ( target, attachment, renderbuffertarget, renderbuffer)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_target); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 240; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_attachment); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 240; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyLong_FromUnsignedLong(__pyx_v_renderbuffertarget); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 240; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyLong_FromUnsignedLong(__pyx_v_renderbuffer); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 240; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(9); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 240; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_85));
  PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)__pyx_kp_s_85));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_85));
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_86));
  PyTuple_SET_ITEM(__pyx_t_5, 2, ((PyObject *)__pyx_kp_s_86));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_86));
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_87));
  PyTuple_SET_ITEM(__pyx_t_5, 4, ((PyObject *)__pyx_kp_s_87));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_87));
  PyTuple_SET_ITEM(__pyx_t_5, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_14));
  PyTuple_SET_ITEM(__pyx_t_5, 6, ((PyObject *)__pyx_kp_s_14));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_14));
  PyTuple_SET_ITEM(__pyx_t_5, 7, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_5, 8, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_5), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 240; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":241
 * cdef void   glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) with gil:
 *     print "GL glFramebufferRenderbuffer( target = ", target, ", attachment = ", attachment, ", renderbuffertarget = ", renderbuffertarget, ", renderbuffer = ", renderbuffer, ", )"
 *     cgl.glFramebufferRenderbuffer ( target, attachment, renderbuffertarget, renderbuffer)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glFramebufferRenderbuffer(__pyx_v_target, __pyx_v_attachment, __pyx_v_renderbuffertarget, __pyx_v_renderbuffer);

  /* "kivy\graphics\c_opengl_debug.pyx":242
 *     print "GL glFramebufferRenderbuffer( target = ", target, ", attachment = ", attachment, ", renderbuffertarget = ", renderbuffertarget, ", renderbuffer = ", renderbuffer, ", )"
 *     cgl.glFramebufferRenderbuffer ( target, attachment, renderbuffertarget, renderbuffer)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":243
 *     cgl.glFramebufferRenderbuffer ( target, attachment, renderbuffertarget, renderbuffer)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) with gil:
 *     print "GL glFramebufferTexture2D( target = ", target, ", attachment = ", attachment, ", textarget = ", textarget, ", texture = ", texture, ", level = ", level, ", )"
 */
  __pyx_t_6 = (__pyx_v_ret != 0);
  if (__pyx_t_6) {
    __pyx_t_5 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 243; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 243; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 243; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_5 = 0;
    __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 243; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_4)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 243; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glFramebufferRenderbuffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":244
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glFramebufferTexture2D( target = ", target, ", attachment = ", attachment, ", textarget = ", textarget, ", texture = ", texture, ", level = ", level, ", )"
 *     cgl.glFramebufferTexture2D ( target, attachment, textarget, texture, level)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glFramebufferTexture2D(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_target, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_attachment, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_textarget, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_texture, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_level) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glFramebufferTexture2D", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":245
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) with gil:
 *     print "GL glFramebufferTexture2D( target = ", target, ", attachment = ", attachment, ", textarget = ", textarget, ", texture = ", texture, ", level = ", level, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glFramebufferTexture2D ( target, attachment, textarget, texture, level)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_target); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 245; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_attachment); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 245; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyLong_FromUnsignedLong(__pyx_v_textarget); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 245; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyLong_FromUnsignedLong(__pyx_v_texture); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 245; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromLong(__pyx_v_level); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 245; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(11); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 245; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_88));
  PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)__pyx_kp_s_88));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_88));
  PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_86));
  PyTuple_SET_ITEM(__pyx_t_6, 2, ((PyObject *)__pyx_kp_s_86));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_86));
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_89));
  PyTuple_SET_ITEM(__pyx_t_6, 4, ((PyObject *)__pyx_kp_s_89));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_89));
  PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_16));
  PyTuple_SET_ITEM(__pyx_t_6, 6, ((PyObject *)__pyx_kp_s_16));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_16));
  PyTuple_SET_ITEM(__pyx_t_6, 7, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_43));
  PyTuple_SET_ITEM(__pyx_t_6, 8, ((PyObject *)__pyx_kp_s_43));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_43));
  PyTuple_SET_ITEM(__pyx_t_6, 9, __pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_6, 10, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_6), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 245; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":246
 * cdef void   glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) with gil:
 *     print "GL glFramebufferTexture2D( target = ", target, ", attachment = ", attachment, ", textarget = ", textarget, ", texture = ", texture, ", level = ", level, ", )"
 *     cgl.glFramebufferTexture2D ( target, attachment, textarget, texture, level)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glFramebufferTexture2D(__pyx_v_target, __pyx_v_attachment, __pyx_v_textarget, __pyx_v_texture, __pyx_v_level);

  /* "kivy\graphics\c_opengl_debug.pyx":247
 *     print "GL glFramebufferTexture2D( target = ", target, ", attachment = ", attachment, ", textarget = ", textarget, ", texture = ", texture, ", level = ", level, ", )"
 *     cgl.glFramebufferTexture2D ( target, attachment, textarget, texture, level)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glFrontFace (GLenum mode) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":248
 *     cgl.glFramebufferTexture2D ( target, attachment, textarget, texture, level)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glFrontFace (GLenum mode) with gil:
 *     print "GL glFrontFace( mode = ", mode, ", )"
 */
  __pyx_t_7 = (__pyx_v_ret != 0);
  if (__pyx_t_7) {
    __pyx_t_6 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 248; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_5 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 248; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 248; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_6 = 0;
    __pyx_t_5 = 0;
    __pyx_t_5 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 248; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_5));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_5)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 248; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glFramebufferTexture2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":249
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glFrontFace (GLenum mode) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glFrontFace( mode = ", mode, ", )"
 *     cgl.glFrontFace ( mode)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glFrontFace(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_mode) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glFrontFace", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":250
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glFrontFace (GLenum mode) with gil:
 *     print "GL glFrontFace( mode = ", mode, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glFrontFace ( mode)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_mode); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 250; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 250; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_90));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_90));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_90));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 250; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":251
 * cdef void   glFrontFace (GLenum mode) with gil:
 *     print "GL glFrontFace( mode = ", mode, ", )"
 *     cgl.glFrontFace ( mode)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glFrontFace(__pyx_v_mode);

  /* "kivy\graphics\c_opengl_debug.pyx":252
 *     print "GL glFrontFace( mode = ", mode, ", )"
 *     cgl.glFrontFace ( mode)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGenBuffers (GLsizei n, GLuint* buffers) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":253
 *     cgl.glFrontFace ( mode)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGenBuffers (GLsizei n, GLuint* buffers) with gil:
 *     print "GL glGenBuffers( n = ", n, ", buffers*=", repr(hex(<long> buffers)), ", )"
 */
  __pyx_t_3 = (__pyx_v_ret != 0);
  if (__pyx_t_3) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 253; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 253; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 253; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 253; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 253; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glFrontFace", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":254
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGenBuffers (GLsizei n, GLuint* buffers) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGenBuffers( n = ", n, ", buffers*=", repr(hex(<long> buffers)), ", )"
 *     cgl.glGenBuffers ( n, buffers)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGenBuffers(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_n, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint *__pyx_v_buffers) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGenBuffers", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":255
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGenBuffers (GLsizei n, GLuint* buffers) with gil:
 *     print "GL glGenBuffers( n = ", n, ", buffers*=", repr(hex(<long> buffers)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glGenBuffers ( n, buffers)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_n); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 255; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(((long)__pyx_v_buffers)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 255; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 255; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;
  __pyx_t_2 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 255; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Repr(__pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 255; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(5); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 255; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_91));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_91));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_91));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_61));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_61));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_61));
  PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 4, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_3 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 255; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":256
 * cdef void   glGenBuffers (GLsizei n, GLuint* buffers) with gil:
 *     print "GL glGenBuffers( n = ", n, ", buffers*=", repr(hex(<long> buffers)), ", )"
 *     cgl.glGenBuffers ( n, buffers)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glGenBuffers(__pyx_v_n, __pyx_v_buffers);

  /* "kivy\graphics\c_opengl_debug.pyx":257
 *     print "GL glGenBuffers( n = ", n, ", buffers*=", repr(hex(<long> buffers)), ", )"
 *     cgl.glGenBuffers ( n, buffers)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGenerateMipmap (GLenum target) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":258
 *     cgl.glGenBuffers ( n, buffers)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGenerateMipmap (GLenum target) with gil:
 *     print "GL glGenerateMipmap( target = ", target, ", )"
 */
  __pyx_t_4 = (__pyx_v_ret != 0);
  if (__pyx_t_4) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 258; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 258; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 258; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_2 = 0;
    __pyx_t_3 = 0;
    __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 258; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 258; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glGenBuffers", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":259
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGenerateMipmap (GLenum target) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGenerateMipmap( target = ", target, ", )"
 *     cgl.glGenerateMipmap ( target)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGenerateMipmap(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_target) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGenerateMipmap", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":260
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGenerateMipmap (GLenum target) with gil:
 *     print "GL glGenerateMipmap( target = ", target, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glGenerateMipmap ( target)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_target); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 260; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 260; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_92));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_92));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_92));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 260; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":261
 * cdef void   glGenerateMipmap (GLenum target) with gil:
 *     print "GL glGenerateMipmap( target = ", target, ", )"
 *     cgl.glGenerateMipmap ( target)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glGenerateMipmap(__pyx_v_target);

  /* "kivy\graphics\c_opengl_debug.pyx":262
 *     print "GL glGenerateMipmap( target = ", target, ", )"
 *     cgl.glGenerateMipmap ( target)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGenFramebuffers (GLsizei n, GLuint* framebuffers) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":263
 *     cgl.glGenerateMipmap ( target)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGenFramebuffers (GLsizei n, GLuint* framebuffers) with gil:
 *     print "GL glGenFramebuffers( n = ", n, ", framebuffers*=", repr(hex(<long> framebuffers)), ", )"
 */
  __pyx_t_3 = (__pyx_v_ret != 0);
  if (__pyx_t_3) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 263; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 263; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 263; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 263; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 263; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glGenerateMipmap", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":264
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGenFramebuffers (GLsizei n, GLuint* framebuffers) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGenFramebuffers( n = ", n, ", framebuffers*=", repr(hex(<long> framebuffers)), ", )"
 *     cgl.glGenFramebuffers ( n, framebuffers)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGenFramebuffers(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_n, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint *__pyx_v_framebuffers) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGenFramebuffers", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":265
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGenFramebuffers (GLsizei n, GLuint* framebuffers) with gil:
 *     print "GL glGenFramebuffers( n = ", n, ", framebuffers*=", repr(hex(<long> framebuffers)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glGenFramebuffers ( n, framebuffers)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_n); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 265; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(((long)__pyx_v_framebuffers)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 265; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 265; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;
  __pyx_t_2 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 265; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Repr(__pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 265; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(5); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 265; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_93));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_93));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_93));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_63));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_63));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_63));
  PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 4, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_3 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 265; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":266
 * cdef void   glGenFramebuffers (GLsizei n, GLuint* framebuffers) with gil:
 *     print "GL glGenFramebuffers( n = ", n, ", framebuffers*=", repr(hex(<long> framebuffers)), ", )"
 *     cgl.glGenFramebuffers ( n, framebuffers)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glGenFramebuffers(__pyx_v_n, __pyx_v_framebuffers);

  /* "kivy\graphics\c_opengl_debug.pyx":267
 *     print "GL glGenFramebuffers( n = ", n, ", framebuffers*=", repr(hex(<long> framebuffers)), ", )"
 *     cgl.glGenFramebuffers ( n, framebuffers)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGenRenderbuffers (GLsizei n, GLuint* renderbuffers) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":268
 *     cgl.glGenFramebuffers ( n, framebuffers)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGenRenderbuffers (GLsizei n, GLuint* renderbuffers) with gil:
 *     print "GL glGenRenderbuffers( n = ", n, ", renderbuffers*=", repr(hex(<long> renderbuffers)), ", )"
 */
  __pyx_t_4 = (__pyx_v_ret != 0);
  if (__pyx_t_4) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 268; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 268; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 268; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_2 = 0;
    __pyx_t_3 = 0;
    __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 268; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 268; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glGenFramebuffers", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":269
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGenRenderbuffers (GLsizei n, GLuint* renderbuffers) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGenRenderbuffers( n = ", n, ", renderbuffers*=", repr(hex(<long> renderbuffers)), ", )"
 *     cgl.glGenRenderbuffers ( n, renderbuffers)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGenRenderbuffers(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_n, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint *__pyx_v_renderbuffers) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGenRenderbuffers", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":270
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGenRenderbuffers (GLsizei n, GLuint* renderbuffers) with gil:
 *     print "GL glGenRenderbuffers( n = ", n, ", renderbuffers*=", repr(hex(<long> renderbuffers)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glGenRenderbuffers ( n, renderbuffers)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_n); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 270; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(((long)__pyx_v_renderbuffers)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 270; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 270; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;
  __pyx_t_2 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 270; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Repr(__pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 270; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(5); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 270; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_94));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_94));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_94));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_66));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_66));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_66));
  PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 4, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_3 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 270; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":271
 * cdef void   glGenRenderbuffers (GLsizei n, GLuint* renderbuffers) with gil:
 *     print "GL glGenRenderbuffers( n = ", n, ", renderbuffers*=", repr(hex(<long> renderbuffers)), ", )"
 *     cgl.glGenRenderbuffers ( n, renderbuffers)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glGenRenderbuffers(__pyx_v_n, __pyx_v_renderbuffers);

  /* "kivy\graphics\c_opengl_debug.pyx":272
 *     print "GL glGenRenderbuffers( n = ", n, ", renderbuffers*=", repr(hex(<long> renderbuffers)), ", )"
 *     cgl.glGenRenderbuffers ( n, renderbuffers)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGenTextures (GLsizei n, GLuint* textures) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":273
 *     cgl.glGenRenderbuffers ( n, renderbuffers)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGenTextures (GLsizei n, GLuint* textures) with gil:
 *     print "GL glGenTextures( n = ", n, ", textures*=", repr(hex(<long> textures)), ", )"
 */
  __pyx_t_4 = (__pyx_v_ret != 0);
  if (__pyx_t_4) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 273; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 273; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 273; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_2 = 0;
    __pyx_t_3 = 0;
    __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 273; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 273; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glGenRenderbuffers", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":274
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGenTextures (GLsizei n, GLuint* textures) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGenTextures( n = ", n, ", textures*=", repr(hex(<long> textures)), ", )"
 *     cgl.glGenTextures ( n, textures)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGenTextures(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_n, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint *__pyx_v_textures) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGenTextures", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":275
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGenTextures (GLsizei n, GLuint* textures) with gil:
 *     print "GL glGenTextures( n = ", n, ", textures*=", repr(hex(<long> textures)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glGenTextures ( n, textures)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_n); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 275; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(((long)__pyx_v_textures)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 275; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 275; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;
  __pyx_t_2 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 275; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Repr(__pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 275; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(5); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 275; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_95));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_95));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_95));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_69));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_69));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_69));
  PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 4, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_3 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 275; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":276
 * cdef void   glGenTextures (GLsizei n, GLuint* textures) with gil:
 *     print "GL glGenTextures( n = ", n, ", textures*=", repr(hex(<long> textures)), ", )"
 *     cgl.glGenTextures ( n, textures)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glGenTextures(__pyx_v_n, __pyx_v_textures);

  /* "kivy\graphics\c_opengl_debug.pyx":277
 *     print "GL glGenTextures( n = ", n, ", textures*=", repr(hex(<long> textures)), ", )"
 *     cgl.glGenTextures ( n, textures)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":278
 *     cgl.glGenTextures ( n, textures)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) with gil:
 *     print "GL glGetActiveAttrib( program = ", program, ", index = ", index, ", bufsize = ", bufsize, ", length*=", repr(hex(<long> length)), ", size*=", repr(hex(<long> size)), ", type*=", repr(hex(<long> type)), ", name*=", repr(hex(<long> name)), ", )"
 */
  __pyx_t_4 = (__pyx_v_ret != 0);
  if (__pyx_t_4) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 278; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 278; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 278; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_2 = 0;
    __pyx_t_3 = 0;
    __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 278; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 278; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glGenTextures", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":279
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetActiveAttrib( program = ", program, ", index = ", index, ", bufsize = ", bufsize, ", length*=", repr(hex(<long> length)), ", size*=", repr(hex(<long> size)), ", type*=", repr(hex(<long> type)), ", name*=", repr(hex(<long> name)), ", )"
 *     cgl.glGetActiveAttrib ( program, index, bufsize, length, size, type, name)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetActiveAttrib(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_program, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_index, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_bufsize, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei *__pyx_v_length, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *__pyx_v_size, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum *__pyx_v_type, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLchar *__pyx_v_name) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetActiveAttrib", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":280
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) with gil:
 *     print "GL glGetActiveAttrib( program = ", program, ", index = ", index, ", bufsize = ", bufsize, ", length*=", repr(hex(<long> length)), ", size*=", repr(hex(<long> size)), ", type*=", repr(hex(<long> type)), ", name*=", repr(hex(<long> name)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glGetActiveAttrib ( program, index, bufsize, length, size, type, name)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_program); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 280; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_index); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 280; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(__pyx_v_bufsize); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 280; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromLong(((long)__pyx_v_length)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 280; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 280; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 280; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
  __pyx_t_5 = PyObject_Repr(__pyx_t_4); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 280; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyInt_FromLong(((long)__pyx_v_size)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 280; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 280; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_6);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 280; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
  __pyx_t_6 = PyObject_Repr(__pyx_t_4); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 280; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyInt_FromLong(((long)__pyx_v_type)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 280; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 280; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_7);
  PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_7), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 280; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;
  __pyx_t_7 = PyObject_Repr(__pyx_t_4); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 280; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyInt_FromLong(((long)__pyx_v_name)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 280; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 280; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_8);
  PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_8), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 280; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(((PyObject *)__pyx_t_8)); __pyx_t_8 = 0;
  __pyx_t_8 = PyObject_Repr(__pyx_t_4); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 280; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(15); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 280; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_96));
  PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_kp_s_96));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_96));
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_7));
  PyTuple_SET_ITEM(__pyx_t_4, 2, ((PyObject *)__pyx_kp_s_7));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_7));
  PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_97));
  PyTuple_SET_ITEM(__pyx_t_4, 4, ((PyObject *)__pyx_kp_s_97));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_97));
  PyTuple_SET_ITEM(__pyx_t_4, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_98));
  PyTuple_SET_ITEM(__pyx_t_4, 6, ((PyObject *)__pyx_kp_s_98));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_98));
  PyTuple_SET_ITEM(__pyx_t_4, 7, __pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_99));
  PyTuple_SET_ITEM(__pyx_t_4, 8, ((PyObject *)__pyx_kp_s_99));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_99));
  PyTuple_SET_ITEM(__pyx_t_4, 9, __pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_6);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_100));
  PyTuple_SET_ITEM(__pyx_t_4, 10, ((PyObject *)__pyx_kp_s_100));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_100));
  PyTuple_SET_ITEM(__pyx_t_4, 11, __pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_7);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_8));
  PyTuple_SET_ITEM(__pyx_t_4, 12, ((PyObject *)__pyx_kp_s_8));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_8));
  PyTuple_SET_ITEM(__pyx_t_4, 13, __pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_8);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_4, 14, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  __pyx_t_6 = 0;
  __pyx_t_7 = 0;
  __pyx_t_8 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_4), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 280; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":281
 * cdef void   glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) with gil:
 *     print "GL glGetActiveAttrib( program = ", program, ", index = ", index, ", bufsize = ", bufsize, ", length*=", repr(hex(<long> length)), ", size*=", repr(hex(<long> size)), ", type*=", repr(hex(<long> type)), ", name*=", repr(hex(<long> name)), ", )"
 *     cgl.glGetActiveAttrib ( program, index, bufsize, length, size, type, name)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glGetActiveAttrib(__pyx_v_program, __pyx_v_index, __pyx_v_bufsize, __pyx_v_length, __pyx_v_size, __pyx_v_type, __pyx_v_name);

  /* "kivy\graphics\c_opengl_debug.pyx":282
 *     print "GL glGetActiveAttrib( program = ", program, ", index = ", index, ", bufsize = ", bufsize, ", length*=", repr(hex(<long> length)), ", size*=", repr(hex(<long> size)), ", type*=", repr(hex(<long> type)), ", name*=", repr(hex(<long> name)), ", )"
 *     cgl.glGetActiveAttrib ( program, index, bufsize, length, size, type, name)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetActiveUniform (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":283
 *     cgl.glGetActiveAttrib ( program, index, bufsize, length, size, type, name)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGetActiveUniform (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) with gil:
 *     print "GL glGetActiveUniform( program = ", program, ", index = ", index, ", bufsize = ", bufsize, ", length*=", repr(hex(<long> length)), ", size*=", repr(hex(<long> size)), ", type*=", repr(hex(<long> type)), ", name*=", repr(hex(<long> name)), ", )"
 */
  __pyx_t_9 = (__pyx_v_ret != 0);
  if (__pyx_t_9) {
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_8 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_7);
    PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_8);
    __Pyx_GIVEREF(__pyx_t_8);
    __pyx_t_4 = 0;
    __pyx_t_8 = 0;
    __pyx_t_8 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_7)); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_8));
    __Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_8)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_8)); __pyx_t_8 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glGetActiveAttrib", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":284
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetActiveUniform (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetActiveUniform( program = ", program, ", index = ", index, ", bufsize = ", bufsize, ", length*=", repr(hex(<long> length)), ", size*=", repr(hex(<long> size)), ", type*=", repr(hex(<long> type)), ", name*=", repr(hex(<long> name)), ", )"
 *     cgl.glGetActiveUniform ( program, index, bufsize, length, size, type, name)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetActiveUniform(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_program, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_index, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_bufsize, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei *__pyx_v_length, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *__pyx_v_size, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum *__pyx_v_type, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLchar *__pyx_v_name) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetActiveUniform", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":285
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetActiveUniform (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) with gil:
 *     print "GL glGetActiveUniform( program = ", program, ", index = ", index, ", bufsize = ", bufsize, ", length*=", repr(hex(<long> length)), ", size*=", repr(hex(<long> size)), ", type*=", repr(hex(<long> type)), ", name*=", repr(hex(<long> name)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glGetActiveUniform ( program, index, bufsize, length, size, type, name)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_program); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_index); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(__pyx_v_bufsize); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromLong(((long)__pyx_v_length)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
  __pyx_t_5 = PyObject_Repr(__pyx_t_4); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyInt_FromLong(((long)__pyx_v_size)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_6);
  PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_6), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
  __pyx_t_6 = PyObject_Repr(__pyx_t_4); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyInt_FromLong(((long)__pyx_v_type)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_7);
  PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_7), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;
  __pyx_t_7 = PyObject_Repr(__pyx_t_4); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyInt_FromLong(((long)__pyx_v_name)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_8);
  PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_8), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(((PyObject *)__pyx_t_8)); __pyx_t_8 = 0;
  __pyx_t_8 = PyObject_Repr(__pyx_t_4); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(15); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_101));
  PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_kp_s_101));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_101));
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_7));
  PyTuple_SET_ITEM(__pyx_t_4, 2, ((PyObject *)__pyx_kp_s_7));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_7));
  PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_97));
  PyTuple_SET_ITEM(__pyx_t_4, 4, ((PyObject *)__pyx_kp_s_97));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_97));
  PyTuple_SET_ITEM(__pyx_t_4, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_98));
  PyTuple_SET_ITEM(__pyx_t_4, 6, ((PyObject *)__pyx_kp_s_98));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_98));
  PyTuple_SET_ITEM(__pyx_t_4, 7, __pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_99));
  PyTuple_SET_ITEM(__pyx_t_4, 8, ((PyObject *)__pyx_kp_s_99));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_99));
  PyTuple_SET_ITEM(__pyx_t_4, 9, __pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_6);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_100));
  PyTuple_SET_ITEM(__pyx_t_4, 10, ((PyObject *)__pyx_kp_s_100));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_100));
  PyTuple_SET_ITEM(__pyx_t_4, 11, __pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_7);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_8));
  PyTuple_SET_ITEM(__pyx_t_4, 12, ((PyObject *)__pyx_kp_s_8));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_8));
  PyTuple_SET_ITEM(__pyx_t_4, 13, __pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_8);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_4, 14, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  __pyx_t_6 = 0;
  __pyx_t_7 = 0;
  __pyx_t_8 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_4), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":286
 * cdef void   glGetActiveUniform (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) with gil:
 *     print "GL glGetActiveUniform( program = ", program, ", index = ", index, ", bufsize = ", bufsize, ", length*=", repr(hex(<long> length)), ", size*=", repr(hex(<long> size)), ", type*=", repr(hex(<long> type)), ", name*=", repr(hex(<long> name)), ", )"
 *     cgl.glGetActiveUniform ( program, index, bufsize, length, size, type, name)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glGetActiveUniform(__pyx_v_program, __pyx_v_index, __pyx_v_bufsize, __pyx_v_length, __pyx_v_size, __pyx_v_type, __pyx_v_name);

  /* "kivy\graphics\c_opengl_debug.pyx":287
 *     print "GL glGetActiveUniform( program = ", program, ", index = ", index, ", bufsize = ", bufsize, ", length*=", repr(hex(<long> length)), ", size*=", repr(hex(<long> size)), ", type*=", repr(hex(<long> type)), ", name*=", repr(hex(<long> name)), ", )"
 *     cgl.glGetActiveUniform ( program, index, bufsize, length, size, type, name)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetAttachedShaders (GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":288
 *     cgl.glGetActiveUniform ( program, index, bufsize, length, size, type, name)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGetAttachedShaders (GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) with gil:
 *     print "GL glGetAttachedShaders( program = ", program, ", maxcount = ", maxcount, ", count*=", repr(hex(<long> count)), ", shaders*=", repr(hex(<long> shaders)), ", )"
 */
  __pyx_t_9 = (__pyx_v_ret != 0);
  if (__pyx_t_9) {
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 288; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_8 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 288; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 288; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_7);
    PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_8);
    __Pyx_GIVEREF(__pyx_t_8);
    __pyx_t_4 = 0;
    __pyx_t_8 = 0;
    __pyx_t_8 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_7)); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 288; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_8));
    __Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_8)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 288; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_8)); __pyx_t_8 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glGetActiveUniform", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":289
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetAttachedShaders (GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetAttachedShaders( program = ", program, ", maxcount = ", maxcount, ", count*=", repr(hex(<long> count)), ", shaders*=", repr(hex(<long> shaders)), ", )"
 *     cgl.glGetAttachedShaders ( program, maxcount, count, shaders)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetAttachedShaders(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_program, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_maxcount, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei *__pyx_v_count, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint *__pyx_v_shaders) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetAttachedShaders", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":290
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetAttachedShaders (GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) with gil:
 *     print "GL glGetAttachedShaders( program = ", program, ", maxcount = ", maxcount, ", count*=", repr(hex(<long> count)), ", shaders*=", repr(hex(<long> shaders)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glGetAttachedShaders ( program, maxcount, count, shaders)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_program); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_maxcount); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(((long)__pyx_v_count)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Repr(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyInt_FromLong(((long)__pyx_v_shaders)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
  __pyx_t_5 = PyObject_Repr(__pyx_t_3); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(9); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_102));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_102));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_102));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_103));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_103));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_103));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_104));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_104));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_104));
  PyTuple_SET_ITEM(__pyx_t_3, 5, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_105));
  PyTuple_SET_ITEM(__pyx_t_3, 6, ((PyObject *)__pyx_kp_s_105));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_105));
  PyTuple_SET_ITEM(__pyx_t_3, 7, __pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 8, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":291
 * cdef void   glGetAttachedShaders (GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) with gil:
 *     print "GL glGetAttachedShaders( program = ", program, ", maxcount = ", maxcount, ", count*=", repr(hex(<long> count)), ", shaders*=", repr(hex(<long> shaders)), ", )"
 *     cgl.glGetAttachedShaders ( program, maxcount, count, shaders)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glGetAttachedShaders(__pyx_v_program, __pyx_v_maxcount, __pyx_v_count, __pyx_v_shaders);

  /* "kivy\graphics\c_opengl_debug.pyx":292
 *     print "GL glGetAttachedShaders( program = ", program, ", maxcount = ", maxcount, ", count*=", repr(hex(<long> count)), ", shaders*=", repr(hex(<long> shaders)), ", )"
 *     cgl.glGetAttachedShaders ( program, maxcount, count, shaders)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef int    glGetAttribLocation (GLuint program,  GLchar* name) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":293
 *     cgl.glGetAttachedShaders ( program, maxcount, count, shaders)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef int    glGetAttribLocation (GLuint program,  GLchar* name) with gil:
 *     print "GL glGetAttribLocation( program = ", program, ", name*=", repr(hex(<long> name)), ", )"
 */
  __pyx_t_6 = (__pyx_v_ret != 0);
  if (__pyx_t_6) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_3 = 0;
    __pyx_t_5 = 0;
    __pyx_t_5 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_5));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_5)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glGetAttachedShaders", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":294
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef int    glGetAttribLocation (GLuint program,  GLchar* name) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetAttribLocation( program = ", program, ", name*=", repr(hex(<long> name)), ", )"
 *     ret = cgl.glGetError()
 */

static int __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetAttribLocation(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_program, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLchar *__pyx_v_name) {
  GLenum __pyx_v_ret;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetAttribLocation", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":295
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef int    glGetAttribLocation (GLuint program,  GLchar* name) with gil:
 *     print "GL glGetAttribLocation( program = ", program, ", name*=", repr(hex(<long> name)), ", )"             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_program); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 295; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(((long)__pyx_v_name)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 295; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 295; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;
  __pyx_t_2 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 295; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Repr(__pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 295; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(5); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 295; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_106));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_106));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_106));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_8));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_8));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_8));
  PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 4, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_3 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 295; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":296
 * cdef int    glGetAttribLocation (GLuint program,  GLchar* name) with gil:
 *     print "GL glGetAttribLocation( program = ", program, ", name*=", repr(hex(<long> name)), ", )"
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 *     return cgl.glGetAttribLocation ( program, name)
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":297
 *     print "GL glGetAttribLocation( program = ", program, ", name*=", repr(hex(<long> name)), ", )"
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 *     return cgl.glGetAttribLocation ( program, name)
 * cdef void   glGetBooleanv (GLenum pname, GLboolean* params) with gil:
 */
  __pyx_t_4 = (__pyx_v_ret != 0);
  if (__pyx_t_4) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 297; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 297; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 297; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_2 = 0;
    __pyx_t_3 = 0;
    __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 297; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 297; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "kivy\graphics\c_opengl_debug.pyx":298
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 *     return cgl.glGetAttribLocation ( program, name)             # <<<<<<<<<<<<<<
 * cdef void   glGetBooleanv (GLenum pname, GLboolean* params) with gil:
 *     print "GL glGetBooleanv( pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 */
  __pyx_r = glGetAttribLocation(__pyx_v_program, __pyx_v_name);
  goto __pyx_L0;

  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glGetAttribLocation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
  return __pyx_r;
}

/* "kivy\graphics\c_opengl_debug.pyx":299
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 *     return cgl.glGetAttribLocation ( program, name)
 * cdef void   glGetBooleanv (GLenum pname, GLboolean* params) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetBooleanv( pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetBooleanv ( pname, params)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetBooleanv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_pname, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean *__pyx_v_params) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetBooleanv", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":300
 *     return cgl.glGetAttribLocation ( program, name)
 * cdef void   glGetBooleanv (GLenum pname, GLboolean* params) with gil:
 *     print "GL glGetBooleanv( pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glGetBooleanv ( pname, params)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_pname); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 300; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(((long)__pyx_v_params)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 300; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 300; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;
  __pyx_t_2 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 300; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Repr(__pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 300; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(5); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 300; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_107));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_107));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_107));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_108));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_108));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_108));
  PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 4, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_3 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 300; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":301
 * cdef void   glGetBooleanv (GLenum pname, GLboolean* params) with gil:
 *     print "GL glGetBooleanv( pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetBooleanv ( pname, params)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glGetBooleanv(__pyx_v_pname, __pyx_v_params);

  /* "kivy\graphics\c_opengl_debug.pyx":302
 *     print "GL glGetBooleanv( pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetBooleanv ( pname, params)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetBufferParameteriv (GLenum target, GLenum pname, GLint* params) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":303
 *     cgl.glGetBooleanv ( pname, params)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGetBufferParameteriv (GLenum target, GLenum pname, GLint* params) with gil:
 *     print "GL glGetBufferParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 */
  __pyx_t_4 = (__pyx_v_ret != 0);
  if (__pyx_t_4) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 303; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 303; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 303; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_2 = 0;
    __pyx_t_3 = 0;
    __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 303; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 303; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glGetBooleanv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":304
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetBufferParameteriv (GLenum target, GLenum pname, GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetBufferParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetBufferParameteriv ( target, pname, params)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetBufferParameteriv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_target, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_pname, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *__pyx_v_params) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetBufferParameteriv", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":305
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetBufferParameteriv (GLenum target, GLenum pname, GLint* params) with gil:
 *     print "GL glGetBufferParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glGetBufferParameteriv ( target, pname, params)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_target); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 305; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_pname); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 305; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(((long)__pyx_v_params)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 305; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 305; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 305; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Repr(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 305; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(7); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 305; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_109));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_109));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_109));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_110));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_110));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_110));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_108));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_108));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_108));
  PyTuple_SET_ITEM(__pyx_t_3, 5, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 6, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_4 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 305; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":306
 * cdef void   glGetBufferParameteriv (GLenum target, GLenum pname, GLint* params) with gil:
 *     print "GL glGetBufferParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetBufferParameteriv ( target, pname, params)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glGetBufferParameteriv(__pyx_v_target, __pyx_v_pname, __pyx_v_params);

  /* "kivy\graphics\c_opengl_debug.pyx":307
 *     print "GL glGetBufferParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetBufferParameteriv ( target, pname, params)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef GLenum glGetError () with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":308
 *     cgl.glGetBufferParameteriv ( target, pname, params)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef GLenum glGetError () with gil:
 *     print "GL glGetError( )"
 */
  __pyx_t_5 = (__pyx_v_ret != 0);
  if (__pyx_t_5) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 308; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 308; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 308; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_3 = 0;
    __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 308; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_4)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 308; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glGetBufferParameteriv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":309
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef GLenum glGetError () with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetError( )"
 *     return cgl.glGetError ()
 */

static __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError(void) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetError", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":310
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef GLenum glGetError () with gil:
 *     print "GL glGetError( )"             # <<<<<<<<<<<<<<
 *     return cgl.glGetError ()
 * cdef void   glGetFloatv (GLenum pname, GLfloat* params) with gil:
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_111)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 310; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "kivy\graphics\c_opengl_debug.pyx":311
 * cdef GLenum glGetError () with gil:
 *     print "GL glGetError( )"
 *     return cgl.glGetError ()             # <<<<<<<<<<<<<<
 * cdef void   glGetFloatv (GLenum pname, GLfloat* params) with gil:
 *     print "GL glGetFloatv( pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 */
  __pyx_r = glGetError();
  goto __pyx_L0;

  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glGetError", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
  return __pyx_r;
}

/* "kivy\graphics\c_opengl_debug.pyx":312
 *     print "GL glGetError( )"
 *     return cgl.glGetError ()
 * cdef void   glGetFloatv (GLenum pname, GLfloat* params) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetFloatv( pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetFloatv ( pname, params)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetFloatv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_pname, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *__pyx_v_params) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetFloatv", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":313
 *     return cgl.glGetError ()
 * cdef void   glGetFloatv (GLenum pname, GLfloat* params) with gil:
 *     print "GL glGetFloatv( pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glGetFloatv ( pname, params)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_pname); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 313; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(((long)__pyx_v_params)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 313; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 313; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;
  __pyx_t_2 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 313; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Repr(__pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 313; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(5); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 313; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_112));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_112));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_112));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_108));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_108));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_108));
  PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 4, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_3 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 313; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":314
 * cdef void   glGetFloatv (GLenum pname, GLfloat* params) with gil:
 *     print "GL glGetFloatv( pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetFloatv ( pname, params)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glGetFloatv(__pyx_v_pname, __pyx_v_params);

  /* "kivy\graphics\c_opengl_debug.pyx":315
 *     print "GL glGetFloatv( pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetFloatv ( pname, params)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint* params) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":316
 *     cgl.glGetFloatv ( pname, params)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint* params) with gil:
 *     print "GL glGetFramebufferAttachmentParameteriv( target = ", target, ", attachment = ", attachment, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 */
  __pyx_t_4 = (__pyx_v_ret != 0);
  if (__pyx_t_4) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 316; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 316; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 316; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_2 = 0;
    __pyx_t_3 = 0;
    __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 316; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 316; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glGetFloatv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":317
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetFramebufferAttachmentParameteriv( target = ", target, ", attachment = ", attachment, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetFramebufferAttachmentParameteriv ( target, attachment, pname, params)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetFramebufferAttachmentParameteriv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_target, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_attachment, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_pname, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *__pyx_v_params) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetFramebufferAttachmentParameteriv", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":318
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint* params) with gil:
 *     print "GL glGetFramebufferAttachmentParameteriv( target = ", target, ", attachment = ", attachment, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glGetFramebufferAttachmentParameteriv ( target, attachment, pname, params)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_target); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_attachment); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyLong_FromUnsignedLong(__pyx_v_pname); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromLong(((long)__pyx_v_params)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
  __pyx_t_5 = PyObject_Repr(__pyx_t_4); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(9); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_113));
  PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_kp_s_113));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_113));
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_86));
  PyTuple_SET_ITEM(__pyx_t_4, 2, ((PyObject *)__pyx_kp_s_86));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_86));
  PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_110));
  PyTuple_SET_ITEM(__pyx_t_4, 4, ((PyObject *)__pyx_kp_s_110));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_110));
  PyTuple_SET_ITEM(__pyx_t_4, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_108));
  PyTuple_SET_ITEM(__pyx_t_4, 6, ((PyObject *)__pyx_kp_s_108));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_108));
  PyTuple_SET_ITEM(__pyx_t_4, 7, __pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_4, 8, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_4), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":319
 * cdef void   glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint* params) with gil:
 *     print "GL glGetFramebufferAttachmentParameteriv( target = ", target, ", attachment = ", attachment, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetFramebufferAttachmentParameteriv ( target, attachment, pname, params)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glGetFramebufferAttachmentParameteriv(__pyx_v_target, __pyx_v_attachment, __pyx_v_pname, __pyx_v_params);

  /* "kivy\graphics\c_opengl_debug.pyx":320
 *     print "GL glGetFramebufferAttachmentParameteriv( target = ", target, ", attachment = ", attachment, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetFramebufferAttachmentParameteriv ( target, attachment, pname, params)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetIntegerv (GLenum pname, GLint* params) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":321
 *     cgl.glGetFramebufferAttachmentParameteriv ( target, attachment, pname, params)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGetIntegerv (GLenum pname, GLint* params) with gil:
 *     print "GL glGetIntegerv( pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 */
  __pyx_t_6 = (__pyx_v_ret != 0);
  if (__pyx_t_6) {
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 321; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 321; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 321; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_t_5 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 321; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_5));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_5)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 321; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glGetFramebufferAttachmentParameteriv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":322
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetIntegerv (GLenum pname, GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetIntegerv( pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetIntegerv ( pname, params)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetIntegerv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_pname, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *__pyx_v_params) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetIntegerv", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":323
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetIntegerv (GLenum pname, GLint* params) with gil:
 *     print "GL glGetIntegerv( pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glGetIntegerv ( pname, params)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_pname); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(((long)__pyx_v_params)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;
  __pyx_t_2 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Repr(__pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(5); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_114));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_114));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_114));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_108));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_108));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_108));
  PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 4, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_3 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":324
 * cdef void   glGetIntegerv (GLenum pname, GLint* params) with gil:
 *     print "GL glGetIntegerv( pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetIntegerv ( pname, params)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glGetIntegerv(__pyx_v_pname, __pyx_v_params);

  /* "kivy\graphics\c_opengl_debug.pyx":325
 *     print "GL glGetIntegerv( pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetIntegerv ( pname, params)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetProgramiv (GLuint program, GLenum pname, GLint* params) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":326
 *     cgl.glGetIntegerv ( pname, params)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGetProgramiv (GLuint program, GLenum pname, GLint* params) with gil:
 *     print "GL glGetProgramiv( program = ", program, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 */
  __pyx_t_4 = (__pyx_v_ret != 0);
  if (__pyx_t_4) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 326; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 326; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 326; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_2 = 0;
    __pyx_t_3 = 0;
    __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 326; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 326; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glGetIntegerv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":327
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetProgramiv (GLuint program, GLenum pname, GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetProgramiv( program = ", program, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetProgramiv ( program, pname, params)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetProgramiv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_program, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_pname, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *__pyx_v_params) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetProgramiv", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":328
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetProgramiv (GLuint program, GLenum pname, GLint* params) with gil:
 *     print "GL glGetProgramiv( program = ", program, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glGetProgramiv ( program, pname, params)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_program); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 328; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_pname); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 328; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(((long)__pyx_v_params)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 328; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 328; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 328; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Repr(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 328; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(7); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 328; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_115));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_115));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_115));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_110));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_110));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_110));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_108));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_108));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_108));
  PyTuple_SET_ITEM(__pyx_t_3, 5, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 6, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_4 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 328; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":329
 * cdef void   glGetProgramiv (GLuint program, GLenum pname, GLint* params) with gil:
 *     print "GL glGetProgramiv( program = ", program, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetProgramiv ( program, pname, params)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glGetProgramiv(__pyx_v_program, __pyx_v_pname, __pyx_v_params);

  /* "kivy\graphics\c_opengl_debug.pyx":330
 *     print "GL glGetProgramiv( program = ", program, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetProgramiv ( program, pname, params)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetProgramInfoLog (GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":331
 *     cgl.glGetProgramiv ( program, pname, params)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGetProgramInfoLog (GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog) with gil:
 *     print "GL glGetProgramInfoLog( program = ", program, ", bufsize = ", bufsize, ", length*=", repr(hex(<long> length)), ", infolog*=", repr(hex(<long> infolog)), ", )"
 */
  __pyx_t_5 = (__pyx_v_ret != 0);
  if (__pyx_t_5) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_3 = 0;
    __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_4)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 331; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glGetProgramiv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":332
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetProgramInfoLog (GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetProgramInfoLog( program = ", program, ", bufsize = ", bufsize, ", length*=", repr(hex(<long> length)), ", infolog*=", repr(hex(<long> infolog)), ", )"
 *     cgl.glGetProgramInfoLog ( program, bufsize, length, infolog)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetProgramInfoLog(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_program, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_bufsize, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei *__pyx_v_length, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLchar *__pyx_v_infolog) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetProgramInfoLog", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":333
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetProgramInfoLog (GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog) with gil:
 *     print "GL glGetProgramInfoLog( program = ", program, ", bufsize = ", bufsize, ", length*=", repr(hex(<long> length)), ", infolog*=", repr(hex(<long> infolog)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glGetProgramInfoLog ( program, bufsize, length, infolog)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_program); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_bufsize); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(((long)__pyx_v_length)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Repr(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyInt_FromLong(((long)__pyx_v_infolog)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
  __pyx_t_5 = PyObject_Repr(__pyx_t_3); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(9); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_116));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_116));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_116));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_97));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_97));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_97));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_98));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_98));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_98));
  PyTuple_SET_ITEM(__pyx_t_3, 5, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_117));
  PyTuple_SET_ITEM(__pyx_t_3, 6, ((PyObject *)__pyx_kp_s_117));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_117));
  PyTuple_SET_ITEM(__pyx_t_3, 7, __pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 8, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":334
 * cdef void   glGetProgramInfoLog (GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog) with gil:
 *     print "GL glGetProgramInfoLog( program = ", program, ", bufsize = ", bufsize, ", length*=", repr(hex(<long> length)), ", infolog*=", repr(hex(<long> infolog)), ", )"
 *     cgl.glGetProgramInfoLog ( program, bufsize, length, infolog)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glGetProgramInfoLog(__pyx_v_program, __pyx_v_bufsize, __pyx_v_length, __pyx_v_infolog);

  /* "kivy\graphics\c_opengl_debug.pyx":335
 *     print "GL glGetProgramInfoLog( program = ", program, ", bufsize = ", bufsize, ", length*=", repr(hex(<long> length)), ", infolog*=", repr(hex(<long> infolog)), ", )"
 *     cgl.glGetProgramInfoLog ( program, bufsize, length, infolog)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint* params) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":336
 *     cgl.glGetProgramInfoLog ( program, bufsize, length, infolog)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint* params) with gil:
 *     print "GL glGetRenderbufferParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 */
  __pyx_t_6 = (__pyx_v_ret != 0);
  if (__pyx_t_6) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 336; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 336; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 336; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_3 = 0;
    __pyx_t_5 = 0;
    __pyx_t_5 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 336; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_5));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_5)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 336; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glGetProgramInfoLog", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":337
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetRenderbufferParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetRenderbufferParameteriv ( target, pname, params)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetRenderbufferParameteriv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_target, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_pname, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *__pyx_v_params) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetRenderbufferParameteriv", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":338
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint* params) with gil:
 *     print "GL glGetRenderbufferParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glGetRenderbufferParameteriv ( target, pname, params)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_target); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_pname); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(((long)__pyx_v_params)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Repr(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(7); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_118));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_118));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_118));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_110));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_110));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_110));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_108));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_108));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_108));
  PyTuple_SET_ITEM(__pyx_t_3, 5, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 6, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_4 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":339
 * cdef void   glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint* params) with gil:
 *     print "GL glGetRenderbufferParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetRenderbufferParameteriv ( target, pname, params)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glGetRenderbufferParameteriv(__pyx_v_target, __pyx_v_pname, __pyx_v_params);

  /* "kivy\graphics\c_opengl_debug.pyx":340
 *     print "GL glGetRenderbufferParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetRenderbufferParameteriv ( target, pname, params)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetShaderiv (GLuint shader, GLenum pname, GLint* params) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":341
 *     cgl.glGetRenderbufferParameteriv ( target, pname, params)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGetShaderiv (GLuint shader, GLenum pname, GLint* params) with gil:
 *     print "GL glGetShaderiv( shader = ", shader, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 */
  __pyx_t_5 = (__pyx_v_ret != 0);
  if (__pyx_t_5) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_3 = 0;
    __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_4)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 341; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glGetRenderbufferParameteriv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":342
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetShaderiv (GLuint shader, GLenum pname, GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetShaderiv( shader = ", shader, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetShaderiv ( shader, pname, params)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetShaderiv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_shader, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_pname, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *__pyx_v_params) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetShaderiv", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":343
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetShaderiv (GLuint shader, GLenum pname, GLint* params) with gil:
 *     print "GL glGetShaderiv( shader = ", shader, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glGetShaderiv ( shader, pname, params)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_shader); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_pname); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(((long)__pyx_v_params)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Repr(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(7); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_119));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_119));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_119));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_110));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_110));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_110));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_108));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_108));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_108));
  PyTuple_SET_ITEM(__pyx_t_3, 5, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 6, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_4 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":344
 * cdef void   glGetShaderiv (GLuint shader, GLenum pname, GLint* params) with gil:
 *     print "GL glGetShaderiv( shader = ", shader, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetShaderiv ( shader, pname, params)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glGetShaderiv(__pyx_v_shader, __pyx_v_pname, __pyx_v_params);

  /* "kivy\graphics\c_opengl_debug.pyx":345
 *     print "GL glGetShaderiv( shader = ", shader, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetShaderiv ( shader, pname, params)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":346
 *     cgl.glGetShaderiv ( shader, pname, params)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog) with gil:
 *     print "GL glGetShaderInfoLog( shader = ", shader, ", bufsize = ", bufsize, ", length*=", repr(hex(<long> length)), ", infolog*=", repr(hex(<long> infolog)), ", )"
 */
  __pyx_t_5 = (__pyx_v_ret != 0);
  if (__pyx_t_5) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 346; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 346; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 346; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_3 = 0;
    __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 346; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_4)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 346; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glGetShaderiv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":347
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetShaderInfoLog( shader = ", shader, ", bufsize = ", bufsize, ", length*=", repr(hex(<long> length)), ", infolog*=", repr(hex(<long> infolog)), ", )"
 *     cgl.glGetShaderInfoLog ( shader, bufsize, length, infolog)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetShaderInfoLog(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_shader, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_bufsize, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei *__pyx_v_length, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLchar *__pyx_v_infolog) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetShaderInfoLog", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":348
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog) with gil:
 *     print "GL glGetShaderInfoLog( shader = ", shader, ", bufsize = ", bufsize, ", length*=", repr(hex(<long> length)), ", infolog*=", repr(hex(<long> infolog)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glGetShaderInfoLog ( shader, bufsize, length, infolog)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_shader); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 348; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_bufsize); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 348; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(((long)__pyx_v_length)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 348; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 348; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 348; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Repr(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 348; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyInt_FromLong(((long)__pyx_v_infolog)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 348; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 348; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 348; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
  __pyx_t_5 = PyObject_Repr(__pyx_t_3); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 348; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(9); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 348; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_120));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_120));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_120));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_97));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_97));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_97));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_98));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_98));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_98));
  PyTuple_SET_ITEM(__pyx_t_3, 5, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_117));
  PyTuple_SET_ITEM(__pyx_t_3, 6, ((PyObject *)__pyx_kp_s_117));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_117));
  PyTuple_SET_ITEM(__pyx_t_3, 7, __pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 8, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 348; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":349
 * cdef void   glGetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog) with gil:
 *     print "GL glGetShaderInfoLog( shader = ", shader, ", bufsize = ", bufsize, ", length*=", repr(hex(<long> length)), ", infolog*=", repr(hex(<long> infolog)), ", )"
 *     cgl.glGetShaderInfoLog ( shader, bufsize, length, infolog)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glGetShaderInfoLog(__pyx_v_shader, __pyx_v_bufsize, __pyx_v_length, __pyx_v_infolog);

  /* "kivy\graphics\c_opengl_debug.pyx":350
 *     print "GL glGetShaderInfoLog( shader = ", shader, ", bufsize = ", bufsize, ", length*=", repr(hex(<long> length)), ", infolog*=", repr(hex(<long> infolog)), ", )"
 *     cgl.glGetShaderInfoLog ( shader, bufsize, length, infolog)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * # Skipping generation of: "#cdef void   glGetShaderPrecisionFormat (cgl.GLenum shadertype, cgl.GLenum precisiontype, cgl.GLint* range, cgl.GLint* precision)"
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":351
 *     cgl.glGetShaderInfoLog ( shader, bufsize, length, infolog)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * # Skipping generation of: "#cdef void   glGetShaderPrecisionFormat (cgl.GLenum shadertype, cgl.GLenum precisiontype, cgl.GLint* range, cgl.GLint* precision)"
 * cdef void   glGetShaderSource (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source) with gil:
 */
  __pyx_t_6 = (__pyx_v_ret != 0);
  if (__pyx_t_6) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 351; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 351; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 351; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_3 = 0;
    __pyx_t_5 = 0;
    __pyx_t_5 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 351; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_5));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_5)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 351; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glGetShaderInfoLog", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":353
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * # Skipping generation of: "#cdef void   glGetShaderPrecisionFormat (cgl.GLenum shadertype, cgl.GLenum precisiontype, cgl.GLint* range, cgl.GLint* precision)"
 * cdef void   glGetShaderSource (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetShaderSource( shader = ", shader, ", bufsize = ", bufsize, ", length*=", repr(hex(<long> length)), ", source*=", repr(hex(<long> source)), ", )"
 *     cgl.glGetShaderSource ( shader, bufsize, length, source)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetShaderSource(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_shader, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_bufsize, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei *__pyx_v_length, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLchar *__pyx_v_source) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetShaderSource", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":354
 * # Skipping generation of: "#cdef void   glGetShaderPrecisionFormat (cgl.GLenum shadertype, cgl.GLenum precisiontype, cgl.GLint* range, cgl.GLint* precision)"
 * cdef void   glGetShaderSource (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source) with gil:
 *     print "GL glGetShaderSource( shader = ", shader, ", bufsize = ", bufsize, ", length*=", repr(hex(<long> length)), ", source*=", repr(hex(<long> source)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glGetShaderSource ( shader, bufsize, length, source)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_shader); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 354; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_bufsize); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 354; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(((long)__pyx_v_length)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 354; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 354; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 354; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Repr(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 354; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyInt_FromLong(((long)__pyx_v_source)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 354; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 354; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 354; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
  __pyx_t_5 = PyObject_Repr(__pyx_t_3); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 354; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(9); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 354; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_121));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_121));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_121));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_97));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_97));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_97));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_98));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_98));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_98));
  PyTuple_SET_ITEM(__pyx_t_3, 5, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_122));
  PyTuple_SET_ITEM(__pyx_t_3, 6, ((PyObject *)__pyx_kp_s_122));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_122));
  PyTuple_SET_ITEM(__pyx_t_3, 7, __pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 8, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 354; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":355
 * cdef void   glGetShaderSource (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source) with gil:
 *     print "GL glGetShaderSource( shader = ", shader, ", bufsize = ", bufsize, ", length*=", repr(hex(<long> length)), ", source*=", repr(hex(<long> source)), ", )"
 *     cgl.glGetShaderSource ( shader, bufsize, length, source)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glGetShaderSource(__pyx_v_shader, __pyx_v_bufsize, __pyx_v_length, __pyx_v_source);

  /* "kivy\graphics\c_opengl_debug.pyx":356
 *     print "GL glGetShaderSource( shader = ", shader, ", bufsize = ", bufsize, ", length*=", repr(hex(<long> length)), ", source*=", repr(hex(<long> source)), ", )"
 *     cgl.glGetShaderSource ( shader, bufsize, length, source)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef   GLubyte*  glGetString (GLenum name) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":357
 *     cgl.glGetShaderSource ( shader, bufsize, length, source)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef   GLubyte*  glGetString (GLenum name) with gil:
 *     print "GL glGetString( name = ", name, ", )"
 */
  __pyx_t_6 = (__pyx_v_ret != 0);
  if (__pyx_t_6) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 357; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 357; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 357; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_3 = 0;
    __pyx_t_5 = 0;
    __pyx_t_5 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 357; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_5));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_5)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 357; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glGetShaderSource", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":358
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef   GLubyte*  glGetString (GLenum name) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetString( name = ", name, ", )"
 *     return <GLubyte*><char*>cgl.glGetString ( name)
 */

static __pyx_t_4kivy_8graphics_14c_opengl_debug_GLubyte *__pyx_f_4kivy_8graphics_14c_opengl_debug_glGetString(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_name) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLubyte *__pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetString", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":359
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef   GLubyte*  glGetString (GLenum name) with gil:
 *     print "GL glGetString( name = ", name, ", )"             # <<<<<<<<<<<<<<
 *     return <GLubyte*><char*>cgl.glGetString ( name)
 * cdef void   glGetTexParameterfv (GLenum target, GLenum pname, GLfloat* params) with gil:
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_name); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 359; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 359; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_123));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_123));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_123));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 359; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":360
 * cdef   GLubyte*  glGetString (GLenum name) with gil:
 *     print "GL glGetString( name = ", name, ", )"
 *     return <GLubyte*><char*>cgl.glGetString ( name)             # <<<<<<<<<<<<<<
 * cdef void   glGetTexParameterfv (GLenum target, GLenum pname, GLfloat* params) with gil:
 *     print "GL glGetTexParameterfv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 */
  __pyx_r = ((__pyx_t_4kivy_8graphics_14c_opengl_debug_GLubyte *)((char *)glGetString(__pyx_v_name)));
  goto __pyx_L0;

  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glGetString", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
  return __pyx_r;
}

/* "kivy\graphics\c_opengl_debug.pyx":361
 *     print "GL glGetString( name = ", name, ", )"
 *     return <GLubyte*><char*>cgl.glGetString ( name)
 * cdef void   glGetTexParameterfv (GLenum target, GLenum pname, GLfloat* params) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetTexParameterfv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetTexParameterfv ( target, pname, params)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetTexParameterfv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_target, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_pname, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *__pyx_v_params) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetTexParameterfv", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":362
 *     return <GLubyte*><char*>cgl.glGetString ( name)
 * cdef void   glGetTexParameterfv (GLenum target, GLenum pname, GLfloat* params) with gil:
 *     print "GL glGetTexParameterfv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glGetTexParameterfv ( target, pname, params)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_target); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 362; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_pname); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 362; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(((long)__pyx_v_params)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 362; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 362; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 362; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Repr(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 362; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(7); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 362; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_124));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_124));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_124));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_110));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_110));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_110));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_108));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_108));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_108));
  PyTuple_SET_ITEM(__pyx_t_3, 5, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 6, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_4 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 362; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":363
 * cdef void   glGetTexParameterfv (GLenum target, GLenum pname, GLfloat* params) with gil:
 *     print "GL glGetTexParameterfv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetTexParameterfv ( target, pname, params)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glGetTexParameterfv(__pyx_v_target, __pyx_v_pname, __pyx_v_params);

  /* "kivy\graphics\c_opengl_debug.pyx":364
 *     print "GL glGetTexParameterfv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetTexParameterfv ( target, pname, params)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetTexParameteriv (GLenum target, GLenum pname, GLint* params) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":365
 *     cgl.glGetTexParameterfv ( target, pname, params)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGetTexParameteriv (GLenum target, GLenum pname, GLint* params) with gil:
 *     print "GL glGetTexParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 */
  __pyx_t_5 = (__pyx_v_ret != 0);
  if (__pyx_t_5) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_3 = 0;
    __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_4)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glGetTexParameterfv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":366
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetTexParameteriv (GLenum target, GLenum pname, GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetTexParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetTexParameteriv ( target, pname, params)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetTexParameteriv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_target, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_pname, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *__pyx_v_params) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetTexParameteriv", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":367
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetTexParameteriv (GLenum target, GLenum pname, GLint* params) with gil:
 *     print "GL glGetTexParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glGetTexParameteriv ( target, pname, params)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_target); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_pname); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(((long)__pyx_v_params)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Repr(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(7); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_125));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_125));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_125));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_110));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_110));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_110));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_108));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_108));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_108));
  PyTuple_SET_ITEM(__pyx_t_3, 5, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 6, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_4 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":368
 * cdef void   glGetTexParameteriv (GLenum target, GLenum pname, GLint* params) with gil:
 *     print "GL glGetTexParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetTexParameteriv ( target, pname, params)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glGetTexParameteriv(__pyx_v_target, __pyx_v_pname, __pyx_v_params);

  /* "kivy\graphics\c_opengl_debug.pyx":369
 *     print "GL glGetTexParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetTexParameteriv ( target, pname, params)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetUniformfv (GLuint program, GLint location, GLfloat* params) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":370
 *     cgl.glGetTexParameteriv ( target, pname, params)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGetUniformfv (GLuint program, GLint location, GLfloat* params) with gil:
 *     print "GL glGetUniformfv( program = ", program, ", location = ", location, ", params*=", repr(hex(<long> params)), ", )"
 */
  __pyx_t_5 = (__pyx_v_ret != 0);
  if (__pyx_t_5) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_3 = 0;
    __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_4)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glGetTexParameteriv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":371
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetUniformfv (GLuint program, GLint location, GLfloat* params) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetUniformfv( program = ", program, ", location = ", location, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetUniformfv ( program, location, params)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetUniformfv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_program, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_location, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *__pyx_v_params) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetUniformfv", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":372
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetUniformfv (GLuint program, GLint location, GLfloat* params) with gil:
 *     print "GL glGetUniformfv( program = ", program, ", location = ", location, ", params*=", repr(hex(<long> params)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glGetUniformfv ( program, location, params)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_program); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 372; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_location); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 372; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(((long)__pyx_v_params)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 372; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 372; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 372; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Repr(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 372; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(7); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 372; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_126));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_126));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_126));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_127));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_127));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_127));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_108));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_108));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_108));
  PyTuple_SET_ITEM(__pyx_t_3, 5, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 6, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_4 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 372; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":373
 * cdef void   glGetUniformfv (GLuint program, GLint location, GLfloat* params) with gil:
 *     print "GL glGetUniformfv( program = ", program, ", location = ", location, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetUniformfv ( program, location, params)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glGetUniformfv(__pyx_v_program, __pyx_v_location, __pyx_v_params);

  /* "kivy\graphics\c_opengl_debug.pyx":374
 *     print "GL glGetUniformfv( program = ", program, ", location = ", location, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetUniformfv ( program, location, params)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetUniformiv (GLuint program, GLint location, GLint* params) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":375
 *     cgl.glGetUniformfv ( program, location, params)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGetUniformiv (GLuint program, GLint location, GLint* params) with gil:
 *     print "GL glGetUniformiv( program = ", program, ", location = ", location, ", params*=", repr(hex(<long> params)), ", )"
 */
  __pyx_t_5 = (__pyx_v_ret != 0);
  if (__pyx_t_5) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_3 = 0;
    __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_4)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glGetUniformfv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":376
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetUniformiv (GLuint program, GLint location, GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetUniformiv( program = ", program, ", location = ", location, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetUniformiv ( program, location, params)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetUniformiv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_program, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_location, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *__pyx_v_params) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetUniformiv", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":377
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetUniformiv (GLuint program, GLint location, GLint* params) with gil:
 *     print "GL glGetUniformiv( program = ", program, ", location = ", location, ", params*=", repr(hex(<long> params)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glGetUniformiv ( program, location, params)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_program); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 377; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_location); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 377; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(((long)__pyx_v_params)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 377; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 377; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 377; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Repr(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 377; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(7); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 377; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_128));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_128));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_128));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_127));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_127));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_127));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_108));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_108));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_108));
  PyTuple_SET_ITEM(__pyx_t_3, 5, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 6, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_4 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 377; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":378
 * cdef void   glGetUniformiv (GLuint program, GLint location, GLint* params) with gil:
 *     print "GL glGetUniformiv( program = ", program, ", location = ", location, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetUniformiv ( program, location, params)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glGetUniformiv(__pyx_v_program, __pyx_v_location, __pyx_v_params);

  /* "kivy\graphics\c_opengl_debug.pyx":379
 *     print "GL glGetUniformiv( program = ", program, ", location = ", location, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetUniformiv ( program, location, params)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef int    glGetUniformLocation (GLuint program,  GLchar* name) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":380
 *     cgl.glGetUniformiv ( program, location, params)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef int    glGetUniformLocation (GLuint program,  GLchar* name) with gil:
 *     print "GL glGetUniformLocation( program = ", program, ", name*=", repr(hex(<long> name)), ", )"
 */
  __pyx_t_5 = (__pyx_v_ret != 0);
  if (__pyx_t_5) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_3 = 0;
    __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_4)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glGetUniformiv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":381
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef int    glGetUniformLocation (GLuint program,  GLchar* name) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetUniformLocation( program = ", program, ", name*=", repr(hex(<long> name)), ", )"
 *     ret = cgl.glGetError()
 */

static int __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetUniformLocation(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_program, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLchar *__pyx_v_name) {
  GLenum __pyx_v_ret;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetUniformLocation", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":382
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef int    glGetUniformLocation (GLuint program,  GLchar* name) with gil:
 *     print "GL glGetUniformLocation( program = ", program, ", name*=", repr(hex(<long> name)), ", )"             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_program); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 382; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(((long)__pyx_v_name)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 382; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 382; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;
  __pyx_t_2 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 382; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Repr(__pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 382; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(5); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 382; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_129));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_129));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_129));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_8));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_8));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_8));
  PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 4, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_3 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 382; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":383
 * cdef int    glGetUniformLocation (GLuint program,  GLchar* name) with gil:
 *     print "GL glGetUniformLocation( program = ", program, ", name*=", repr(hex(<long> name)), ", )"
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 *     return cgl.glGetUniformLocation ( program, name)
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":384
 *     print "GL glGetUniformLocation( program = ", program, ", name*=", repr(hex(<long> name)), ", )"
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 *     return cgl.glGetUniformLocation ( program, name)
 * cdef void   glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat* params) with gil:
 */
  __pyx_t_4 = (__pyx_v_ret != 0);
  if (__pyx_t_4) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_2 = 0;
    __pyx_t_3 = 0;
    __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "kivy\graphics\c_opengl_debug.pyx":385
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 *     return cgl.glGetUniformLocation ( program, name)             # <<<<<<<<<<<<<<
 * cdef void   glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat* params) with gil:
 *     print "GL glGetVertexAttribfv( index = ", index, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 */
  __pyx_r = glGetUniformLocation(__pyx_v_program, __pyx_v_name);
  goto __pyx_L0;

  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glGetUniformLocation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
  return __pyx_r;
}

/* "kivy\graphics\c_opengl_debug.pyx":386
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 *     return cgl.glGetUniformLocation ( program, name)
 * cdef void   glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat* params) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetVertexAttribfv( index = ", index, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetVertexAttribfv ( index, pname, params)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetVertexAttribfv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_index, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_pname, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *__pyx_v_params) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetVertexAttribfv", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":387
 *     return cgl.glGetUniformLocation ( program, name)
 * cdef void   glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat* params) with gil:
 *     print "GL glGetVertexAttribfv( index = ", index, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glGetVertexAttribfv ( index, pname, params)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_index); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 387; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_pname); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 387; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(((long)__pyx_v_params)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 387; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 387; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 387; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Repr(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 387; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(7); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 387; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_130));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_130));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_130));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_110));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_110));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_110));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_108));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_108));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_108));
  PyTuple_SET_ITEM(__pyx_t_3, 5, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 6, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_4 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 387; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":388
 * cdef void   glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat* params) with gil:
 *     print "GL glGetVertexAttribfv( index = ", index, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetVertexAttribfv ( index, pname, params)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glGetVertexAttribfv(__pyx_v_index, __pyx_v_pname, __pyx_v_params);

  /* "kivy\graphics\c_opengl_debug.pyx":389
 *     print "GL glGetVertexAttribfv( index = ", index, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetVertexAttribfv ( index, pname, params)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetVertexAttribiv (GLuint index, GLenum pname, GLint* params) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":390
 *     cgl.glGetVertexAttribfv ( index, pname, params)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGetVertexAttribiv (GLuint index, GLenum pname, GLint* params) with gil:
 *     print "GL glGetVertexAttribiv( index = ", index, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 */
  __pyx_t_5 = (__pyx_v_ret != 0);
  if (__pyx_t_5) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 390; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 390; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 390; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_3 = 0;
    __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 390; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_4)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 390; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glGetVertexAttribfv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":391
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetVertexAttribiv (GLuint index, GLenum pname, GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetVertexAttribiv( index = ", index, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetVertexAttribiv ( index, pname, params)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetVertexAttribiv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_index, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_pname, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *__pyx_v_params) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetVertexAttribiv", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":392
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetVertexAttribiv (GLuint index, GLenum pname, GLint* params) with gil:
 *     print "GL glGetVertexAttribiv( index = ", index, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glGetVertexAttribiv ( index, pname, params)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_index); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 392; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_pname); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 392; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(((long)__pyx_v_params)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 392; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 392; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 392; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Repr(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 392; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(7); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 392; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_131));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_131));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_131));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_110));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_110));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_110));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_108));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_108));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_108));
  PyTuple_SET_ITEM(__pyx_t_3, 5, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 6, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_4 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 392; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":393
 * cdef void   glGetVertexAttribiv (GLuint index, GLenum pname, GLint* params) with gil:
 *     print "GL glGetVertexAttribiv( index = ", index, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetVertexAttribiv ( index, pname, params)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glGetVertexAttribiv(__pyx_v_index, __pyx_v_pname, __pyx_v_params);

  /* "kivy\graphics\c_opengl_debug.pyx":394
 *     print "GL glGetVertexAttribiv( index = ", index, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glGetVertexAttribiv ( index, pname, params)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetVertexAttribPointerv (GLuint index, GLenum pname, GLvoid** pointer) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":395
 *     cgl.glGetVertexAttribiv ( index, pname, params)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGetVertexAttribPointerv (GLuint index, GLenum pname, GLvoid** pointer) with gil:
 *     print "GL glGetVertexAttribPointerv( index = ", index, ", pname = ", pname, ", pointer**=", repr(hex(<long> pointer)), ", )"
 */
  __pyx_t_5 = (__pyx_v_ret != 0);
  if (__pyx_t_5) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 395; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 395; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 395; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_3 = 0;
    __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 395; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_4)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 395; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glGetVertexAttribiv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":396
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetVertexAttribPointerv (GLuint index, GLenum pname, GLvoid** pointer) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetVertexAttribPointerv( index = ", index, ", pname = ", pname, ", pointer**=", repr(hex(<long> pointer)), ", )"
 *     cgl.glGetVertexAttribPointerv ( index, pname, pointer)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetVertexAttribPointerv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_index, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_pname, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLvoid **__pyx_v_pointer) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetVertexAttribPointerv", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":397
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glGetVertexAttribPointerv (GLuint index, GLenum pname, GLvoid** pointer) with gil:
 *     print "GL glGetVertexAttribPointerv( index = ", index, ", pname = ", pname, ", pointer**=", repr(hex(<long> pointer)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glGetVertexAttribPointerv ( index, pname, pointer)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_index); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_pname); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(((long)__pyx_v_pointer)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Repr(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(7); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_132));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_132));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_132));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_110));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_110));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_110));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_133));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_133));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_133));
  PyTuple_SET_ITEM(__pyx_t_3, 5, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 6, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_4 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":398
 * cdef void   glGetVertexAttribPointerv (GLuint index, GLenum pname, GLvoid** pointer) with gil:
 *     print "GL glGetVertexAttribPointerv( index = ", index, ", pname = ", pname, ", pointer**=", repr(hex(<long> pointer)), ", )"
 *     cgl.glGetVertexAttribPointerv ( index, pname, pointer)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glGetVertexAttribPointerv(__pyx_v_index, __pyx_v_pname, __pyx_v_pointer);

  /* "kivy\graphics\c_opengl_debug.pyx":399
 *     print "GL glGetVertexAttribPointerv( index = ", index, ", pname = ", pname, ", pointer**=", repr(hex(<long> pointer)), ", )"
 *     cgl.glGetVertexAttribPointerv ( index, pname, pointer)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glHint (GLenum target, GLenum mode) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":400
 *     cgl.glGetVertexAttribPointerv ( index, pname, pointer)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glHint (GLenum target, GLenum mode) with gil:
 *     print "GL glHint( target = ", target, ", mode = ", mode, ", )"
 */
  __pyx_t_5 = (__pyx_v_ret != 0);
  if (__pyx_t_5) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_3 = 0;
    __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_4)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glGetVertexAttribPointerv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":401
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glHint (GLenum target, GLenum mode) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glHint( target = ", target, ", mode = ", mode, ", )"
 *     cgl.glHint ( target, mode)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glHint(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_target, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_mode) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glHint", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":402
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void   glHint (GLenum target, GLenum mode) with gil:
 *     print "GL glHint( target = ", target, ", mode = ", mode, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glHint ( target, mode)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_target); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 402; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_mode); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 402; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 402; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_134));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_134));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_134));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_135));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_135));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_135));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 402; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":403
 * cdef void   glHint (GLenum target, GLenum mode) with gil:
 *     print "GL glHint( target = ", target, ", mode = ", mode, ", )"
 *     cgl.glHint ( target, mode)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glHint(__pyx_v_target, __pyx_v_mode);

  /* "kivy\graphics\c_opengl_debug.pyx":404
 *     print "GL glHint( target = ", target, ", mode = ", mode, ", )"
 *     cgl.glHint ( target, mode)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef GLboolean  glIsBuffer (GLuint buffer) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":405
 *     cgl.glHint ( target, mode)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef GLboolean  glIsBuffer (GLuint buffer) with gil:
 *     print "GL glIsBuffer( buffer = ", buffer, ", )"
 */
  __pyx_t_4 = (__pyx_v_ret != 0);
  if (__pyx_t_4) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 405; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 405; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 405; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_3 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 405; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 405; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glHint", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":406
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef GLboolean  glIsBuffer (GLuint buffer) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glIsBuffer( buffer = ", buffer, ", )"
 *     ret = cgl.glGetError()
 */

static __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean __pyx_f_4kivy_8graphics_14c_opengl_debug_glIsBuffer(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_buffer) {
  GLenum __pyx_v_ret;
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glIsBuffer", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":407
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef GLboolean  glIsBuffer (GLuint buffer) with gil:
 *     print "GL glIsBuffer( buffer = ", buffer, ", )"             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_buffer); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 407; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 407; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_136));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_136));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_136));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 407; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":408
 * cdef GLboolean  glIsBuffer (GLuint buffer) with gil:
 *     print "GL glIsBuffer( buffer = ", buffer, ", )"
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 *     return cgl.glIsBuffer ( buffer)
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":409
 *     print "GL glIsBuffer( buffer = ", buffer, ", )"
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 *     return cgl.glIsBuffer ( buffer)
 * cdef GLboolean  glIsEnabled (GLenum cap) with gil:
 */
  __pyx_t_3 = (__pyx_v_ret != 0);
  if (__pyx_t_3) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 409; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 409; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 409; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 409; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 409; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "kivy\graphics\c_opengl_debug.pyx":410
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 *     return cgl.glIsBuffer ( buffer)             # <<<<<<<<<<<<<<
 * cdef GLboolean  glIsEnabled (GLenum cap) with gil:
 *     print "GL glIsEnabled( cap = ", cap, ", )"
 */
  __pyx_r = glIsBuffer(__pyx_v_buffer);
  goto __pyx_L0;

  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glIsBuffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
  return __pyx_r;
}

/* "kivy\graphics\c_opengl_debug.pyx":411
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 *     return cgl.glIsBuffer ( buffer)
 * cdef GLboolean  glIsEnabled (GLenum cap) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glIsEnabled( cap = ", cap, ", )"
 *     ret = cgl.glGetError()
 */

static __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean __pyx_f_4kivy_8graphics_14c_opengl_debug_glIsEnabled(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_cap) {
  GLenum __pyx_v_ret;
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glIsEnabled", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":412
 *     return cgl.glIsBuffer ( buffer)
 * cdef GLboolean  glIsEnabled (GLenum cap) with gil:
 *     print "GL glIsEnabled( cap = ", cap, ", )"             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_cap); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 412; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 412; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_137));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_137));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_137));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 412; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":413
 * cdef GLboolean  glIsEnabled (GLenum cap) with gil:
 *     print "GL glIsEnabled( cap = ", cap, ", )"
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 *     return cgl.glIsEnabled ( cap)
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":414
 *     print "GL glIsEnabled( cap = ", cap, ", )"
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 *     return cgl.glIsEnabled ( cap)
 * cdef GLboolean  glIsFramebuffer (GLuint framebuffer) with gil:
 */
  __pyx_t_3 = (__pyx_v_ret != 0);
  if (__pyx_t_3) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 414; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 414; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 414; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 414; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 414; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "kivy\graphics\c_opengl_debug.pyx":415
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 *     return cgl.glIsEnabled ( cap)             # <<<<<<<<<<<<<<
 * cdef GLboolean  glIsFramebuffer (GLuint framebuffer) with gil:
 *     print "GL glIsFramebuffer( framebuffer = ", framebuffer, ", )"
 */
  __pyx_r = glIsEnabled(__pyx_v_cap);
  goto __pyx_L0;

  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glIsEnabled", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
  return __pyx_r;
}

/* "kivy\graphics\c_opengl_debug.pyx":416
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 *     return cgl.glIsEnabled ( cap)
 * cdef GLboolean  glIsFramebuffer (GLuint framebuffer) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glIsFramebuffer( framebuffer = ", framebuffer, ", )"
 *     ret = cgl.glGetError()
 */

static __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean __pyx_f_4kivy_8graphics_14c_opengl_debug_glIsFramebuffer(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_framebuffer) {
  GLenum __pyx_v_ret;
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glIsFramebuffer", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":417
 *     return cgl.glIsEnabled ( cap)
 * cdef GLboolean  glIsFramebuffer (GLuint framebuffer) with gil:
 *     print "GL glIsFramebuffer( framebuffer = ", framebuffer, ", )"             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_framebuffer); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 417; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 417; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_138));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_138));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_138));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 417; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":418
 * cdef GLboolean  glIsFramebuffer (GLuint framebuffer) with gil:
 *     print "GL glIsFramebuffer( framebuffer = ", framebuffer, ", )"
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 *     return cgl.glIsFramebuffer ( framebuffer)
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":419
 *     print "GL glIsFramebuffer( framebuffer = ", framebuffer, ", )"
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 *     return cgl.glIsFramebuffer ( framebuffer)
 * cdef GLboolean  glIsProgram (GLuint program) with gil:
 */
  __pyx_t_3 = (__pyx_v_ret != 0);
  if (__pyx_t_3) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 419; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 419; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 419; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 419; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 419; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "kivy\graphics\c_opengl_debug.pyx":420
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 *     return cgl.glIsFramebuffer ( framebuffer)             # <<<<<<<<<<<<<<
 * cdef GLboolean  glIsProgram (GLuint program) with gil:
 *     print "GL glIsProgram( program = ", program, ", )"
 */
  __pyx_r = glIsFramebuffer(__pyx_v_framebuffer);
  goto __pyx_L0;

  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glIsFramebuffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
  return __pyx_r;
}

/* "kivy\graphics\c_opengl_debug.pyx":421
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 *     return cgl.glIsFramebuffer ( framebuffer)
 * cdef GLboolean  glIsProgram (GLuint program) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glIsProgram( program = ", program, ", )"
 *     ret = cgl.glGetError()
 */

static __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean __pyx_f_4kivy_8graphics_14c_opengl_debug_glIsProgram(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_program) {
  GLenum __pyx_v_ret;
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glIsProgram", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":422
 *     return cgl.glIsFramebuffer ( framebuffer)
 * cdef GLboolean  glIsProgram (GLuint program) with gil:
 *     print "GL glIsProgram( program = ", program, ", )"             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_program); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 422; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 422; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_139));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_139));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_139));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 422; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":423
 * cdef GLboolean  glIsProgram (GLuint program) with gil:
 *     print "GL glIsProgram( program = ", program, ", )"
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 *     return cgl.glIsProgram ( program)
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":424
 *     print "GL glIsProgram( program = ", program, ", )"
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 *     return cgl.glIsProgram ( program)
 * cdef GLboolean  glIsRenderbuffer (GLuint renderbuffer) with gil:
 */
  __pyx_t_3 = (__pyx_v_ret != 0);
  if (__pyx_t_3) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 424; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 424; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 424; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 424; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 424; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "kivy\graphics\c_opengl_debug.pyx":425
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 *     return cgl.glIsProgram ( program)             # <<<<<<<<<<<<<<
 * cdef GLboolean  glIsRenderbuffer (GLuint renderbuffer) with gil:
 *     print "GL glIsRenderbuffer( renderbuffer = ", renderbuffer, ", )"
 */
  __pyx_r = glIsProgram(__pyx_v_program);
  goto __pyx_L0;

  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glIsProgram", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
  return __pyx_r;
}

/* "kivy\graphics\c_opengl_debug.pyx":426
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 *     return cgl.glIsProgram ( program)
 * cdef GLboolean  glIsRenderbuffer (GLuint renderbuffer) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glIsRenderbuffer( renderbuffer = ", renderbuffer, ", )"
 *     ret = cgl.glGetError()
 */

static __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean __pyx_f_4kivy_8graphics_14c_opengl_debug_glIsRenderbuffer(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_renderbuffer) {
  GLenum __pyx_v_ret;
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glIsRenderbuffer", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":427
 *     return cgl.glIsProgram ( program)
 * cdef GLboolean  glIsRenderbuffer (GLuint renderbuffer) with gil:
 *     print "GL glIsRenderbuffer( renderbuffer = ", renderbuffer, ", )"             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_renderbuffer); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 427; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 427; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_140));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_140));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_140));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 427; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":428
 * cdef GLboolean  glIsRenderbuffer (GLuint renderbuffer) with gil:
 *     print "GL glIsRenderbuffer( renderbuffer = ", renderbuffer, ", )"
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 *     return cgl.glIsRenderbuffer ( renderbuffer)
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":429
 *     print "GL glIsRenderbuffer( renderbuffer = ", renderbuffer, ", )"
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 *     return cgl.glIsRenderbuffer ( renderbuffer)
 * cdef GLboolean  glIsShader (GLuint shader) with gil:
 */
  __pyx_t_3 = (__pyx_v_ret != 0);
  if (__pyx_t_3) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 429; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 429; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 429; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 429; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 429; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "kivy\graphics\c_opengl_debug.pyx":430
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 *     return cgl.glIsRenderbuffer ( renderbuffer)             # <<<<<<<<<<<<<<
 * cdef GLboolean  glIsShader (GLuint shader) with gil:
 *     print "GL glIsShader( shader = ", shader, ", )"
 */
  __pyx_r = glIsRenderbuffer(__pyx_v_renderbuffer);
  goto __pyx_L0;

  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glIsRenderbuffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
  return __pyx_r;
}

/* "kivy\graphics\c_opengl_debug.pyx":431
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 *     return cgl.glIsRenderbuffer ( renderbuffer)
 * cdef GLboolean  glIsShader (GLuint shader) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glIsShader( shader = ", shader, ", )"
 *     ret = cgl.glGetError()
 */

static __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean __pyx_f_4kivy_8graphics_14c_opengl_debug_glIsShader(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_shader) {
  GLenum __pyx_v_ret;
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glIsShader", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":432
 *     return cgl.glIsRenderbuffer ( renderbuffer)
 * cdef GLboolean  glIsShader (GLuint shader) with gil:
 *     print "GL glIsShader( shader = ", shader, ", )"             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_shader); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 432; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 432; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_141));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_141));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_141));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 432; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":433
 * cdef GLboolean  glIsShader (GLuint shader) with gil:
 *     print "GL glIsShader( shader = ", shader, ", )"
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 *     return cgl.glIsShader ( shader)
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":434
 *     print "GL glIsShader( shader = ", shader, ", )"
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 *     return cgl.glIsShader ( shader)
 * cdef GLboolean  glIsTexture (GLuint texture) with gil:
 */
  __pyx_t_3 = (__pyx_v_ret != 0);
  if (__pyx_t_3) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 434; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 434; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 434; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 434; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 434; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "kivy\graphics\c_opengl_debug.pyx":435
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 *     return cgl.glIsShader ( shader)             # <<<<<<<<<<<<<<
 * cdef GLboolean  glIsTexture (GLuint texture) with gil:
 *     print "GL glIsTexture( texture = ", texture, ", )"
 */
  __pyx_r = glIsShader(__pyx_v_shader);
  goto __pyx_L0;

  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glIsShader", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
  return __pyx_r;
}

/* "kivy\graphics\c_opengl_debug.pyx":436
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 *     return cgl.glIsShader ( shader)
 * cdef GLboolean  glIsTexture (GLuint texture) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glIsTexture( texture = ", texture, ", )"
 *     ret = cgl.glGetError()
 */

static __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean __pyx_f_4kivy_8graphics_14c_opengl_debug_glIsTexture(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_texture) {
  GLenum __pyx_v_ret;
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glIsTexture", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":437
 *     return cgl.glIsShader ( shader)
 * cdef GLboolean  glIsTexture (GLuint texture) with gil:
 *     print "GL glIsTexture( texture = ", texture, ", )"             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_texture); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 437; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 437; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_142));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_142));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_142));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 437; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":438
 * cdef GLboolean  glIsTexture (GLuint texture) with gil:
 *     print "GL glIsTexture( texture = ", texture, ", )"
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 *     return cgl.glIsTexture ( texture)
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":439
 *     print "GL glIsTexture( texture = ", texture, ", )"
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 *     return cgl.glIsTexture ( texture)
 * cdef void  glLineWidth (GLfloat width) with gil:
 */
  __pyx_t_3 = (__pyx_v_ret != 0);
  if (__pyx_t_3) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 439; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 439; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 439; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 439; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 439; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  /* "kivy\graphics\c_opengl_debug.pyx":440
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 *     return cgl.glIsTexture ( texture)             # <<<<<<<<<<<<<<
 * cdef void  glLineWidth (GLfloat width) with gil:
 *     print "GL glLineWidth( width = ", width, ", )"
 */
  __pyx_r = glIsTexture(__pyx_v_texture);
  goto __pyx_L0;

  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glIsTexture", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
  return __pyx_r;
}

/* "kivy\graphics\c_opengl_debug.pyx":441
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 *     return cgl.glIsTexture ( texture)
 * cdef void  glLineWidth (GLfloat width) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glLineWidth( width = ", width, ", )"
 *     cgl.glLineWidth ( width)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glLineWidth(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat __pyx_v_width) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glLineWidth", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":442
 *     return cgl.glIsTexture ( texture)
 * cdef void  glLineWidth (GLfloat width) with gil:
 *     print "GL glLineWidth( width = ", width, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glLineWidth ( width)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_width); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 442; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 442; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_143));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_143));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_143));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 442; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":443
 * cdef void  glLineWidth (GLfloat width) with gil:
 *     print "GL glLineWidth( width = ", width, ", )"
 *     cgl.glLineWidth ( width)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glLineWidth(__pyx_v_width);

  /* "kivy\graphics\c_opengl_debug.pyx":444
 *     print "GL glLineWidth( width = ", width, ", )"
 *     cgl.glLineWidth ( width)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glLinkProgram (GLuint program) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":445
 *     cgl.glLineWidth ( width)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glLinkProgram (GLuint program) with gil:
 *     print "GL glLinkProgram( program = ", program, ", )"
 */
  __pyx_t_3 = (__pyx_v_ret != 0);
  if (__pyx_t_3) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 445; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 445; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 445; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 445; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 445; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glLineWidth", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":446
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glLinkProgram (GLuint program) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glLinkProgram( program = ", program, ", )"
 *     cgl.glLinkProgram ( program)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glLinkProgram(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_program) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glLinkProgram", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":447
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glLinkProgram (GLuint program) with gil:
 *     print "GL glLinkProgram( program = ", program, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glLinkProgram ( program)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_program); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 447; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 447; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_144));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_144));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_144));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 447; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":448
 * cdef void  glLinkProgram (GLuint program) with gil:
 *     print "GL glLinkProgram( program = ", program, ", )"
 *     cgl.glLinkProgram ( program)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glLinkProgram(__pyx_v_program);

  /* "kivy\graphics\c_opengl_debug.pyx":449
 *     print "GL glLinkProgram( program = ", program, ", )"
 *     cgl.glLinkProgram ( program)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glPixelStorei (GLenum pname, GLint param) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":450
 *     cgl.glLinkProgram ( program)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glPixelStorei (GLenum pname, GLint param) with gil:
 *     print "GL glPixelStorei( pname = ", pname, ", param = ", param, ", )"
 */
  __pyx_t_3 = (__pyx_v_ret != 0);
  if (__pyx_t_3) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 450; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 450; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 450; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 450; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 450; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glLinkProgram", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":451
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glPixelStorei (GLenum pname, GLint param) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glPixelStorei( pname = ", pname, ", param = ", param, ", )"
 *     cgl.glPixelStorei ( pname, param)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glPixelStorei(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_pname, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_param) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glPixelStorei", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":452
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glPixelStorei (GLenum pname, GLint param) with gil:
 *     print "GL glPixelStorei( pname = ", pname, ", param = ", param, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glPixelStorei ( pname, param)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_pname); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 452; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_param); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 452; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 452; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_145));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_145));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_145));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_146));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_146));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_146));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 452; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":453
 * cdef void  glPixelStorei (GLenum pname, GLint param) with gil:
 *     print "GL glPixelStorei( pname = ", pname, ", param = ", param, ", )"
 *     cgl.glPixelStorei ( pname, param)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glPixelStorei(__pyx_v_pname, __pyx_v_param);

  /* "kivy\graphics\c_opengl_debug.pyx":454
 *     print "GL glPixelStorei( pname = ", pname, ", param = ", param, ", )"
 *     cgl.glPixelStorei ( pname, param)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glPolygonOffset (GLfloat factor, GLfloat units) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":455
 *     cgl.glPixelStorei ( pname, param)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glPolygonOffset (GLfloat factor, GLfloat units) with gil:
 *     print "GL glPolygonOffset( factor = ", factor, ", units = ", units, ", )"
 */
  __pyx_t_4 = (__pyx_v_ret != 0);
  if (__pyx_t_4) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 455; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 455; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 455; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_3 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 455; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 455; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glPixelStorei", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":456
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glPolygonOffset (GLfloat factor, GLfloat units) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glPolygonOffset( factor = ", factor, ", units = ", units, ", )"
 *     cgl.glPolygonOffset ( factor, units)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glPolygonOffset(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat __pyx_v_factor, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat __pyx_v_units) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glPolygonOffset", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":457
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glPolygonOffset (GLfloat factor, GLfloat units) with gil:
 *     print "GL glPolygonOffset( factor = ", factor, ", units = ", units, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glPolygonOffset ( factor, units)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_factor); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 457; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_units); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 457; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 457; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_147));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_147));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_147));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_148));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_148));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_148));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 457; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":458
 * cdef void  glPolygonOffset (GLfloat factor, GLfloat units) with gil:
 *     print "GL glPolygonOffset( factor = ", factor, ", units = ", units, ", )"
 *     cgl.glPolygonOffset ( factor, units)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glPolygonOffset(__pyx_v_factor, __pyx_v_units);

  /* "kivy\graphics\c_opengl_debug.pyx":459
 *     print "GL glPolygonOffset( factor = ", factor, ", units = ", units, ", )"
 *     cgl.glPolygonOffset ( factor, units)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":460
 *     cgl.glPolygonOffset ( factor, units)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels) with gil:
 *     print "GL glReadPixels( x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", format = ", format, ", type = ", type, ", pixels*=", repr(hex(<long> pixels)), ", )"
 */
  __pyx_t_4 = (__pyx_v_ret != 0);
  if (__pyx_t_4) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 460; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 460; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 460; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_3 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 460; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 460; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glPolygonOffset", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":461
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glReadPixels( x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", format = ", format, ", type = ", type, ", pixels*=", repr(hex(<long> pixels)), ", )"
 *     cgl.glReadPixels ( x, y, width, height, format, type, pixels)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glReadPixels(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_x, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_y, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_width, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_height, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_format, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_type, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLvoid *__pyx_v_pixels) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  int __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glReadPixels", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":462
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels) with gil:
 *     print "GL glReadPixels( x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", format = ", format, ", type = ", type, ", pixels*=", repr(hex(<long> pixels)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glReadPixels ( x, y, width, height, format, type, pixels)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_x); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 462; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_y); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 462; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(__pyx_v_width); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 462; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromLong(__pyx_v_height); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 462; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyLong_FromUnsignedLong(__pyx_v_format); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 462; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyLong_FromUnsignedLong(__pyx_v_type); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 462; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = PyInt_FromLong(((long)__pyx_v_pixels)); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 462; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 462; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_8);
  PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_7);
  __pyx_t_7 = 0;
  __pyx_t_7 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_8), NULL); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 462; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(((PyObject *)__pyx_t_8)); __pyx_t_8 = 0;
  __pyx_t_8 = PyObject_Repr(__pyx_t_7); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 462; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyTuple_New(15); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 462; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_149));
  PyTuple_SET_ITEM(__pyx_t_7, 0, ((PyObject *)__pyx_kp_s_149));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_149));
  PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_55));
  PyTuple_SET_ITEM(__pyx_t_7, 2, ((PyObject *)__pyx_kp_s_55));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_55));
  PyTuple_SET_ITEM(__pyx_t_7, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_45));
  PyTuple_SET_ITEM(__pyx_t_7, 4, ((PyObject *)__pyx_kp_s_45));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_45));
  PyTuple_SET_ITEM(__pyx_t_7, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_46));
  PyTuple_SET_ITEM(__pyx_t_7, 6, ((PyObject *)__pyx_kp_s_46));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_46));
  PyTuple_SET_ITEM(__pyx_t_7, 7, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_52));
  PyTuple_SET_ITEM(__pyx_t_7, 8, ((PyObject *)__pyx_kp_s_52));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_52));
  PyTuple_SET_ITEM(__pyx_t_7, 9, __pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_79));
  PyTuple_SET_ITEM(__pyx_t_7, 10, ((PyObject *)__pyx_kp_s_79));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_79));
  PyTuple_SET_ITEM(__pyx_t_7, 11, __pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_6);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_150));
  PyTuple_SET_ITEM(__pyx_t_7, 12, ((PyObject *)__pyx_kp_s_150));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_150));
  PyTuple_SET_ITEM(__pyx_t_7, 13, __pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_8);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_7, 14, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_6 = 0;
  __pyx_t_8 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_7), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 462; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":463
 * cdef void  glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels) with gil:
 *     print "GL glReadPixels( x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", format = ", format, ", type = ", type, ", pixels*=", repr(hex(<long> pixels)), ", )"
 *     cgl.glReadPixels ( x, y, width, height, format, type, pixels)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glReadPixels(__pyx_v_x, __pyx_v_y, __pyx_v_width, __pyx_v_height, __pyx_v_format, __pyx_v_type, __pyx_v_pixels);

  /* "kivy\graphics\c_opengl_debug.pyx":464
 *     print "GL glReadPixels( x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", format = ", format, ", type = ", type, ", pixels*=", repr(hex(<long> pixels)), ", )"
 *     cgl.glReadPixels ( x, y, width, height, format, type, pixels)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * # Skipping generation of: "#cdef void  glReleaseShaderCompiler ()"
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":465
 *     cgl.glReadPixels ( x, y, width, height, format, type, pixels)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * # Skipping generation of: "#cdef void  glReleaseShaderCompiler ()"
 * cdef void  glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height) with gil:
 */
  __pyx_t_9 = (__pyx_v_ret != 0);
  if (__pyx_t_9) {
    __pyx_t_7 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 465; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_8 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 465; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_8);
    __pyx_t_6 = PyTuple_New(2); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 465; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_7);
    __Pyx_GIVEREF(__pyx_t_7);
    PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_8);
    __Pyx_GIVEREF(__pyx_t_8);
    __pyx_t_7 = 0;
    __pyx_t_8 = 0;
    __pyx_t_8 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_6)); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 465; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_8));
    __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_8)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 465; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_8)); __pyx_t_8 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glReadPixels", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":467
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * # Skipping generation of: "#cdef void  glReleaseShaderCompiler ()"
 * cdef void  glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glRenderbufferStorage( target = ", target, ", internalformat = ", internalformat, ", width = ", width, ", height = ", height, ", )"
 *     cgl.glRenderbufferStorage ( target, internalformat, width, height)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glRenderbufferStorage(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_target, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_internalformat, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_width, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_height) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glRenderbufferStorage", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":468
 * # Skipping generation of: "#cdef void  glReleaseShaderCompiler ()"
 * cdef void  glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height) with gil:
 *     print "GL glRenderbufferStorage( target = ", target, ", internalformat = ", internalformat, ", width = ", width, ", height = ", height, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glRenderbufferStorage ( target, internalformat, width, height)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_target); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 468; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_internalformat); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 468; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(__pyx_v_width); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 468; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromLong(__pyx_v_height); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 468; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(9); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 468; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_151));
  PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)__pyx_kp_s_151));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_151));
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_44));
  PyTuple_SET_ITEM(__pyx_t_5, 2, ((PyObject *)__pyx_kp_s_44));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_44));
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_45));
  PyTuple_SET_ITEM(__pyx_t_5, 4, ((PyObject *)__pyx_kp_s_45));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_45));
  PyTuple_SET_ITEM(__pyx_t_5, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_46));
  PyTuple_SET_ITEM(__pyx_t_5, 6, ((PyObject *)__pyx_kp_s_46));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_46));
  PyTuple_SET_ITEM(__pyx_t_5, 7, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_5, 8, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_5), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 468; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":469
 * cdef void  glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height) with gil:
 *     print "GL glRenderbufferStorage( target = ", target, ", internalformat = ", internalformat, ", width = ", width, ", height = ", height, ", )"
 *     cgl.glRenderbufferStorage ( target, internalformat, width, height)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glRenderbufferStorage(__pyx_v_target, __pyx_v_internalformat, __pyx_v_width, __pyx_v_height);

  /* "kivy\graphics\c_opengl_debug.pyx":470
 *     print "GL glRenderbufferStorage( target = ", target, ", internalformat = ", internalformat, ", width = ", width, ", height = ", height, ", )"
 *     cgl.glRenderbufferStorage ( target, internalformat, width, height)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glSampleCoverage (GLclampf value, GLboolean invert) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":471
 *     cgl.glRenderbufferStorage ( target, internalformat, width, height)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glSampleCoverage (GLclampf value, GLboolean invert) with gil:
 *     print "GL glSampleCoverage( value = ", value, ", invert = ", invert, ", )"
 */
  __pyx_t_6 = (__pyx_v_ret != 0);
  if (__pyx_t_6) {
    __pyx_t_5 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 471; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 471; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 471; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_5 = 0;
    __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 471; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_4)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 471; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glRenderbufferStorage", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":472
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glSampleCoverage (GLclampf value, GLboolean invert) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glSampleCoverage( value = ", value, ", invert = ", invert, ", )"
 *     cgl.glSampleCoverage ( value, invert)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glSampleCoverage(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLclampf __pyx_v_value, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean __pyx_v_invert) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glSampleCoverage", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":473
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glSampleCoverage (GLclampf value, GLboolean invert) with gil:
 *     print "GL glSampleCoverage( value = ", value, ", invert = ", invert, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glSampleCoverage ( value, invert)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyFloat_FromDouble(__pyx_v_value); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 473; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_invert); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 473; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 473; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_152));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_152));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_152));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_153));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_153));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_153));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 473; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":474
 * cdef void  glSampleCoverage (GLclampf value, GLboolean invert) with gil:
 *     print "GL glSampleCoverage( value = ", value, ", invert = ", invert, ", )"
 *     cgl.glSampleCoverage ( value, invert)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glSampleCoverage(__pyx_v_value, __pyx_v_invert);

  /* "kivy\graphics\c_opengl_debug.pyx":475
 *     print "GL glSampleCoverage( value = ", value, ", invert = ", invert, ", )"
 *     cgl.glSampleCoverage ( value, invert)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glScissor (GLint x, GLint y, GLsizei width, GLsizei height) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":476
 *     cgl.glSampleCoverage ( value, invert)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glScissor (GLint x, GLint y, GLsizei width, GLsizei height) with gil:
 *     print "GL glScissor( x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", )"
 */
  __pyx_t_4 = (__pyx_v_ret != 0);
  if (__pyx_t_4) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 476; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 476; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 476; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_3 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 476; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 476; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glSampleCoverage", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":477
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glScissor (GLint x, GLint y, GLsizei width, GLsizei height) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glScissor( x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", )"
 *     cgl.glScissor ( x, y, width, height)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glScissor(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_x, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_y, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_width, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_height) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glScissor", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":478
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glScissor (GLint x, GLint y, GLsizei width, GLsizei height) with gil:
 *     print "GL glScissor( x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glScissor ( x, y, width, height)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_x); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 478; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_y); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 478; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(__pyx_v_width); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 478; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromLong(__pyx_v_height); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 478; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(9); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 478; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_154));
  PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)__pyx_kp_s_154));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_154));
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_55));
  PyTuple_SET_ITEM(__pyx_t_5, 2, ((PyObject *)__pyx_kp_s_55));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_55));
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_45));
  PyTuple_SET_ITEM(__pyx_t_5, 4, ((PyObject *)__pyx_kp_s_45));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_45));
  PyTuple_SET_ITEM(__pyx_t_5, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_46));
  PyTuple_SET_ITEM(__pyx_t_5, 6, ((PyObject *)__pyx_kp_s_46));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_46));
  PyTuple_SET_ITEM(__pyx_t_5, 7, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_5, 8, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_5), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 478; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":479
 * cdef void  glScissor (GLint x, GLint y, GLsizei width, GLsizei height) with gil:
 *     print "GL glScissor( x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", )"
 *     cgl.glScissor ( x, y, width, height)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glScissor(__pyx_v_x, __pyx_v_y, __pyx_v_width, __pyx_v_height);

  /* "kivy\graphics\c_opengl_debug.pyx":480
 *     print "GL glScissor( x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", )"
 *     cgl.glScissor ( x, y, width, height)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * # Skipping generation of: "#cdef void  glShaderBinary (cgl.GLsizei n,  cgl.GLuint* shaders, cgl.GLenum binaryformat,  cgl.GLvoid* binary, cgl.GLsizei length)"
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":481
 *     cgl.glScissor ( x, y, width, height)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * # Skipping generation of: "#cdef void  glShaderBinary (cgl.GLsizei n,  cgl.GLuint* shaders, cgl.GLenum binaryformat,  cgl.GLvoid* binary, cgl.GLsizei length)"
 * cdef void  glShaderSource (GLuint shader, GLsizei count,  GLchar** string,  GLint* length) with gil:
 */
  __pyx_t_6 = (__pyx_v_ret != 0);
  if (__pyx_t_6) {
    __pyx_t_5 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 481; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 481; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 481; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_5 = 0;
    __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 481; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_4)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 481; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glScissor", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":483
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * # Skipping generation of: "#cdef void  glShaderBinary (cgl.GLsizei n,  cgl.GLuint* shaders, cgl.GLenum binaryformat,  cgl.GLvoid* binary, cgl.GLsizei length)"
 * cdef void  glShaderSource (GLuint shader, GLsizei count,  GLchar** string,  GLint* length) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glShaderSource( shader = ", shader, ", count = ", count, ", string**=", repr(hex(<long> string)), ", length*=", repr(hex(<long> length)), ", )"
 *     cgl.glShaderSource ( shader, count, <const_char_ptr*>string, length)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glShaderSource(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_shader, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_count, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLchar **__pyx_v_string, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *__pyx_v_length) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glShaderSource", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":484
 * # Skipping generation of: "#cdef void  glShaderBinary (cgl.GLsizei n,  cgl.GLuint* shaders, cgl.GLenum binaryformat,  cgl.GLvoid* binary, cgl.GLsizei length)"
 * cdef void  glShaderSource (GLuint shader, GLsizei count,  GLchar** string,  GLint* length) with gil:
 *     print "GL glShaderSource( shader = ", shader, ", count = ", count, ", string**=", repr(hex(<long> string)), ", length*=", repr(hex(<long> length)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glShaderSource ( shader, count, <const_char_ptr*>string, length)
 *     ret = glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_shader); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 484; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_count); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 484; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(((long)__pyx_v_string)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 484; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 484; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 484; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Repr(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 484; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyInt_FromLong(((long)__pyx_v_length)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 484; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 484; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 484; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
  __pyx_t_5 = PyObject_Repr(__pyx_t_3); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 484; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(9); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 484; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_155));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_155));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_155));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_77));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_77));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_77));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_156));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_156));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_156));
  PyTuple_SET_ITEM(__pyx_t_3, 5, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_98));
  PyTuple_SET_ITEM(__pyx_t_3, 6, ((PyObject *)__pyx_kp_s_98));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_98));
  PyTuple_SET_ITEM(__pyx_t_3, 7, __pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 8, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 484; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":485
 * cdef void  glShaderSource (GLuint shader, GLsizei count,  GLchar** string,  GLint* length) with gil:
 *     print "GL glShaderSource( shader = ", shader, ", count = ", count, ", string**=", repr(hex(<long> string)), ", length*=", repr(hex(<long> length)), ", )"
 *     cgl.glShaderSource ( shader, count, <const_char_ptr*>string, length)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glShaderSource(__pyx_v_shader, __pyx_v_count, ((const char* *)__pyx_v_string), __pyx_v_length);

  /* "kivy\graphics\c_opengl_debug.pyx":486
 *     print "GL glShaderSource( shader = ", shader, ", count = ", count, ", string**=", repr(hex(<long> string)), ", length*=", repr(hex(<long> length)), ", )"
 *     cgl.glShaderSource ( shader, count, <const_char_ptr*>string, length)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glStencilFunc (GLenum func, GLint ref, GLuint mask) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":487
 *     cgl.glShaderSource ( shader, count, <const_char_ptr*>string, length)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glStencilFunc (GLenum func, GLint ref, GLuint mask) with gil:
 *     print "GL glStencilFunc( func = ", func, ", ref = ", ref, ", mask = ", mask, ", )"
 */
  __pyx_t_6 = (__pyx_v_ret != 0);
  if (__pyx_t_6) {
    __pyx_t_3 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 487; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_5 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 487; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 487; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_3 = 0;
    __pyx_t_5 = 0;
    __pyx_t_5 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_157), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 487; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_5));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_5)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 487; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glShaderSource", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":488
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glStencilFunc (GLenum func, GLint ref, GLuint mask) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glStencilFunc( func = ", func, ", ref = ", ref, ", mask = ", mask, ", )"
 *     cgl.glStencilFunc ( func, ref, mask)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glStencilFunc(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_func, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_ref, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_mask) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glStencilFunc", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":489
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glStencilFunc (GLenum func, GLint ref, GLuint mask) with gil:
 *     print "GL glStencilFunc( func = ", func, ", ref = ", ref, ", mask = ", mask, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glStencilFunc ( func, ref, mask)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_func); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 489; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_ref); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 489; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyLong_FromUnsignedLong(__pyx_v_mask); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 489; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(7); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 489; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_158));
  PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_kp_s_158));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_158));
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_159));
  PyTuple_SET_ITEM(__pyx_t_4, 2, ((PyObject *)__pyx_kp_s_159));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_159));
  PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_160));
  PyTuple_SET_ITEM(__pyx_t_4, 4, ((PyObject *)__pyx_kp_s_160));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_160));
  PyTuple_SET_ITEM(__pyx_t_4, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_4, 6, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_4), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 489; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":490
 * cdef void  glStencilFunc (GLenum func, GLint ref, GLuint mask) with gil:
 *     print "GL glStencilFunc( func = ", func, ", ref = ", ref, ", mask = ", mask, ", )"
 *     cgl.glStencilFunc ( func, ref, mask)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glStencilFunc(__pyx_v_func, __pyx_v_ref, __pyx_v_mask);

  /* "kivy\graphics\c_opengl_debug.pyx":491
 *     print "GL glStencilFunc( func = ", func, ", ref = ", ref, ", mask = ", mask, ", )"
 *     cgl.glStencilFunc ( func, ref, mask)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":492
 *     cgl.glStencilFunc ( func, ref, mask)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask) with gil:
 *     print "GL glStencilFuncSeparate( face = ", face, ", func = ", func, ", ref = ", ref, ", mask = ", mask, ", )"
 */
  __pyx_t_5 = (__pyx_v_ret != 0);
  if (__pyx_t_5) {
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 492; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 492; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 492; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_4 = 0;
    __pyx_t_3 = 0;
    __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 492; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 492; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glStencilFunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":493
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glStencilFuncSeparate( face = ", face, ", func = ", func, ", ref = ", ref, ", mask = ", mask, ", )"
 *     cgl.glStencilFuncSeparate ( face, func, ref, mask)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glStencilFuncSeparate(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_face, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_func, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_ref, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_mask) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glStencilFuncSeparate", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":494
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask) with gil:
 *     print "GL glStencilFuncSeparate( face = ", face, ", func = ", func, ", ref = ", ref, ", mask = ", mask, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glStencilFuncSeparate ( face, func, ref, mask)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_face); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 494; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_func); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 494; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(__pyx_v_ref); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 494; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyLong_FromUnsignedLong(__pyx_v_mask); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 494; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(9); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 494; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_161));
  PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)__pyx_kp_s_161));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_161));
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_162));
  PyTuple_SET_ITEM(__pyx_t_5, 2, ((PyObject *)__pyx_kp_s_162));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_162));
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_159));
  PyTuple_SET_ITEM(__pyx_t_5, 4, ((PyObject *)__pyx_kp_s_159));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_159));
  PyTuple_SET_ITEM(__pyx_t_5, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_160));
  PyTuple_SET_ITEM(__pyx_t_5, 6, ((PyObject *)__pyx_kp_s_160));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_160));
  PyTuple_SET_ITEM(__pyx_t_5, 7, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_5, 8, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_5), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 494; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":495
 * cdef void  glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask) with gil:
 *     print "GL glStencilFuncSeparate( face = ", face, ", func = ", func, ", ref = ", ref, ", mask = ", mask, ", )"
 *     cgl.glStencilFuncSeparate ( face, func, ref, mask)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glStencilFuncSeparate(__pyx_v_face, __pyx_v_func, __pyx_v_ref, __pyx_v_mask);

  /* "kivy\graphics\c_opengl_debug.pyx":496
 *     print "GL glStencilFuncSeparate( face = ", face, ", func = ", func, ", ref = ", ref, ", mask = ", mask, ", )"
 *     cgl.glStencilFuncSeparate ( face, func, ref, mask)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glStencilMask (GLuint mask) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":497
 *     cgl.glStencilFuncSeparate ( face, func, ref, mask)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glStencilMask (GLuint mask) with gil:
 *     print "GL glStencilMask( mask = ", mask, ", )"
 */
  __pyx_t_6 = (__pyx_v_ret != 0);
  if (__pyx_t_6) {
    __pyx_t_5 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 497; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 497; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 497; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_5 = 0;
    __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 497; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_4)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 497; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glStencilFuncSeparate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":498
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glStencilMask (GLuint mask) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glStencilMask( mask = ", mask, ", )"
 *     cgl.glStencilMask ( mask)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glStencilMask(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_mask) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glStencilMask", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":499
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glStencilMask (GLuint mask) with gil:
 *     print "GL glStencilMask( mask = ", mask, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glStencilMask ( mask)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_mask); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 499; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 499; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_163));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_163));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_163));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 499; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":500
 * cdef void  glStencilMask (GLuint mask) with gil:
 *     print "GL glStencilMask( mask = ", mask, ", )"
 *     cgl.glStencilMask ( mask)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glStencilMask(__pyx_v_mask);

  /* "kivy\graphics\c_opengl_debug.pyx":501
 *     print "GL glStencilMask( mask = ", mask, ", )"
 *     cgl.glStencilMask ( mask)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glStencilMaskSeparate (GLenum face, GLuint mask) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":502
 *     cgl.glStencilMask ( mask)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glStencilMaskSeparate (GLenum face, GLuint mask) with gil:
 *     print "GL glStencilMaskSeparate( face = ", face, ", mask = ", mask, ", )"
 */
  __pyx_t_3 = (__pyx_v_ret != 0);
  if (__pyx_t_3) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 502; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 502; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 502; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 502; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 502; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glStencilMask", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":503
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glStencilMaskSeparate (GLenum face, GLuint mask) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glStencilMaskSeparate( face = ", face, ", mask = ", mask, ", )"
 *     cgl.glStencilMaskSeparate ( face, mask)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glStencilMaskSeparate(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_face, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_mask) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glStencilMaskSeparate", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":504
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glStencilMaskSeparate (GLenum face, GLuint mask) with gil:
 *     print "GL glStencilMaskSeparate( face = ", face, ", mask = ", mask, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glStencilMaskSeparate ( face, mask)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_face); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 504; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_mask); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 504; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 504; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_164));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_164));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_164));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_160));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_160));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_160));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 504; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":505
 * cdef void  glStencilMaskSeparate (GLenum face, GLuint mask) with gil:
 *     print "GL glStencilMaskSeparate( face = ", face, ", mask = ", mask, ", )"
 *     cgl.glStencilMaskSeparate ( face, mask)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glStencilMaskSeparate(__pyx_v_face, __pyx_v_mask);

  /* "kivy\graphics\c_opengl_debug.pyx":506
 *     print "GL glStencilMaskSeparate( face = ", face, ", mask = ", mask, ", )"
 *     cgl.glStencilMaskSeparate ( face, mask)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glStencilOp (GLenum fail, GLenum zfail, GLenum zpass) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":507
 *     cgl.glStencilMaskSeparate ( face, mask)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glStencilOp (GLenum fail, GLenum zfail, GLenum zpass) with gil:
 *     print "GL glStencilOp( fail = ", fail, ", zfail = ", zfail, ", zpass = ", zpass, ", )"
 */
  __pyx_t_4 = (__pyx_v_ret != 0);
  if (__pyx_t_4) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 507; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 507; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 507; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_3 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 507; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 507; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glStencilMaskSeparate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":508
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glStencilOp (GLenum fail, GLenum zfail, GLenum zpass) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glStencilOp( fail = ", fail, ", zfail = ", zfail, ", zpass = ", zpass, ", )"
 *     cgl.glStencilOp ( fail, zfail, zpass)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glStencilOp(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_fail, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_zfail, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_zpass) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glStencilOp", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":509
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glStencilOp (GLenum fail, GLenum zfail, GLenum zpass) with gil:
 *     print "GL glStencilOp( fail = ", fail, ", zfail = ", zfail, ", zpass = ", zpass, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glStencilOp ( fail, zfail, zpass)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_fail); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 509; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_zfail); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 509; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyLong_FromUnsignedLong(__pyx_v_zpass); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 509; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(7); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 509; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_165));
  PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_kp_s_165));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_165));
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_166));
  PyTuple_SET_ITEM(__pyx_t_4, 2, ((PyObject *)__pyx_kp_s_166));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_166));
  PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_167));
  PyTuple_SET_ITEM(__pyx_t_4, 4, ((PyObject *)__pyx_kp_s_167));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_167));
  PyTuple_SET_ITEM(__pyx_t_4, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_4, 6, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_4), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 509; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":510
 * cdef void  glStencilOp (GLenum fail, GLenum zfail, GLenum zpass) with gil:
 *     print "GL glStencilOp( fail = ", fail, ", zfail = ", zfail, ", zpass = ", zpass, ", )"
 *     cgl.glStencilOp ( fail, zfail, zpass)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glStencilOp(__pyx_v_fail, __pyx_v_zfail, __pyx_v_zpass);

  /* "kivy\graphics\c_opengl_debug.pyx":511
 *     print "GL glStencilOp( fail = ", fail, ", zfail = ", zfail, ", zpass = ", zpass, ", )"
 *     cgl.glStencilOp ( fail, zfail, zpass)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glStencilOpSeparate (GLenum face, GLenum fail, GLenum zfail, GLenum zpass) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":512
 *     cgl.glStencilOp ( fail, zfail, zpass)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glStencilOpSeparate (GLenum face, GLenum fail, GLenum zfail, GLenum zpass) with gil:
 *     print "GL glStencilOpSeparate( face = ", face, ", fail = ", fail, ", zfail = ", zfail, ", zpass = ", zpass, ", )"
 */
  __pyx_t_5 = (__pyx_v_ret != 0);
  if (__pyx_t_5) {
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 512; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 512; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 512; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_4 = 0;
    __pyx_t_3 = 0;
    __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 512; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 512; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glStencilOp", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":513
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glStencilOpSeparate (GLenum face, GLenum fail, GLenum zfail, GLenum zpass) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glStencilOpSeparate( face = ", face, ", fail = ", fail, ", zfail = ", zfail, ", zpass = ", zpass, ", )"
 *     cgl.glStencilOpSeparate ( face, fail, zfail, zpass)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glStencilOpSeparate(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_face, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_fail, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_zfail, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_zpass) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glStencilOpSeparate", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":514
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glStencilOpSeparate (GLenum face, GLenum fail, GLenum zfail, GLenum zpass) with gil:
 *     print "GL glStencilOpSeparate( face = ", face, ", fail = ", fail, ", zfail = ", zfail, ", zpass = ", zpass, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glStencilOpSeparate ( face, fail, zfail, zpass)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_face); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 514; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_fail); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 514; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyLong_FromUnsignedLong(__pyx_v_zfail); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 514; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyLong_FromUnsignedLong(__pyx_v_zpass); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 514; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(9); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 514; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_168));
  PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)__pyx_kp_s_168));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_168));
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_169));
  PyTuple_SET_ITEM(__pyx_t_5, 2, ((PyObject *)__pyx_kp_s_169));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_169));
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_166));
  PyTuple_SET_ITEM(__pyx_t_5, 4, ((PyObject *)__pyx_kp_s_166));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_166));
  PyTuple_SET_ITEM(__pyx_t_5, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_167));
  PyTuple_SET_ITEM(__pyx_t_5, 6, ((PyObject *)__pyx_kp_s_167));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_167));
  PyTuple_SET_ITEM(__pyx_t_5, 7, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_5, 8, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_5), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 514; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":515
 * cdef void  glStencilOpSeparate (GLenum face, GLenum fail, GLenum zfail, GLenum zpass) with gil:
 *     print "GL glStencilOpSeparate( face = ", face, ", fail = ", fail, ", zfail = ", zfail, ", zpass = ", zpass, ", )"
 *     cgl.glStencilOpSeparate ( face, fail, zfail, zpass)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glStencilOpSeparate(__pyx_v_face, __pyx_v_fail, __pyx_v_zfail, __pyx_v_zpass);

  /* "kivy\graphics\c_opengl_debug.pyx":516
 *     print "GL glStencilOpSeparate( face = ", face, ", fail = ", fail, ", zfail = ", zfail, ", zpass = ", zpass, ", )"
 *     cgl.glStencilOpSeparate ( face, fail, zfail, zpass)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type,  GLvoid* pixels) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":517
 *     cgl.glStencilOpSeparate ( face, fail, zfail, zpass)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type,  GLvoid* pixels) with gil:
 *     print "GL glTexImage2D( target = ", target, ", level = ", level, ", internalformat = ", internalformat, ", width = ", width, ", height = ", height, ", border = ", border, ", format = ", format, ", type = ", type, ", pixels*=", repr(hex(<long> pixels)), ", )"
 */
  __pyx_t_6 = (__pyx_v_ret != 0);
  if (__pyx_t_6) {
    __pyx_t_5 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 517; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 517; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 517; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_5 = 0;
    __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 517; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_4)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 517; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glStencilOpSeparate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":518
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type,  GLvoid* pixels) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glTexImage2D( target = ", target, ", level = ", level, ", internalformat = ", internalformat, ", width = ", width, ", height = ", height, ", border = ", border, ", format = ", format, ", type = ", type, ", pixels*=", repr(hex(<long> pixels)), ", )"
 *     cgl.glTexImage2D ( target, level, internalformat, width, height, border, format, type, pixels)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glTexImage2D(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_target, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_level, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_internalformat, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_width, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_height, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_border, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_format, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_type, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLvoid *__pyx_v_pixels) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glTexImage2D", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":519
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type,  GLvoid* pixels) with gil:
 *     print "GL glTexImage2D( target = ", target, ", level = ", level, ", internalformat = ", internalformat, ", width = ", width, ", height = ", height, ", border = ", border, ", format = ", format, ", type = ", type, ", pixels*=", repr(hex(<long> pixels)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glTexImage2D ( target, level, internalformat, width, height, border, format, type, pixels)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_target); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_level); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(__pyx_v_internalformat); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromLong(__pyx_v_width); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromLong(__pyx_v_height); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyInt_FromLong(__pyx_v_border); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = PyLong_FromUnsignedLong(__pyx_v_format); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = PyLong_FromUnsignedLong(__pyx_v_type); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = PyInt_FromLong(((long)__pyx_v_pixels)); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_10 = PyTuple_New(1); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_10);
  PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_9);
  __Pyx_GIVEREF(__pyx_t_9);
  __pyx_t_9 = 0;
  __pyx_t_9 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_10), NULL); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(((PyObject *)__pyx_t_10)); __pyx_t_10 = 0;
  __pyx_t_10 = PyObject_Repr(__pyx_t_9); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_10);
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __pyx_t_9 = PyTuple_New(19); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_170));
  PyTuple_SET_ITEM(__pyx_t_9, 0, ((PyObject *)__pyx_kp_s_170));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_170));
  PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_43));
  PyTuple_SET_ITEM(__pyx_t_9, 2, ((PyObject *)__pyx_kp_s_43));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_43));
  PyTuple_SET_ITEM(__pyx_t_9, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_44));
  PyTuple_SET_ITEM(__pyx_t_9, 4, ((PyObject *)__pyx_kp_s_44));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_44));
  PyTuple_SET_ITEM(__pyx_t_9, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_45));
  PyTuple_SET_ITEM(__pyx_t_9, 6, ((PyObject *)__pyx_kp_s_45));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_45));
  PyTuple_SET_ITEM(__pyx_t_9, 7, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_46));
  PyTuple_SET_ITEM(__pyx_t_9, 8, ((PyObject *)__pyx_kp_s_46));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_46));
  PyTuple_SET_ITEM(__pyx_t_9, 9, __pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_47));
  PyTuple_SET_ITEM(__pyx_t_9, 10, ((PyObject *)__pyx_kp_s_47));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_47));
  PyTuple_SET_ITEM(__pyx_t_9, 11, __pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_6);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_52));
  PyTuple_SET_ITEM(__pyx_t_9, 12, ((PyObject *)__pyx_kp_s_52));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_52));
  PyTuple_SET_ITEM(__pyx_t_9, 13, __pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_7);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_79));
  PyTuple_SET_ITEM(__pyx_t_9, 14, ((PyObject *)__pyx_kp_s_79));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_79));
  PyTuple_SET_ITEM(__pyx_t_9, 15, __pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_8);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_150));
  PyTuple_SET_ITEM(__pyx_t_9, 16, ((PyObject *)__pyx_kp_s_150));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_150));
  PyTuple_SET_ITEM(__pyx_t_9, 17, __pyx_t_10);
  __Pyx_GIVEREF(__pyx_t_10);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_9, 18, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_6 = 0;
  __pyx_t_7 = 0;
  __pyx_t_8 = 0;
  __pyx_t_10 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_9), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_9)); __pyx_t_9 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":520
 * cdef void  glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type,  GLvoid* pixels) with gil:
 *     print "GL glTexImage2D( target = ", target, ", level = ", level, ", internalformat = ", internalformat, ", width = ", width, ", height = ", height, ", border = ", border, ", format = ", format, ", type = ", type, ", pixels*=", repr(hex(<long> pixels)), ", )"
 *     cgl.glTexImage2D ( target, level, internalformat, width, height, border, format, type, pixels)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glTexImage2D(__pyx_v_target, __pyx_v_level, __pyx_v_internalformat, __pyx_v_width, __pyx_v_height, __pyx_v_border, __pyx_v_format, __pyx_v_type, __pyx_v_pixels);

  /* "kivy\graphics\c_opengl_debug.pyx":521
 *     print "GL glTexImage2D( target = ", target, ", level = ", level, ", internalformat = ", internalformat, ", width = ", width, ", height = ", height, ", border = ", border, ", format = ", format, ", type = ", type, ", pixels*=", repr(hex(<long> pixels)), ", )"
 *     cgl.glTexImage2D ( target, level, internalformat, width, height, border, format, type, pixels)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glTexParameterf (GLenum target, GLenum pname, GLfloat param) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":522
 *     cgl.glTexImage2D ( target, level, internalformat, width, height, border, format, type, pixels)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glTexParameterf (GLenum target, GLenum pname, GLfloat param) with gil:
 *     print "GL glTexParameterf( target = ", target, ", pname = ", pname, ", param = ", param, ", )"
 */
  __pyx_t_11 = (__pyx_v_ret != 0);
  if (__pyx_t_11) {
    __pyx_t_9 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_10 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_10);
    __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_8);
    PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_9);
    __Pyx_GIVEREF(__pyx_t_9);
    PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_10);
    __Pyx_GIVEREF(__pyx_t_10);
    __pyx_t_9 = 0;
    __pyx_t_10 = 0;
    __pyx_t_10 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_8)); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_10));
    __Pyx_DECREF(((PyObject *)__pyx_t_8)); __pyx_t_8 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_10)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_10)); __pyx_t_10 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glTexImage2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":523
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glTexParameterf (GLenum target, GLenum pname, GLfloat param) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glTexParameterf( target = ", target, ", pname = ", pname, ", param = ", param, ", )"
 *     cgl.glTexParameterf ( target, pname, param)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glTexParameterf(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_target, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_pname, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat __pyx_v_param) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glTexParameterf", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":524
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glTexParameterf (GLenum target, GLenum pname, GLfloat param) with gil:
 *     print "GL glTexParameterf( target = ", target, ", pname = ", pname, ", param = ", param, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glTexParameterf ( target, pname, param)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_target); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 524; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_pname); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 524; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_param); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 524; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(7); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 524; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_171));
  PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_kp_s_171));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_171));
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_110));
  PyTuple_SET_ITEM(__pyx_t_4, 2, ((PyObject *)__pyx_kp_s_110));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_110));
  PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_146));
  PyTuple_SET_ITEM(__pyx_t_4, 4, ((PyObject *)__pyx_kp_s_146));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_146));
  PyTuple_SET_ITEM(__pyx_t_4, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_4, 6, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_4), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 524; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":525
 * cdef void  glTexParameterf (GLenum target, GLenum pname, GLfloat param) with gil:
 *     print "GL glTexParameterf( target = ", target, ", pname = ", pname, ", param = ", param, ", )"
 *     cgl.glTexParameterf ( target, pname, param)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glTexParameterf(__pyx_v_target, __pyx_v_pname, __pyx_v_param);

  /* "kivy\graphics\c_opengl_debug.pyx":526
 *     print "GL glTexParameterf( target = ", target, ", pname = ", pname, ", param = ", param, ", )"
 *     cgl.glTexParameterf ( target, pname, param)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glTexParameterfv (GLenum target, GLenum pname,  GLfloat* params) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":527
 *     cgl.glTexParameterf ( target, pname, param)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glTexParameterfv (GLenum target, GLenum pname,  GLfloat* params) with gil:
 *     print "GL glTexParameterfv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 */
  __pyx_t_5 = (__pyx_v_ret != 0);
  if (__pyx_t_5) {
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 527; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 527; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 527; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_4 = 0;
    __pyx_t_3 = 0;
    __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 527; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 527; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glTexParameterf", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":528
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glTexParameterfv (GLenum target, GLenum pname,  GLfloat* params) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glTexParameterfv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glTexParameterfv ( target, pname, params)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glTexParameterfv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_target, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_pname, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *__pyx_v_params) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glTexParameterfv", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":529
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glTexParameterfv (GLenum target, GLenum pname,  GLfloat* params) with gil:
 *     print "GL glTexParameterfv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glTexParameterfv ( target, pname, params)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_target); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 529; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_pname); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 529; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(((long)__pyx_v_params)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 529; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 529; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 529; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Repr(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 529; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(7); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 529; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_172));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_172));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_172));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_110));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_110));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_110));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_108));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_108));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_108));
  PyTuple_SET_ITEM(__pyx_t_3, 5, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 6, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_4 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 529; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":530
 * cdef void  glTexParameterfv (GLenum target, GLenum pname,  GLfloat* params) with gil:
 *     print "GL glTexParameterfv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glTexParameterfv ( target, pname, params)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glTexParameterfv(__pyx_v_target, __pyx_v_pname, __pyx_v_params);

  /* "kivy\graphics\c_opengl_debug.pyx":531
 *     print "GL glTexParameterfv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glTexParameterfv ( target, pname, params)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glTexParameteri (GLenum target, GLenum pname, GLint param) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":532
 *     cgl.glTexParameterfv ( target, pname, params)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glTexParameteri (GLenum target, GLenum pname, GLint param) with gil:
 *     print "GL glTexParameteri( target = ", target, ", pname = ", pname, ", param = ", param, ", )"
 */
  __pyx_t_5 = (__pyx_v_ret != 0);
  if (__pyx_t_5) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 532; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 532; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 532; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_3 = 0;
    __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 532; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_4)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 532; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glTexParameterfv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":533
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glTexParameteri (GLenum target, GLenum pname, GLint param) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glTexParameteri( target = ", target, ", pname = ", pname, ", param = ", param, ", )"
 *     cgl.glTexParameteri ( target, pname, param)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glTexParameteri(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_target, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_pname, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_param) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glTexParameteri", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":534
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glTexParameteri (GLenum target, GLenum pname, GLint param) with gil:
 *     print "GL glTexParameteri( target = ", target, ", pname = ", pname, ", param = ", param, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glTexParameteri ( target, pname, param)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_target); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 534; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_pname); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 534; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(__pyx_v_param); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 534; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(7); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 534; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_173));
  PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_kp_s_173));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_173));
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_110));
  PyTuple_SET_ITEM(__pyx_t_4, 2, ((PyObject *)__pyx_kp_s_110));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_110));
  PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_146));
  PyTuple_SET_ITEM(__pyx_t_4, 4, ((PyObject *)__pyx_kp_s_146));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_146));
  PyTuple_SET_ITEM(__pyx_t_4, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_4, 6, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_4), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 534; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":535
 * cdef void  glTexParameteri (GLenum target, GLenum pname, GLint param) with gil:
 *     print "GL glTexParameteri( target = ", target, ", pname = ", pname, ", param = ", param, ", )"
 *     cgl.glTexParameteri ( target, pname, param)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glTexParameteri(__pyx_v_target, __pyx_v_pname, __pyx_v_param);

  /* "kivy\graphics\c_opengl_debug.pyx":536
 *     print "GL glTexParameteri( target = ", target, ", pname = ", pname, ", param = ", param, ", )"
 *     cgl.glTexParameteri ( target, pname, param)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glTexParameteriv (GLenum target, GLenum pname,  GLint* params) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":537
 *     cgl.glTexParameteri ( target, pname, param)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glTexParameteriv (GLenum target, GLenum pname,  GLint* params) with gil:
 *     print "GL glTexParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 */
  __pyx_t_5 = (__pyx_v_ret != 0);
  if (__pyx_t_5) {
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 537; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 537; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 537; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_4 = 0;
    __pyx_t_3 = 0;
    __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 537; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 537; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glTexParameteri", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":538
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glTexParameteriv (GLenum target, GLenum pname,  GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glTexParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glTexParameteriv ( target, pname, params)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glTexParameteriv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_target, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_pname, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *__pyx_v_params) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glTexParameteriv", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":539
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glTexParameteriv (GLenum target, GLenum pname,  GLint* params) with gil:
 *     print "GL glTexParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glTexParameteriv ( target, pname, params)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_target); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 539; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_pname); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 539; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(((long)__pyx_v_params)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 539; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 539; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 539; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Repr(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 539; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(7); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 539; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_174));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_174));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_174));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_110));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_110));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_110));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_108));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_108));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_108));
  PyTuple_SET_ITEM(__pyx_t_3, 5, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 6, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_4 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 539; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":540
 * cdef void  glTexParameteriv (GLenum target, GLenum pname,  GLint* params) with gil:
 *     print "GL glTexParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glTexParameteriv ( target, pname, params)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glTexParameteriv(__pyx_v_target, __pyx_v_pname, __pyx_v_params);

  /* "kivy\graphics\c_opengl_debug.pyx":541
 *     print "GL glTexParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long> params)), ", )"
 *     cgl.glTexParameteriv ( target, pname, params)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type,  GLvoid* pixels) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":542
 *     cgl.glTexParameteriv ( target, pname, params)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type,  GLvoid* pixels) with gil:
 *     print "GL glTexSubImage2D( target = ", target, ", level = ", level, ", xoffset = ", xoffset, ", yoffset = ", yoffset, ", width = ", width, ", height = ", height, ", format = ", format, ", type = ", type, ", pixels*=", repr(hex(<long> pixels)), ", )"
 */
  __pyx_t_5 = (__pyx_v_ret != 0);
  if (__pyx_t_5) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 542; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 542; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 542; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_3 = 0;
    __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 542; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_4)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 542; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glTexParameteriv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":543
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type,  GLvoid* pixels) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glTexSubImage2D( target = ", target, ", level = ", level, ", xoffset = ", xoffset, ", yoffset = ", yoffset, ", width = ", width, ", height = ", height, ", format = ", format, ", type = ", type, ", pixels*=", repr(hex(<long> pixels)), ", )"
 *     cgl.glTexSubImage2D ( target, level, xoffset, yoffset, width, height, format, type, pixels)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glTexSubImage2D(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_target, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_level, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_xoffset, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_yoffset, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_width, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_height, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_format, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_type, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLvoid *__pyx_v_pixels) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  int __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glTexSubImage2D", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":544
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type,  GLvoid* pixels) with gil:
 *     print "GL glTexSubImage2D( target = ", target, ", level = ", level, ", xoffset = ", xoffset, ", yoffset = ", yoffset, ", width = ", width, ", height = ", height, ", format = ", format, ", type = ", type, ", pixels*=", repr(hex(<long> pixels)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glTexSubImage2D ( target, level, xoffset, yoffset, width, height, format, type, pixels)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_target); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 544; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_level); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 544; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(__pyx_v_xoffset); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 544; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromLong(__pyx_v_yoffset); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 544; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromLong(__pyx_v_width); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 544; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyInt_FromLong(__pyx_v_height); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 544; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = PyLong_FromUnsignedLong(__pyx_v_format); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 544; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = PyLong_FromUnsignedLong(__pyx_v_type); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 544; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = PyInt_FromLong(((long)__pyx_v_pixels)); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 544; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_10 = PyTuple_New(1); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 544; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_10);
  PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_9);
  __Pyx_GIVEREF(__pyx_t_9);
  __pyx_t_9 = 0;
  __pyx_t_9 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_10), NULL); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 544; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(((PyObject *)__pyx_t_10)); __pyx_t_10 = 0;
  __pyx_t_10 = PyObject_Repr(__pyx_t_9); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 544; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_10);
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __pyx_t_9 = PyTuple_New(19); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 544; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_175));
  PyTuple_SET_ITEM(__pyx_t_9, 0, ((PyObject *)__pyx_kp_s_175));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_175));
  PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_43));
  PyTuple_SET_ITEM(__pyx_t_9, 2, ((PyObject *)__pyx_kp_s_43));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_43));
  PyTuple_SET_ITEM(__pyx_t_9, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_50));
  PyTuple_SET_ITEM(__pyx_t_9, 4, ((PyObject *)__pyx_kp_s_50));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_50));
  PyTuple_SET_ITEM(__pyx_t_9, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_51));
  PyTuple_SET_ITEM(__pyx_t_9, 6, ((PyObject *)__pyx_kp_s_51));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_51));
  PyTuple_SET_ITEM(__pyx_t_9, 7, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_45));
  PyTuple_SET_ITEM(__pyx_t_9, 8, ((PyObject *)__pyx_kp_s_45));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_45));
  PyTuple_SET_ITEM(__pyx_t_9, 9, __pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_46));
  PyTuple_SET_ITEM(__pyx_t_9, 10, ((PyObject *)__pyx_kp_s_46));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_46));
  PyTuple_SET_ITEM(__pyx_t_9, 11, __pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_6);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_52));
  PyTuple_SET_ITEM(__pyx_t_9, 12, ((PyObject *)__pyx_kp_s_52));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_52));
  PyTuple_SET_ITEM(__pyx_t_9, 13, __pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_7);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_79));
  PyTuple_SET_ITEM(__pyx_t_9, 14, ((PyObject *)__pyx_kp_s_79));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_79));
  PyTuple_SET_ITEM(__pyx_t_9, 15, __pyx_t_8);
  __Pyx_GIVEREF(__pyx_t_8);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_150));
  PyTuple_SET_ITEM(__pyx_t_9, 16, ((PyObject *)__pyx_kp_s_150));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_150));
  PyTuple_SET_ITEM(__pyx_t_9, 17, __pyx_t_10);
  __Pyx_GIVEREF(__pyx_t_10);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_9, 18, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_6 = 0;
  __pyx_t_7 = 0;
  __pyx_t_8 = 0;
  __pyx_t_10 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_9), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 544; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_9)); __pyx_t_9 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":545
 * cdef void  glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type,  GLvoid* pixels) with gil:
 *     print "GL glTexSubImage2D( target = ", target, ", level = ", level, ", xoffset = ", xoffset, ", yoffset = ", yoffset, ", width = ", width, ", height = ", height, ", format = ", format, ", type = ", type, ", pixels*=", repr(hex(<long> pixels)), ", )"
 *     cgl.glTexSubImage2D ( target, level, xoffset, yoffset, width, height, format, type, pixels)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glTexSubImage2D(__pyx_v_target, __pyx_v_level, __pyx_v_xoffset, __pyx_v_yoffset, __pyx_v_width, __pyx_v_height, __pyx_v_format, __pyx_v_type, __pyx_v_pixels);

  /* "kivy\graphics\c_opengl_debug.pyx":546
 *     print "GL glTexSubImage2D( target = ", target, ", level = ", level, ", xoffset = ", xoffset, ", yoffset = ", yoffset, ", width = ", width, ", height = ", height, ", format = ", format, ", type = ", type, ", pixels*=", repr(hex(<long> pixels)), ", )"
 *     cgl.glTexSubImage2D ( target, level, xoffset, yoffset, width, height, format, type, pixels)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform1f (GLint location, GLfloat x) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":547
 *     cgl.glTexSubImage2D ( target, level, xoffset, yoffset, width, height, format, type, pixels)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniform1f (GLint location, GLfloat x) with gil:
 *     print "GL glUniform1f( location = ", location, ", x = ", x, ", )"
 */
  __pyx_t_11 = (__pyx_v_ret != 0);
  if (__pyx_t_11) {
    __pyx_t_9 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 547; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_9);
    __pyx_t_10 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 547; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_10);
    __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 547; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_8);
    PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_9);
    __Pyx_GIVEREF(__pyx_t_9);
    PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_10);
    __Pyx_GIVEREF(__pyx_t_10);
    __pyx_t_9 = 0;
    __pyx_t_10 = 0;
    __pyx_t_10 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_8)); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 547; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_10));
    __Pyx_DECREF(((PyObject *)__pyx_t_8)); __pyx_t_8 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_10)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 547; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_10)); __pyx_t_10 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glTexSubImage2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":548
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform1f (GLint location, GLfloat x) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniform1f( location = ", location, ", x = ", x, ", )"
 *     cgl.glUniform1f ( location, x)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform1f(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_location, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat __pyx_v_x) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniform1f", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":549
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform1f (GLint location, GLfloat x) with gil:
 *     print "GL glUniform1f( location = ", location, ", x = ", x, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glUniform1f ( location, x)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_location); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 549; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_x); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 549; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 549; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_176));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_176));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_176));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_54));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_54));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_54));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 549; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":550
 * cdef void  glUniform1f (GLint location, GLfloat x) with gil:
 *     print "GL glUniform1f( location = ", location, ", x = ", x, ", )"
 *     cgl.glUniform1f ( location, x)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glUniform1f(__pyx_v_location, __pyx_v_x);

  /* "kivy\graphics\c_opengl_debug.pyx":551
 *     print "GL glUniform1f( location = ", location, ", x = ", x, ", )"
 *     cgl.glUniform1f ( location, x)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform1fv (GLint location, GLsizei count,  GLfloat* v) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":552
 *     cgl.glUniform1f ( location, x)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniform1fv (GLint location, GLsizei count,  GLfloat* v) with gil:
 *     print "GL glUniform1fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
 */
  __pyx_t_4 = (__pyx_v_ret != 0);
  if (__pyx_t_4) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_3 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glUniform1f", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":553
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform1fv (GLint location, GLsizei count,  GLfloat* v) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniform1fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
 *     cgl.glUniform1fv ( location, count, v)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform1fv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_location, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_count, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *__pyx_v_v) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniform1fv", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":554
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform1fv (GLint location, GLsizei count,  GLfloat* v) with gil:
 *     print "GL glUniform1fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glUniform1fv ( location, count, v)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_location); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 554; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_count); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 554; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(((long)__pyx_v_v)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 554; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 554; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 554; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Repr(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 554; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(7); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 554; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_177));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_177));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_177));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_77));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_77));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_77));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_178));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_178));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_178));
  PyTuple_SET_ITEM(__pyx_t_3, 5, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 6, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_4 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 554; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":555
 * cdef void  glUniform1fv (GLint location, GLsizei count,  GLfloat* v) with gil:
 *     print "GL glUniform1fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
 *     cgl.glUniform1fv ( location, count, v)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glUniform1fv(__pyx_v_location, __pyx_v_count, __pyx_v_v);

  /* "kivy\graphics\c_opengl_debug.pyx":556
 *     print "GL glUniform1fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
 *     cgl.glUniform1fv ( location, count, v)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform1i (GLint location, GLint x) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":557
 *     cgl.glUniform1fv ( location, count, v)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniform1i (GLint location, GLint x) with gil:
 *     print "GL glUniform1i( location = ", location, ", x = ", x, ", )"
 */
  __pyx_t_5 = (__pyx_v_ret != 0);
  if (__pyx_t_5) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 557; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 557; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 557; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_3 = 0;
    __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 557; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_4)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 557; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glUniform1fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":558
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform1i (GLint location, GLint x) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniform1i( location = ", location, ", x = ", x, ", )"
 *     cgl.glUniform1i ( location, x)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform1i(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_location, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_x) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniform1i", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":559
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform1i (GLint location, GLint x) with gil:
 *     print "GL glUniform1i( location = ", location, ", x = ", x, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glUniform1i ( location, x)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_location); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 559; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_x); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 559; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 559; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_179));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_179));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_179));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_54));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_54));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_54));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 559; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":560
 * cdef void  glUniform1i (GLint location, GLint x) with gil:
 *     print "GL glUniform1i( location = ", location, ", x = ", x, ", )"
 *     cgl.glUniform1i ( location, x)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glUniform1i(__pyx_v_location, __pyx_v_x);

  /* "kivy\graphics\c_opengl_debug.pyx":561
 *     print "GL glUniform1i( location = ", location, ", x = ", x, ", )"
 *     cgl.glUniform1i ( location, x)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform1iv (GLint location, GLsizei count,  GLint* v) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":562
 *     cgl.glUniform1i ( location, x)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniform1iv (GLint location, GLsizei count,  GLint* v) with gil:
 *     print "GL glUniform1iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
 */
  __pyx_t_4 = (__pyx_v_ret != 0);
  if (__pyx_t_4) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 562; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 562; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 562; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_3 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 562; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 562; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glUniform1i", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":563
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform1iv (GLint location, GLsizei count,  GLint* v) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniform1iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
 *     cgl.glUniform1iv ( location, count, v)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform1iv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_location, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_count, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *__pyx_v_v) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniform1iv", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":564
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform1iv (GLint location, GLsizei count,  GLint* v) with gil:
 *     print "GL glUniform1iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glUniform1iv ( location, count, v)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_location); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 564; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_count); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 564; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(((long)__pyx_v_v)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 564; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 564; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 564; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Repr(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 564; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(7); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 564; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_180));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_180));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_180));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_77));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_77));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_77));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_178));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_178));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_178));
  PyTuple_SET_ITEM(__pyx_t_3, 5, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 6, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_4 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 564; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":565
 * cdef void  glUniform1iv (GLint location, GLsizei count,  GLint* v) with gil:
 *     print "GL glUniform1iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
 *     cgl.glUniform1iv ( location, count, v)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glUniform1iv(__pyx_v_location, __pyx_v_count, __pyx_v_v);

  /* "kivy\graphics\c_opengl_debug.pyx":566
 *     print "GL glUniform1iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
 *     cgl.glUniform1iv ( location, count, v)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform2f (GLint location, GLfloat x, GLfloat y) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":567
 *     cgl.glUniform1iv ( location, count, v)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniform2f (GLint location, GLfloat x, GLfloat y) with gil:
 *     print "GL glUniform2f( location = ", location, ", x = ", x, ", y = ", y, ", )"
 */
  __pyx_t_5 = (__pyx_v_ret != 0);
  if (__pyx_t_5) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 567; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 567; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 567; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_3 = 0;
    __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 567; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_4)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 567; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glUniform1iv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":568
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform2f (GLint location, GLfloat x, GLfloat y) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniform2f( location = ", location, ", x = ", x, ", y = ", y, ", )"
 *     cgl.glUniform2f ( location, x, y)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform2f(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_location, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat __pyx_v_x, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat __pyx_v_y) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniform2f", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":569
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform2f (GLint location, GLfloat x, GLfloat y) with gil:
 *     print "GL glUniform2f( location = ", location, ", x = ", x, ", y = ", y, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glUniform2f ( location, x, y)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_location); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 569; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_x); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 569; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_y); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 569; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(7); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 569; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_181));
  PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_kp_s_181));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_181));
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_54));
  PyTuple_SET_ITEM(__pyx_t_4, 2, ((PyObject *)__pyx_kp_s_54));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_54));
  PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_55));
  PyTuple_SET_ITEM(__pyx_t_4, 4, ((PyObject *)__pyx_kp_s_55));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_55));
  PyTuple_SET_ITEM(__pyx_t_4, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_4, 6, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_4), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 569; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":570
 * cdef void  glUniform2f (GLint location, GLfloat x, GLfloat y) with gil:
 *     print "GL glUniform2f( location = ", location, ", x = ", x, ", y = ", y, ", )"
 *     cgl.glUniform2f ( location, x, y)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glUniform2f(__pyx_v_location, __pyx_v_x, __pyx_v_y);

  /* "kivy\graphics\c_opengl_debug.pyx":571
 *     print "GL glUniform2f( location = ", location, ", x = ", x, ", y = ", y, ", )"
 *     cgl.glUniform2f ( location, x, y)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform2fv (GLint location, GLsizei count,  GLfloat* v) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":572
 *     cgl.glUniform2f ( location, x, y)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniform2fv (GLint location, GLsizei count,  GLfloat* v) with gil:
 *     print "GL glUniform2fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
 */
  __pyx_t_5 = (__pyx_v_ret != 0);
  if (__pyx_t_5) {
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_4 = 0;
    __pyx_t_3 = 0;
    __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glUniform2f", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":573
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform2fv (GLint location, GLsizei count,  GLfloat* v) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniform2fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
 *     cgl.glUniform2fv ( location, count, v)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform2fv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_location, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_count, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *__pyx_v_v) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniform2fv", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":574
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform2fv (GLint location, GLsizei count,  GLfloat* v) with gil:
 *     print "GL glUniform2fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glUniform2fv ( location, count, v)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_location); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 574; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_count); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 574; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(((long)__pyx_v_v)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 574; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 574; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 574; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Repr(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 574; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(7); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 574; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_182));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_182));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_182));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_77));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_77));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_77));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_178));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_178));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_178));
  PyTuple_SET_ITEM(__pyx_t_3, 5, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 6, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_4 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 574; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":575
 * cdef void  glUniform2fv (GLint location, GLsizei count,  GLfloat* v) with gil:
 *     print "GL glUniform2fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
 *     cgl.glUniform2fv ( location, count, v)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glUniform2fv(__pyx_v_location, __pyx_v_count, __pyx_v_v);

  /* "kivy\graphics\c_opengl_debug.pyx":576
 *     print "GL glUniform2fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
 *     cgl.glUniform2fv ( location, count, v)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform2i (GLint location, GLint x, GLint y) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":577
 *     cgl.glUniform2fv ( location, count, v)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniform2i (GLint location, GLint x, GLint y) with gil:
 *     print "GL glUniform2i( location = ", location, ", x = ", x, ", y = ", y, ", )"
 */
  __pyx_t_5 = (__pyx_v_ret != 0);
  if (__pyx_t_5) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 577; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 577; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 577; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_3 = 0;
    __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 577; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_4)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 577; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glUniform2fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":578
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform2i (GLint location, GLint x, GLint y) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniform2i( location = ", location, ", x = ", x, ", y = ", y, ", )"
 *     cgl.glUniform2i ( location, x, y)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform2i(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_location, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_x, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_y) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniform2i", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":579
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform2i (GLint location, GLint x, GLint y) with gil:
 *     print "GL glUniform2i( location = ", location, ", x = ", x, ", y = ", y, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glUniform2i ( location, x, y)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_location); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_x); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(__pyx_v_y); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(7); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_183));
  PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_kp_s_183));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_183));
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_54));
  PyTuple_SET_ITEM(__pyx_t_4, 2, ((PyObject *)__pyx_kp_s_54));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_54));
  PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_55));
  PyTuple_SET_ITEM(__pyx_t_4, 4, ((PyObject *)__pyx_kp_s_55));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_55));
  PyTuple_SET_ITEM(__pyx_t_4, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_4, 6, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_4), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 579; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":580
 * cdef void  glUniform2i (GLint location, GLint x, GLint y) with gil:
 *     print "GL glUniform2i( location = ", location, ", x = ", x, ", y = ", y, ", )"
 *     cgl.glUniform2i ( location, x, y)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glUniform2i(__pyx_v_location, __pyx_v_x, __pyx_v_y);

  /* "kivy\graphics\c_opengl_debug.pyx":581
 *     print "GL glUniform2i( location = ", location, ", x = ", x, ", y = ", y, ", )"
 *     cgl.glUniform2i ( location, x, y)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform2iv (GLint location, GLsizei count,  GLint* v) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":582
 *     cgl.glUniform2i ( location, x, y)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniform2iv (GLint location, GLsizei count,  GLint* v) with gil:
 *     print "GL glUniform2iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
 */
  __pyx_t_5 = (__pyx_v_ret != 0);
  if (__pyx_t_5) {
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 582; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 582; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 582; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_4 = 0;
    __pyx_t_3 = 0;
    __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 582; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 582; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glUniform2i", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":583
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform2iv (GLint location, GLsizei count,  GLint* v) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniform2iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
 *     cgl.glUniform2iv ( location, count, v)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform2iv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_location, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_count, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *__pyx_v_v) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniform2iv", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":584
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform2iv (GLint location, GLsizei count,  GLint* v) with gil:
 *     print "GL glUniform2iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glUniform2iv ( location, count, v)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_location); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 584; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_count); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 584; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(((long)__pyx_v_v)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 584; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 584; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 584; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Repr(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 584; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(7); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 584; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_184));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_184));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_184));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_77));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_77));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_77));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_178));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_178));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_178));
  PyTuple_SET_ITEM(__pyx_t_3, 5, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 6, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_4 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 584; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":585
 * cdef void  glUniform2iv (GLint location, GLsizei count,  GLint* v) with gil:
 *     print "GL glUniform2iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
 *     cgl.glUniform2iv ( location, count, v)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glUniform2iv(__pyx_v_location, __pyx_v_count, __pyx_v_v);

  /* "kivy\graphics\c_opengl_debug.pyx":586
 *     print "GL glUniform2iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
 *     cgl.glUniform2iv ( location, count, v)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform3f (GLint location, GLfloat x, GLfloat y, GLfloat z) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":587
 *     cgl.glUniform2iv ( location, count, v)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniform3f (GLint location, GLfloat x, GLfloat y, GLfloat z) with gil:
 *     print "GL glUniform3f( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", )"
 */
  __pyx_t_5 = (__pyx_v_ret != 0);
  if (__pyx_t_5) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_3 = 0;
    __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_4)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glUniform2iv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":588
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform3f (GLint location, GLfloat x, GLfloat y, GLfloat z) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniform3f( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", )"
 *     cgl.glUniform3f ( location, x, y, z)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform3f(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_location, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat __pyx_v_x, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat __pyx_v_y, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat __pyx_v_z) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniform3f", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":589
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform3f (GLint location, GLfloat x, GLfloat y, GLfloat z) with gil:
 *     print "GL glUniform3f( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glUniform3f ( location, x, y, z)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_location); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 589; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_x); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 589; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_y); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 589; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_z); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 589; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(9); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 589; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_185));
  PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)__pyx_kp_s_185));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_185));
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_54));
  PyTuple_SET_ITEM(__pyx_t_5, 2, ((PyObject *)__pyx_kp_s_54));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_54));
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_55));
  PyTuple_SET_ITEM(__pyx_t_5, 4, ((PyObject *)__pyx_kp_s_55));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_55));
  PyTuple_SET_ITEM(__pyx_t_5, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_186));
  PyTuple_SET_ITEM(__pyx_t_5, 6, ((PyObject *)__pyx_kp_s_186));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_186));
  PyTuple_SET_ITEM(__pyx_t_5, 7, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_5, 8, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_5), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 589; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":590
 * cdef void  glUniform3f (GLint location, GLfloat x, GLfloat y, GLfloat z) with gil:
 *     print "GL glUniform3f( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", )"
 *     cgl.glUniform3f ( location, x, y, z)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glUniform3f(__pyx_v_location, __pyx_v_x, __pyx_v_y, __pyx_v_z);

  /* "kivy\graphics\c_opengl_debug.pyx":591
 *     print "GL glUniform3f( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", )"
 *     cgl.glUniform3f ( location, x, y, z)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform3fv (GLint location, GLsizei count,  GLfloat* v) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":592
 *     cgl.glUniform3f ( location, x, y, z)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniform3fv (GLint location, GLsizei count,  GLfloat* v) with gil:
 *     print "GL glUniform3fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
 */
  __pyx_t_6 = (__pyx_v_ret != 0);
  if (__pyx_t_6) {
    __pyx_t_5 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 592; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 592; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 592; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_5 = 0;
    __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 592; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_4)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 592; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glUniform3f", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":593
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform3fv (GLint location, GLsizei count,  GLfloat* v) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniform3fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
 *     cgl.glUniform3fv ( location, count, v)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform3fv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_location, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_count, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *__pyx_v_v) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniform3fv", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":594
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform3fv (GLint location, GLsizei count,  GLfloat* v) with gil:
 *     print "GL glUniform3fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glUniform3fv ( location, count, v)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_location); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 594; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_count); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 594; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(((long)__pyx_v_v)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 594; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 594; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 594; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Repr(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 594; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(7); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 594; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_187));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_187));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_187));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_77));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_77));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_77));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_178));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_178));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_178));
  PyTuple_SET_ITEM(__pyx_t_3, 5, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 6, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_4 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 594; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":595
 * cdef void  glUniform3fv (GLint location, GLsizei count,  GLfloat* v) with gil:
 *     print "GL glUniform3fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
 *     cgl.glUniform3fv ( location, count, v)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glUniform3fv(__pyx_v_location, __pyx_v_count, __pyx_v_v);

  /* "kivy\graphics\c_opengl_debug.pyx":596
 *     print "GL glUniform3fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
 *     cgl.glUniform3fv ( location, count, v)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform3i (GLint location, GLint x, GLint y, GLint z) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":597
 *     cgl.glUniform3fv ( location, count, v)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniform3i (GLint location, GLint x, GLint y, GLint z) with gil:
 *     print "GL glUniform3i( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", )"
 */
  __pyx_t_5 = (__pyx_v_ret != 0);
  if (__pyx_t_5) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 597; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 597; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 597; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_3 = 0;
    __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 597; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_4)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 597; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glUniform3fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":598
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform3i (GLint location, GLint x, GLint y, GLint z) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniform3i( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", )"
 *     cgl.glUniform3i ( location, x, y, z)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform3i(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_location, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_x, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_y, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_z) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniform3i", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":599
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform3i (GLint location, GLint x, GLint y, GLint z) with gil:
 *     print "GL glUniform3i( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glUniform3i ( location, x, y, z)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_location); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 599; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_x); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 599; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(__pyx_v_y); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 599; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromLong(__pyx_v_z); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 599; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(9); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 599; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_188));
  PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)__pyx_kp_s_188));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_188));
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_54));
  PyTuple_SET_ITEM(__pyx_t_5, 2, ((PyObject *)__pyx_kp_s_54));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_54));
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_55));
  PyTuple_SET_ITEM(__pyx_t_5, 4, ((PyObject *)__pyx_kp_s_55));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_55));
  PyTuple_SET_ITEM(__pyx_t_5, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_186));
  PyTuple_SET_ITEM(__pyx_t_5, 6, ((PyObject *)__pyx_kp_s_186));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_186));
  PyTuple_SET_ITEM(__pyx_t_5, 7, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_5, 8, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_5), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 599; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":600
 * cdef void  glUniform3i (GLint location, GLint x, GLint y, GLint z) with gil:
 *     print "GL glUniform3i( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", )"
 *     cgl.glUniform3i ( location, x, y, z)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glUniform3i(__pyx_v_location, __pyx_v_x, __pyx_v_y, __pyx_v_z);

  /* "kivy\graphics\c_opengl_debug.pyx":601
 *     print "GL glUniform3i( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", )"
 *     cgl.glUniform3i ( location, x, y, z)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform3iv (GLint location, GLsizei count,  GLint* v) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":602
 *     cgl.glUniform3i ( location, x, y, z)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniform3iv (GLint location, GLsizei count,  GLint* v) with gil:
 *     print "GL glUniform3iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
 */
  __pyx_t_6 = (__pyx_v_ret != 0);
  if (__pyx_t_6) {
    __pyx_t_5 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 602; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 602; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 602; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_5 = 0;
    __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 602; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_4)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 602; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glUniform3i", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":603
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform3iv (GLint location, GLsizei count,  GLint* v) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniform3iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
 *     cgl.glUniform3iv ( location, count, v)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform3iv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_location, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_count, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *__pyx_v_v) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniform3iv", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":604
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform3iv (GLint location, GLsizei count,  GLint* v) with gil:
 *     print "GL glUniform3iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glUniform3iv ( location, count, v)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_location); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 604; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_count); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 604; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(((long)__pyx_v_v)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 604; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 604; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 604; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Repr(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 604; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(7); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 604; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_189));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_189));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_189));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_77));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_77));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_77));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_178));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_178));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_178));
  PyTuple_SET_ITEM(__pyx_t_3, 5, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 6, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_4 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 604; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":605
 * cdef void  glUniform3iv (GLint location, GLsizei count,  GLint* v) with gil:
 *     print "GL glUniform3iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
 *     cgl.glUniform3iv ( location, count, v)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glUniform3iv(__pyx_v_location, __pyx_v_count, __pyx_v_v);

  /* "kivy\graphics\c_opengl_debug.pyx":606
 *     print "GL glUniform3iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
 *     cgl.glUniform3iv ( location, count, v)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform4f (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":607
 *     cgl.glUniform3iv ( location, count, v)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniform4f (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) with gil:
 *     print "GL glUniform4f( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", w = ", w, ", )"
 */
  __pyx_t_5 = (__pyx_v_ret != 0);
  if (__pyx_t_5) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 607; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 607; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 607; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_3 = 0;
    __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 607; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_4)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 607; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glUniform3iv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":608
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform4f (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniform4f( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", w = ", w, ", )"
 *     cgl.glUniform4f ( location, x, y, z, w)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform4f(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_location, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat __pyx_v_x, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat __pyx_v_y, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat __pyx_v_z, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat __pyx_v_w) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniform4f", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":609
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform4f (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) with gil:
 *     print "GL glUniform4f( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", w = ", w, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glUniform4f ( location, x, y, z, w)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_location); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 609; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_x); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 609; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_y); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 609; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_z); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 609; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_w); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 609; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(11); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 609; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_190));
  PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)__pyx_kp_s_190));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_190));
  PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_54));
  PyTuple_SET_ITEM(__pyx_t_6, 2, ((PyObject *)__pyx_kp_s_54));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_54));
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_55));
  PyTuple_SET_ITEM(__pyx_t_6, 4, ((PyObject *)__pyx_kp_s_55));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_55));
  PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_186));
  PyTuple_SET_ITEM(__pyx_t_6, 6, ((PyObject *)__pyx_kp_s_186));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_186));
  PyTuple_SET_ITEM(__pyx_t_6, 7, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_191));
  PyTuple_SET_ITEM(__pyx_t_6, 8, ((PyObject *)__pyx_kp_s_191));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_191));
  PyTuple_SET_ITEM(__pyx_t_6, 9, __pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_6, 10, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_6), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 609; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":610
 * cdef void  glUniform4f (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) with gil:
 *     print "GL glUniform4f( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", w = ", w, ", )"
 *     cgl.glUniform4f ( location, x, y, z, w)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glUniform4f(__pyx_v_location, __pyx_v_x, __pyx_v_y, __pyx_v_z, __pyx_v_w);

  /* "kivy\graphics\c_opengl_debug.pyx":611
 *     print "GL glUniform4f( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", w = ", w, ", )"
 *     cgl.glUniform4f ( location, x, y, z, w)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform4fv (GLint location, GLsizei count,  GLfloat* v) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":612
 *     cgl.glUniform4f ( location, x, y, z, w)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniform4fv (GLint location, GLsizei count,  GLfloat* v) with gil:
 *     print "GL glUniform4fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
 */
  __pyx_t_7 = (__pyx_v_ret != 0);
  if (__pyx_t_7) {
    __pyx_t_6 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 612; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_5 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 612; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 612; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_6 = 0;
    __pyx_t_5 = 0;
    __pyx_t_5 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 612; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_5));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_5)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 612; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glUniform4f", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":613
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform4fv (GLint location, GLsizei count,  GLfloat* v) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniform4fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
 *     cgl.glUniform4fv ( location, count, v)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform4fv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_location, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_count, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *__pyx_v_v) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniform4fv", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":614
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform4fv (GLint location, GLsizei count,  GLfloat* v) with gil:
 *     print "GL glUniform4fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glUniform4fv ( location, count, v)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_location); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 614; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_count); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 614; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(((long)__pyx_v_v)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 614; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 614; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 614; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Repr(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 614; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(7); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 614; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_192));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_192));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_192));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_77));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_77));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_77));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_178));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_178));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_178));
  PyTuple_SET_ITEM(__pyx_t_3, 5, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 6, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_4 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 614; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":615
 * cdef void  glUniform4fv (GLint location, GLsizei count,  GLfloat* v) with gil:
 *     print "GL glUniform4fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
 *     cgl.glUniform4fv ( location, count, v)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glUniform4fv(__pyx_v_location, __pyx_v_count, __pyx_v_v);

  /* "kivy\graphics\c_opengl_debug.pyx":616
 *     print "GL glUniform4fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
 *     cgl.glUniform4fv ( location, count, v)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform4i (GLint location, GLint x, GLint y, GLint z, GLint w) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":617
 *     cgl.glUniform4fv ( location, count, v)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniform4i (GLint location, GLint x, GLint y, GLint z, GLint w) with gil:
 *     print "GL glUniform4i( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", w = ", w, ", )"
 */
  __pyx_t_5 = (__pyx_v_ret != 0);
  if (__pyx_t_5) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 617; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 617; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 617; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_3 = 0;
    __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 617; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_4)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 617; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glUniform4fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":618
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform4i (GLint location, GLint x, GLint y, GLint z, GLint w) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniform4i( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", w = ", w, ", )"
 *     cgl.glUniform4i ( location, x, y, z, w)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform4i(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_location, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_x, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_y, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_z, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_w) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniform4i", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":619
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform4i (GLint location, GLint x, GLint y, GLint z, GLint w) with gil:
 *     print "GL glUniform4i( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", w = ", w, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glUniform4i ( location, x, y, z, w)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_location); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 619; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_x); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 619; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(__pyx_v_y); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 619; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromLong(__pyx_v_z); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 619; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromLong(__pyx_v_w); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 619; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(11); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 619; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_193));
  PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)__pyx_kp_s_193));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_193));
  PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_54));
  PyTuple_SET_ITEM(__pyx_t_6, 2, ((PyObject *)__pyx_kp_s_54));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_54));
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_55));
  PyTuple_SET_ITEM(__pyx_t_6, 4, ((PyObject *)__pyx_kp_s_55));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_55));
  PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_186));
  PyTuple_SET_ITEM(__pyx_t_6, 6, ((PyObject *)__pyx_kp_s_186));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_186));
  PyTuple_SET_ITEM(__pyx_t_6, 7, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_191));
  PyTuple_SET_ITEM(__pyx_t_6, 8, ((PyObject *)__pyx_kp_s_191));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_191));
  PyTuple_SET_ITEM(__pyx_t_6, 9, __pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_6, 10, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_6), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 619; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":620
 * cdef void  glUniform4i (GLint location, GLint x, GLint y, GLint z, GLint w) with gil:
 *     print "GL glUniform4i( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", w = ", w, ", )"
 *     cgl.glUniform4i ( location, x, y, z, w)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glUniform4i(__pyx_v_location, __pyx_v_x, __pyx_v_y, __pyx_v_z, __pyx_v_w);

  /* "kivy\graphics\c_opengl_debug.pyx":621
 *     print "GL glUniform4i( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", w = ", w, ", )"
 *     cgl.glUniform4i ( location, x, y, z, w)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform4iv (GLint location, GLsizei count,  GLint* v) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":622
 *     cgl.glUniform4i ( location, x, y, z, w)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniform4iv (GLint location, GLsizei count,  GLint* v) with gil:
 *     print "GL glUniform4iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
 */
  __pyx_t_7 = (__pyx_v_ret != 0);
  if (__pyx_t_7) {
    __pyx_t_6 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 622; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_5 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 622; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 622; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_6 = 0;
    __pyx_t_5 = 0;
    __pyx_t_5 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 622; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_5));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_5)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 622; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glUniform4i", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":623
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform4iv (GLint location, GLsizei count,  GLint* v) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniform4iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
 *     cgl.glUniform4iv ( location, count, v)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform4iv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_location, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_count, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *__pyx_v_v) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniform4iv", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":624
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniform4iv (GLint location, GLsizei count,  GLint* v) with gil:
 *     print "GL glUniform4iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glUniform4iv ( location, count, v)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_location); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_count); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(((long)__pyx_v_v)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_4), NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Repr(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_3 = PyTuple_New(7); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_194));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_194));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_194));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_77));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_77));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_77));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_178));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_178));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_178));
  PyTuple_SET_ITEM(__pyx_t_3, 5, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 6, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_4 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":625
 * cdef void  glUniform4iv (GLint location, GLsizei count,  GLint* v) with gil:
 *     print "GL glUniform4iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
 *     cgl.glUniform4iv ( location, count, v)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glUniform4iv(__pyx_v_location, __pyx_v_count, __pyx_v_v);

  /* "kivy\graphics\c_opengl_debug.pyx":626
 *     print "GL glUniform4iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long> v)), ", )"
 *     cgl.glUniform4iv ( location, count, v)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose,  GLfloat* value) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":627
 *     cgl.glUniform4iv ( location, count, v)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose,  GLfloat* value) with gil:
 *     print "GL glUniformMatrix2fv( location = ", location, ", count = ", count, ", transpose = ", transpose, ", value*=", repr(hex(<long> value)), ", )"
 */
  __pyx_t_5 = (__pyx_v_ret != 0);
  if (__pyx_t_5) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_3 = 0;
    __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_4)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glUniform4iv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":628
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose,  GLfloat* value) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniformMatrix2fv( location = ", location, ", count = ", count, ", transpose = ", transpose, ", value*=", repr(hex(<long> value)), ", )"
 *     cgl.glUniformMatrix2fv ( location, count, transpose, value)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniformMatrix2fv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_location, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_count, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean __pyx_v_transpose, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *__pyx_v_value) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniformMatrix2fv", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":629
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose,  GLfloat* value) with gil:
 *     print "GL glUniformMatrix2fv( location = ", location, ", count = ", count, ", transpose = ", transpose, ", value*=", repr(hex(<long> value)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glUniformMatrix2fv ( location, count, transpose, value)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_location); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_count); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(__pyx_v_transpose); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromLong(((long)__pyx_v_value)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
  __pyx_t_5 = PyObject_Repr(__pyx_t_4); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(9); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_195));
  PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_kp_s_195));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_195));
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_77));
  PyTuple_SET_ITEM(__pyx_t_4, 2, ((PyObject *)__pyx_kp_s_77));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_77));
  PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_196));
  PyTuple_SET_ITEM(__pyx_t_4, 4, ((PyObject *)__pyx_kp_s_196));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_196));
  PyTuple_SET_ITEM(__pyx_t_4, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_197));
  PyTuple_SET_ITEM(__pyx_t_4, 6, ((PyObject *)__pyx_kp_s_197));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_197));
  PyTuple_SET_ITEM(__pyx_t_4, 7, __pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_4, 8, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_4), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":630
 * cdef void  glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose,  GLfloat* value) with gil:
 *     print "GL glUniformMatrix2fv( location = ", location, ", count = ", count, ", transpose = ", transpose, ", value*=", repr(hex(<long> value)), ", )"
 *     cgl.glUniformMatrix2fv ( location, count, transpose, value)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glUniformMatrix2fv(__pyx_v_location, __pyx_v_count, __pyx_v_transpose, __pyx_v_value);

  /* "kivy\graphics\c_opengl_debug.pyx":631
 *     print "GL glUniformMatrix2fv( location = ", location, ", count = ", count, ", transpose = ", transpose, ", value*=", repr(hex(<long> value)), ", )"
 *     cgl.glUniformMatrix2fv ( location, count, transpose, value)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose,  GLfloat* value) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":632
 *     cgl.glUniformMatrix2fv ( location, count, transpose, value)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose,  GLfloat* value) with gil:
 *     print "GL glUniformMatrix3fv( location = ", location, ", count = ", count, ", transpose = ", transpose, ", value*=", repr(hex(<long> value)), ", )"
 */
  __pyx_t_6 = (__pyx_v_ret != 0);
  if (__pyx_t_6) {
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 632; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 632; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 632; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_t_5 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 632; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_5));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_5)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 632; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glUniformMatrix2fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":633
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose,  GLfloat* value) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniformMatrix3fv( location = ", location, ", count = ", count, ", transpose = ", transpose, ", value*=", repr(hex(<long> value)), ", )"
 *     cgl.glUniformMatrix3fv ( location, count, transpose, value)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniformMatrix3fv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_location, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_count, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean __pyx_v_transpose, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *__pyx_v_value) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniformMatrix3fv", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":634
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose,  GLfloat* value) with gil:
 *     print "GL glUniformMatrix3fv( location = ", location, ", count = ", count, ", transpose = ", transpose, ", value*=", repr(hex(<long> value)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glUniformMatrix3fv ( location, count, transpose, value)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_location); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 634; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_count); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 634; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(__pyx_v_transpose); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 634; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromLong(((long)__pyx_v_value)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 634; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 634; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 634; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
  __pyx_t_5 = PyObject_Repr(__pyx_t_4); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 634; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(9); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 634; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_198));
  PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_kp_s_198));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_198));
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_77));
  PyTuple_SET_ITEM(__pyx_t_4, 2, ((PyObject *)__pyx_kp_s_77));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_77));
  PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_196));
  PyTuple_SET_ITEM(__pyx_t_4, 4, ((PyObject *)__pyx_kp_s_196));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_196));
  PyTuple_SET_ITEM(__pyx_t_4, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_197));
  PyTuple_SET_ITEM(__pyx_t_4, 6, ((PyObject *)__pyx_kp_s_197));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_197));
  PyTuple_SET_ITEM(__pyx_t_4, 7, __pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_4, 8, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_4), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 634; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":635
 * cdef void  glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose,  GLfloat* value) with gil:
 *     print "GL glUniformMatrix3fv( location = ", location, ", count = ", count, ", transpose = ", transpose, ", value*=", repr(hex(<long> value)), ", )"
 *     cgl.glUniformMatrix3fv ( location, count, transpose, value)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glUniformMatrix3fv(__pyx_v_location, __pyx_v_count, __pyx_v_transpose, __pyx_v_value);

  /* "kivy\graphics\c_opengl_debug.pyx":636
 *     print "GL glUniformMatrix3fv( location = ", location, ", count = ", count, ", transpose = ", transpose, ", value*=", repr(hex(<long> value)), ", )"
 *     cgl.glUniformMatrix3fv ( location, count, transpose, value)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose,  GLfloat* value) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":637
 *     cgl.glUniformMatrix3fv ( location, count, transpose, value)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose,  GLfloat* value) with gil:
 *     print "GL glUniformMatrix4fv( location = ", location, ", count = ", count, ", transpose = ", transpose, ", value*=", repr(hex(<long> value)), ", )"
 */
  __pyx_t_6 = (__pyx_v_ret != 0);
  if (__pyx_t_6) {
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_t_5 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_5));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_5)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glUniformMatrix3fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":638
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose,  GLfloat* value) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniformMatrix4fv( location = ", location, ", count = ", count, ", transpose = ", transpose, ", value*=", repr(hex(<long> value)), ", )"
 *     cgl.glUniformMatrix4fv ( location, count, transpose, value)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniformMatrix4fv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_location, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_count, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean __pyx_v_transpose, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *__pyx_v_value) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniformMatrix4fv", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":639
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose,  GLfloat* value) with gil:
 *     print "GL glUniformMatrix4fv( location = ", location, ", count = ", count, ", transpose = ", transpose, ", value*=", repr(hex(<long> value)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glUniformMatrix4fv ( location, count, transpose, value)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_location); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 639; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_count); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 639; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(__pyx_v_transpose); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 639; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromLong(((long)__pyx_v_value)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 639; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 639; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __pyx_t_4 = 0;
  __pyx_t_4 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_5), NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 639; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
  __pyx_t_5 = PyObject_Repr(__pyx_t_4); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 639; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
  __pyx_t_4 = PyTuple_New(9); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 639; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_199));
  PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_kp_s_199));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_199));
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_77));
  PyTuple_SET_ITEM(__pyx_t_4, 2, ((PyObject *)__pyx_kp_s_77));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_77));
  PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_196));
  PyTuple_SET_ITEM(__pyx_t_4, 4, ((PyObject *)__pyx_kp_s_196));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_196));
  PyTuple_SET_ITEM(__pyx_t_4, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_197));
  PyTuple_SET_ITEM(__pyx_t_4, 6, ((PyObject *)__pyx_kp_s_197));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_197));
  PyTuple_SET_ITEM(__pyx_t_4, 7, __pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_4, 8, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_5 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_4), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 639; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":640
 * cdef void  glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose,  GLfloat* value) with gil:
 *     print "GL glUniformMatrix4fv( location = ", location, ", count = ", count, ", transpose = ", transpose, ", value*=", repr(hex(<long> value)), ", )"
 *     cgl.glUniformMatrix4fv ( location, count, transpose, value)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glUniformMatrix4fv(__pyx_v_location, __pyx_v_count, __pyx_v_transpose, __pyx_v_value);

  /* "kivy\graphics\c_opengl_debug.pyx":641
 *     print "GL glUniformMatrix4fv( location = ", location, ", count = ", count, ", transpose = ", transpose, ", value*=", repr(hex(<long> value)), ", )"
 *     cgl.glUniformMatrix4fv ( location, count, transpose, value)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUseProgram (GLuint program) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":642
 *     cgl.glUniformMatrix4fv ( location, count, transpose, value)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUseProgram (GLuint program) with gil:
 *     print "GL glUseProgram( program = ", program, ", )"
 */
  __pyx_t_6 = (__pyx_v_ret != 0);
  if (__pyx_t_6) {
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 642; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_5 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 642; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 642; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_4 = 0;
    __pyx_t_5 = 0;
    __pyx_t_5 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 642; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_5));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_5)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 642; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glUniformMatrix4fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":643
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUseProgram (GLuint program) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUseProgram( program = ", program, ", )"
 *     cgl.glUseProgram ( program)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUseProgram(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_program) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUseProgram", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":644
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glUseProgram (GLuint program) with gil:
 *     print "GL glUseProgram( program = ", program, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glUseProgram ( program)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_program); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 644; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 644; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_200));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_200));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_200));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 644; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":645
 * cdef void  glUseProgram (GLuint program) with gil:
 *     print "GL glUseProgram( program = ", program, ", )"
 *     cgl.glUseProgram ( program)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glUseProgram(__pyx_v_program);

  /* "kivy\graphics\c_opengl_debug.pyx":646
 *     print "GL glUseProgram( program = ", program, ", )"
 *     cgl.glUseProgram ( program)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glValidateProgram (GLuint program) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":647
 *     cgl.glUseProgram ( program)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glValidateProgram (GLuint program) with gil:
 *     print "GL glValidateProgram( program = ", program, ", )"
 */
  __pyx_t_3 = (__pyx_v_ret != 0);
  if (__pyx_t_3) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 647; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 647; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 647; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 647; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 647; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glUseProgram", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":648
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glValidateProgram (GLuint program) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glValidateProgram( program = ", program, ", )"
 *     cgl.glValidateProgram ( program)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glValidateProgram(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_program) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_t_3;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glValidateProgram", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":649
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glValidateProgram (GLuint program) with gil:
 *     print "GL glValidateProgram( program = ", program, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glValidateProgram ( program)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_program); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 649; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 649; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_201));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_201));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_201));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 649; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":650
 * cdef void  glValidateProgram (GLuint program) with gil:
 *     print "GL glValidateProgram( program = ", program, ", )"
 *     cgl.glValidateProgram ( program)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glValidateProgram(__pyx_v_program);

  /* "kivy\graphics\c_opengl_debug.pyx":651
 *     print "GL glValidateProgram( program = ", program, ", )"
 *     cgl.glValidateProgram ( program)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib1f (GLuint indx, GLfloat x) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":652
 *     cgl.glValidateProgram ( program)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glVertexAttrib1f (GLuint indx, GLfloat x) with gil:
 *     print "GL glVertexAttrib1f( indx = ", indx, ", x = ", x, ", )"
 */
  __pyx_t_3 = (__pyx_v_ret != 0);
  if (__pyx_t_3) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 652; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 652; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 652; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    __pyx_t_2 = 0;
    __pyx_t_1 = 0;
    __pyx_t_1 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 652; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_1));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 652; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glValidateProgram", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":653
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib1f (GLuint indx, GLfloat x) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glVertexAttrib1f( indx = ", indx, ", x = ", x, ", )"
 *     cgl.glVertexAttrib1f ( indx, x)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glVertexAttrib1f(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_indx, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat __pyx_v_x) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glVertexAttrib1f", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":654
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib1f (GLuint indx, GLfloat x) with gil:
 *     print "GL glVertexAttrib1f( indx = ", indx, ", x = ", x, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glVertexAttrib1f ( indx, x)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_indx); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 654; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_x); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 654; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(5); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 654; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_202));
  PyTuple_SET_ITEM(__pyx_t_3, 0, ((PyObject *)__pyx_kp_s_202));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_202));
  PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_54));
  PyTuple_SET_ITEM(__pyx_t_3, 2, ((PyObject *)__pyx_kp_s_54));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_54));
  PyTuple_SET_ITEM(__pyx_t_3, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_3, 4, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_3), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 654; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":655
 * cdef void  glVertexAttrib1f (GLuint indx, GLfloat x) with gil:
 *     print "GL glVertexAttrib1f( indx = ", indx, ", x = ", x, ", )"
 *     cgl.glVertexAttrib1f ( indx, x)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glVertexAttrib1f(__pyx_v_indx, __pyx_v_x);

  /* "kivy\graphics\c_opengl_debug.pyx":656
 *     print "GL glVertexAttrib1f( indx = ", indx, ", x = ", x, ", )"
 *     cgl.glVertexAttrib1f ( indx, x)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib1fv (GLuint indx,  GLfloat* values) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":657
 *     cgl.glVertexAttrib1f ( indx, x)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glVertexAttrib1fv (GLuint indx,  GLfloat* values) with gil:
 *     print "GL glVertexAttrib1fv( indx = ", indx, ", values*=", repr(hex(<long> values)), ", )"
 */
  __pyx_t_4 = (__pyx_v_ret != 0);
  if (__pyx_t_4) {
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 657; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 657; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 657; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_3 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 657; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 657; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glVertexAttrib1f", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":658
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib1fv (GLuint indx,  GLfloat* values) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glVertexAttrib1fv( indx = ", indx, ", values*=", repr(hex(<long> values)), ", )"
 *     cgl.glVertexAttrib1fv ( indx, values)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glVertexAttrib1fv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_indx, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *__pyx_v_values) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glVertexAttrib1fv", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":659
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib1fv (GLuint indx,  GLfloat* values) with gil:
 *     print "GL glVertexAttrib1fv( indx = ", indx, ", values*=", repr(hex(<long> values)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glVertexAttrib1fv ( indx, values)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_indx); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 659; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(((long)__pyx_v_values)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 659; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 659; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;
  __pyx_t_2 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 659; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Repr(__pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 659; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(5); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 659; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_203));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_203));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_203));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_204));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_204));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_204));
  PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 4, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_3 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 659; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":660
 * cdef void  glVertexAttrib1fv (GLuint indx,  GLfloat* values) with gil:
 *     print "GL glVertexAttrib1fv( indx = ", indx, ", values*=", repr(hex(<long> values)), ", )"
 *     cgl.glVertexAttrib1fv ( indx, values)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glVertexAttrib1fv(__pyx_v_indx, __pyx_v_values);

  /* "kivy\graphics\c_opengl_debug.pyx":661
 *     print "GL glVertexAttrib1fv( indx = ", indx, ", values*=", repr(hex(<long> values)), ", )"
 *     cgl.glVertexAttrib1fv ( indx, values)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib2f (GLuint indx, GLfloat x, GLfloat y) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":662
 *     cgl.glVertexAttrib1fv ( indx, values)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glVertexAttrib2f (GLuint indx, GLfloat x, GLfloat y) with gil:
 *     print "GL glVertexAttrib2f( indx = ", indx, ", x = ", x, ", y = ", y, ", )"
 */
  __pyx_t_4 = (__pyx_v_ret != 0);
  if (__pyx_t_4) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 662; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 662; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 662; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_2 = 0;
    __pyx_t_3 = 0;
    __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 662; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 662; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glVertexAttrib1fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":663
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib2f (GLuint indx, GLfloat x, GLfloat y) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glVertexAttrib2f( indx = ", indx, ", x = ", x, ", y = ", y, ", )"
 *     cgl.glVertexAttrib2f ( indx, x, y)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glVertexAttrib2f(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_indx, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat __pyx_v_x, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat __pyx_v_y) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glVertexAttrib2f", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":664
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib2f (GLuint indx, GLfloat x, GLfloat y) with gil:
 *     print "GL glVertexAttrib2f( indx = ", indx, ", x = ", x, ", y = ", y, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glVertexAttrib2f ( indx, x, y)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_indx); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 664; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_x); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 664; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_y); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 664; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(7); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 664; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_205));
  PyTuple_SET_ITEM(__pyx_t_4, 0, ((PyObject *)__pyx_kp_s_205));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_205));
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_54));
  PyTuple_SET_ITEM(__pyx_t_4, 2, ((PyObject *)__pyx_kp_s_54));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_54));
  PyTuple_SET_ITEM(__pyx_t_4, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_55));
  PyTuple_SET_ITEM(__pyx_t_4, 4, ((PyObject *)__pyx_kp_s_55));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_55));
  PyTuple_SET_ITEM(__pyx_t_4, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_4, 6, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_4), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 664; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":665
 * cdef void  glVertexAttrib2f (GLuint indx, GLfloat x, GLfloat y) with gil:
 *     print "GL glVertexAttrib2f( indx = ", indx, ", x = ", x, ", y = ", y, ", )"
 *     cgl.glVertexAttrib2f ( indx, x, y)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glVertexAttrib2f(__pyx_v_indx, __pyx_v_x, __pyx_v_y);

  /* "kivy\graphics\c_opengl_debug.pyx":666
 *     print "GL glVertexAttrib2f( indx = ", indx, ", x = ", x, ", y = ", y, ", )"
 *     cgl.glVertexAttrib2f ( indx, x, y)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib2fv (GLuint indx,  GLfloat* values) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":667
 *     cgl.glVertexAttrib2f ( indx, x, y)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glVertexAttrib2fv (GLuint indx,  GLfloat* values) with gil:
 *     print "GL glVertexAttrib2fv( indx = ", indx, ", values*=", repr(hex(<long> values)), ", )"
 */
  __pyx_t_5 = (__pyx_v_ret != 0);
  if (__pyx_t_5) {
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 667; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 667; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 667; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_4 = 0;
    __pyx_t_3 = 0;
    __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_2)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 667; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 667; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glVertexAttrib2f", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":668
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib2fv (GLuint indx,  GLfloat* values) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glVertexAttrib2fv( indx = ", indx, ", values*=", repr(hex(<long> values)), ", )"
 *     cgl.glVertexAttrib2fv ( indx, values)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glVertexAttrib2fv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_indx, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *__pyx_v_values) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glVertexAttrib2fv", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":669
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib2fv (GLuint indx,  GLfloat* values) with gil:
 *     print "GL glVertexAttrib2fv( indx = ", indx, ", values*=", repr(hex(<long> values)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glVertexAttrib2fv ( indx, values)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_indx); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 669; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(((long)__pyx_v_values)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 669; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 669; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;
  __pyx_t_2 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 669; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Repr(__pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 669; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(5); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 669; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_206));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_206));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_206));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_204));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_204));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_204));
  PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 4, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_3 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 669; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":670
 * cdef void  glVertexAttrib2fv (GLuint indx,  GLfloat* values) with gil:
 *     print "GL glVertexAttrib2fv( indx = ", indx, ", values*=", repr(hex(<long> values)), ", )"
 *     cgl.glVertexAttrib2fv ( indx, values)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glVertexAttrib2fv(__pyx_v_indx, __pyx_v_values);

  /* "kivy\graphics\c_opengl_debug.pyx":671
 *     print "GL glVertexAttrib2fv( indx = ", indx, ", values*=", repr(hex(<long> values)), ", )"
 *     cgl.glVertexAttrib2fv ( indx, values)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib3f (GLuint indx, GLfloat x, GLfloat y, GLfloat z) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":672
 *     cgl.glVertexAttrib2fv ( indx, values)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glVertexAttrib3f (GLuint indx, GLfloat x, GLfloat y, GLfloat z) with gil:
 *     print "GL glVertexAttrib3f( indx = ", indx, ", x = ", x, ", y = ", y, ", z = ", z, ", )"
 */
  __pyx_t_4 = (__pyx_v_ret != 0);
  if (__pyx_t_4) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 672; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 672; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 672; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_2 = 0;
    __pyx_t_3 = 0;
    __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 672; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 672; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glVertexAttrib2fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":673
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib3f (GLuint indx, GLfloat x, GLfloat y, GLfloat z) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glVertexAttrib3f( indx = ", indx, ", x = ", x, ", y = ", y, ", z = ", z, ", )"
 *     cgl.glVertexAttrib3f ( indx, x, y, z)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glVertexAttrib3f(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_indx, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat __pyx_v_x, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat __pyx_v_y, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat __pyx_v_z) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glVertexAttrib3f", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":674
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib3f (GLuint indx, GLfloat x, GLfloat y, GLfloat z) with gil:
 *     print "GL glVertexAttrib3f( indx = ", indx, ", x = ", x, ", y = ", y, ", z = ", z, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glVertexAttrib3f ( indx, x, y, z)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_indx); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 674; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_x); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 674; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_y); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 674; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_z); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 674; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(9); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 674; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_207));
  PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)__pyx_kp_s_207));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_207));
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_54));
  PyTuple_SET_ITEM(__pyx_t_5, 2, ((PyObject *)__pyx_kp_s_54));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_54));
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_55));
  PyTuple_SET_ITEM(__pyx_t_5, 4, ((PyObject *)__pyx_kp_s_55));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_55));
  PyTuple_SET_ITEM(__pyx_t_5, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_186));
  PyTuple_SET_ITEM(__pyx_t_5, 6, ((PyObject *)__pyx_kp_s_186));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_186));
  PyTuple_SET_ITEM(__pyx_t_5, 7, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_5, 8, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_5), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 674; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":675
 * cdef void  glVertexAttrib3f (GLuint indx, GLfloat x, GLfloat y, GLfloat z) with gil:
 *     print "GL glVertexAttrib3f( indx = ", indx, ", x = ", x, ", y = ", y, ", z = ", z, ", )"
 *     cgl.glVertexAttrib3f ( indx, x, y, z)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glVertexAttrib3f(__pyx_v_indx, __pyx_v_x, __pyx_v_y, __pyx_v_z);

  /* "kivy\graphics\c_opengl_debug.pyx":676
 *     print "GL glVertexAttrib3f( indx = ", indx, ", x = ", x, ", y = ", y, ", z = ", z, ", )"
 *     cgl.glVertexAttrib3f ( indx, x, y, z)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib3fv (GLuint indx,  GLfloat* values) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":677
 *     cgl.glVertexAttrib3f ( indx, x, y, z)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glVertexAttrib3fv (GLuint indx,  GLfloat* values) with gil:
 *     print "GL glVertexAttrib3fv( indx = ", indx, ", values*=", repr(hex(<long> values)), ", )"
 */
  __pyx_t_6 = (__pyx_v_ret != 0);
  if (__pyx_t_6) {
    __pyx_t_5 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 677; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 677; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 677; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_5 = 0;
    __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 677; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_4)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 677; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glVertexAttrib3f", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":678
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib3fv (GLuint indx,  GLfloat* values) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glVertexAttrib3fv( indx = ", indx, ", values*=", repr(hex(<long> values)), ", )"
 *     cgl.glVertexAttrib3fv ( indx, values)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glVertexAttrib3fv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_indx, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *__pyx_v_values) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glVertexAttrib3fv", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":679
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib3fv (GLuint indx,  GLfloat* values) with gil:
 *     print "GL glVertexAttrib3fv( indx = ", indx, ", values*=", repr(hex(<long> values)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glVertexAttrib3fv ( indx, values)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_indx); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 679; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(((long)__pyx_v_values)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 679; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 679; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;
  __pyx_t_2 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 679; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Repr(__pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 679; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(5); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 679; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_208));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_208));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_208));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_204));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_204));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_204));
  PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 4, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_3 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 679; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":680
 * cdef void  glVertexAttrib3fv (GLuint indx,  GLfloat* values) with gil:
 *     print "GL glVertexAttrib3fv( indx = ", indx, ", values*=", repr(hex(<long> values)), ", )"
 *     cgl.glVertexAttrib3fv ( indx, values)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glVertexAttrib3fv(__pyx_v_indx, __pyx_v_values);

  /* "kivy\graphics\c_opengl_debug.pyx":681
 *     print "GL glVertexAttrib3fv( indx = ", indx, ", values*=", repr(hex(<long> values)), ", )"
 *     cgl.glVertexAttrib3fv ( indx, values)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib4f (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":682
 *     cgl.glVertexAttrib3fv ( indx, values)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glVertexAttrib4f (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) with gil:
 *     print "GL glVertexAttrib4f( indx = ", indx, ", x = ", x, ", y = ", y, ", z = ", z, ", w = ", w, ", )"
 */
  __pyx_t_4 = (__pyx_v_ret != 0);
  if (__pyx_t_4) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 682; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 682; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 682; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_2 = 0;
    __pyx_t_3 = 0;
    __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 682; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 682; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glVertexAttrib3fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":683
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib4f (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glVertexAttrib4f( indx = ", indx, ", x = ", x, ", y = ", y, ", z = ", z, ", w = ", w, ", )"
 *     cgl.glVertexAttrib4f ( indx, x, y, z, w)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glVertexAttrib4f(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_indx, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat __pyx_v_x, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat __pyx_v_y, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat __pyx_v_z, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat __pyx_v_w) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  int __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glVertexAttrib4f", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":684
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib4f (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) with gil:
 *     print "GL glVertexAttrib4f( indx = ", indx, ", x = ", x, ", y = ", y, ", z = ", z, ", w = ", w, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glVertexAttrib4f ( indx, x, y, z, w)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_indx); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 684; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_x); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 684; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_y); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 684; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_z); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 684; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_w); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 684; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyTuple_New(11); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 684; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_209));
  PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)__pyx_kp_s_209));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_209));
  PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_54));
  PyTuple_SET_ITEM(__pyx_t_6, 2, ((PyObject *)__pyx_kp_s_54));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_54));
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_55));
  PyTuple_SET_ITEM(__pyx_t_6, 4, ((PyObject *)__pyx_kp_s_55));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_55));
  PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_186));
  PyTuple_SET_ITEM(__pyx_t_6, 6, ((PyObject *)__pyx_kp_s_186));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_186));
  PyTuple_SET_ITEM(__pyx_t_6, 7, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_191));
  PyTuple_SET_ITEM(__pyx_t_6, 8, ((PyObject *)__pyx_kp_s_191));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_191));
  PyTuple_SET_ITEM(__pyx_t_6, 9, __pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_6, 10, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_6), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 684; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":685
 * cdef void  glVertexAttrib4f (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) with gil:
 *     print "GL glVertexAttrib4f( indx = ", indx, ", x = ", x, ", y = ", y, ", z = ", z, ", w = ", w, ", )"
 *     cgl.glVertexAttrib4f ( indx, x, y, z, w)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glVertexAttrib4f(__pyx_v_indx, __pyx_v_x, __pyx_v_y, __pyx_v_z, __pyx_v_w);

  /* "kivy\graphics\c_opengl_debug.pyx":686
 *     print "GL glVertexAttrib4f( indx = ", indx, ", x = ", x, ", y = ", y, ", z = ", z, ", w = ", w, ", )"
 *     cgl.glVertexAttrib4f ( indx, x, y, z, w)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib4fv (GLuint indx,  GLfloat* values) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":687
 *     cgl.glVertexAttrib4f ( indx, x, y, z, w)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glVertexAttrib4fv (GLuint indx,  GLfloat* values) with gil:
 *     print "GL glVertexAttrib4fv( indx = ", indx, ", values*=", repr(hex(<long> values)), ", )"
 */
  __pyx_t_7 = (__pyx_v_ret != 0);
  if (__pyx_t_7) {
    __pyx_t_6 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 687; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_5 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 687; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 687; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    __pyx_t_6 = 0;
    __pyx_t_5 = 0;
    __pyx_t_5 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_4)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 687; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_5));
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_5)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 687; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glVertexAttrib4f", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":688
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib4fv (GLuint indx,  GLfloat* values) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glVertexAttrib4fv( indx = ", indx, ", values*=", repr(hex(<long> values)), ", )"
 *     cgl.glVertexAttrib4fv ( indx, values)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glVertexAttrib4fv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_indx, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *__pyx_v_values) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glVertexAttrib4fv", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":689
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib4fv (GLuint indx,  GLfloat* values) with gil:
 *     print "GL glVertexAttrib4fv( indx = ", indx, ", values*=", repr(hex(<long> values)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glVertexAttrib4fv ( indx, values)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_indx); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 689; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(((long)__pyx_v_values)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 689; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 689; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __pyx_t_2 = 0;
  __pyx_t_2 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_3), NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 689; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
  __pyx_t_3 = PyObject_Repr(__pyx_t_2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 689; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = PyTuple_New(5); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 689; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_210));
  PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_kp_s_210));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_210));
  PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_204));
  PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_kp_s_204));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_204));
  PyTuple_SET_ITEM(__pyx_t_2, 3, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_2, 4, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_3 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_2), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 689; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":690
 * cdef void  glVertexAttrib4fv (GLuint indx,  GLfloat* values) with gil:
 *     print "GL glVertexAttrib4fv( indx = ", indx, ", values*=", repr(hex(<long> values)), ", )"
 *     cgl.glVertexAttrib4fv ( indx, values)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glVertexAttrib4fv(__pyx_v_indx, __pyx_v_values);

  /* "kivy\graphics\c_opengl_debug.pyx":691
 *     print "GL glVertexAttrib4fv( indx = ", indx, ", values*=", repr(hex(<long> values)), ", )"
 *     cgl.glVertexAttrib4fv ( indx, values)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glVertexAttribPointer (GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride,  GLvoid* ptr) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":692
 *     cgl.glVertexAttrib4fv ( indx, values)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glVertexAttribPointer (GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride,  GLvoid* ptr) with gil:
 *     print "GL glVertexAttribPointer( indx = ", indx, ", size = ", size, ", type = ", type, ", normalized = ", normalized, ", stride = ", stride, ", ptr*=", repr(hex(<long> ptr)), ", )"
 */
  __pyx_t_4 = (__pyx_v_ret != 0);
  if (__pyx_t_4) {
    __pyx_t_2 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 692; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 692; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 692; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_3);
    __Pyx_GIVEREF(__pyx_t_3);
    __pyx_t_2 = 0;
    __pyx_t_3 = 0;
    __pyx_t_3 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_1)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 692; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 692; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glVertexAttrib4fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":693
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glVertexAttribPointer (GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride,  GLvoid* ptr) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glVertexAttribPointer( indx = ", indx, ", size = ", size, ", type = ", type, ", normalized = ", normalized, ", stride = ", stride, ", ptr*=", repr(hex(<long> ptr)), ", )"
 *     cgl.glVertexAttribPointer ( indx, size, type, normalized, stride, ptr)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glVertexAttribPointer(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_indx, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_size, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_type, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean __pyx_v_normalized, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_stride, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLvoid *__pyx_v_ptr) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  int __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glVertexAttribPointer", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":694
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glVertexAttribPointer (GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride,  GLvoid* ptr) with gil:
 *     print "GL glVertexAttribPointer( indx = ", indx, ", size = ", size, ", type = ", type, ", normalized = ", normalized, ", stride = ", stride, ", ptr*=", repr(hex(<long> ptr)), ", )"             # <<<<<<<<<<<<<<
 *     cgl.glVertexAttribPointer ( indx, size, type, normalized, stride, ptr)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_indx); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 694; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_size); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 694; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyLong_FromUnsignedLong(__pyx_v_type); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 694; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromLong(__pyx_v_normalized); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 694; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyInt_FromLong(__pyx_v_stride); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 694; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyInt_FromLong(((long)__pyx_v_ptr)); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 694; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = PyTuple_New(1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 694; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_7);
  PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6);
  __Pyx_GIVEREF(__pyx_t_6);
  __pyx_t_6 = 0;
  __pyx_t_6 = PyObject_Call(__pyx_builtin_hex, ((PyObject *)__pyx_t_7), NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 694; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;
  __pyx_t_7 = PyObject_Repr(__pyx_t_6); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 694; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyTuple_New(13); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 694; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_211));
  PyTuple_SET_ITEM(__pyx_t_6, 0, ((PyObject *)__pyx_kp_s_211));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_211));
  PyTuple_SET_ITEM(__pyx_t_6, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_31));
  PyTuple_SET_ITEM(__pyx_t_6, 2, ((PyObject *)__pyx_kp_s_31));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_31));
  PyTuple_SET_ITEM(__pyx_t_6, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_79));
  PyTuple_SET_ITEM(__pyx_t_6, 4, ((PyObject *)__pyx_kp_s_79));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_79));
  PyTuple_SET_ITEM(__pyx_t_6, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_212));
  PyTuple_SET_ITEM(__pyx_t_6, 6, ((PyObject *)__pyx_kp_s_212));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_212));
  PyTuple_SET_ITEM(__pyx_t_6, 7, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_213));
  PyTuple_SET_ITEM(__pyx_t_6, 8, ((PyObject *)__pyx_kp_s_213));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_213));
  PyTuple_SET_ITEM(__pyx_t_6, 9, __pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_214));
  PyTuple_SET_ITEM(__pyx_t_6, 10, ((PyObject *)__pyx_kp_s_214));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_214));
  PyTuple_SET_ITEM(__pyx_t_6, 11, __pyx_t_7);
  __Pyx_GIVEREF(__pyx_t_7);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_6, 12, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_t_5 = 0;
  __pyx_t_7 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_6), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 694; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_6)); __pyx_t_6 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":695
 * cdef void  glVertexAttribPointer (GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride,  GLvoid* ptr) with gil:
 *     print "GL glVertexAttribPointer( indx = ", indx, ", size = ", size, ", type = ", type, ", normalized = ", normalized, ", stride = ", stride, ", ptr*=", repr(hex(<long> ptr)), ", )"
 *     cgl.glVertexAttribPointer ( indx, size, type, normalized, stride, ptr)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glVertexAttribPointer(__pyx_v_indx, __pyx_v_size, __pyx_v_type, __pyx_v_normalized, __pyx_v_stride, __pyx_v_ptr);

  /* "kivy\graphics\c_opengl_debug.pyx":696
 *     print "GL glVertexAttribPointer( indx = ", indx, ", size = ", size, ", type = ", type, ", normalized = ", normalized, ", stride = ", stride, ", ptr*=", repr(hex(<long> ptr)), ", )"
 *     cgl.glVertexAttribPointer ( indx, size, type, normalized, stride, ptr)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glViewport (GLint x, GLint y, GLsizei width, GLsizei height) with gil:
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":697
 *     cgl.glVertexAttribPointer ( indx, size, type, normalized, stride, ptr)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glViewport (GLint x, GLint y, GLsizei width, GLsizei height) with gil:
 *     print "GL glViewport( x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", )"
 */
  __pyx_t_8 = (__pyx_v_ret != 0);
  if (__pyx_t_8) {
    __pyx_t_6 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 697; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 697; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_7);
    __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 697; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_6);
    __Pyx_GIVEREF(__pyx_t_6);
    PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_7);
    __Pyx_GIVEREF(__pyx_t_7);
    __pyx_t_6 = 0;
    __pyx_t_7 = 0;
    __pyx_t_7 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_5)); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 697; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_7));
    __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_7)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 697; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_7)); __pyx_t_7 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glVertexAttribPointer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

/* "kivy\graphics\c_opengl_debug.pyx":698
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glViewport (GLint x, GLint y, GLsizei width, GLsizei height) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glViewport( x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", )"
 *     cgl.glViewport ( x, y, width, height)
 */

static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glViewport(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_x, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_y, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_width, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_height) {
  GLenum __pyx_v_ret;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  int __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  #ifdef WITH_THREAD
  PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glViewport", 0);

  /* "kivy\graphics\c_opengl_debug.pyx":699
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 * cdef void  glViewport (GLint x, GLint y, GLsizei width, GLsizei height) with gil:
 *     print "GL glViewport( x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", )"             # <<<<<<<<<<<<<<
 *     cgl.glViewport ( x, y, width, height)
 *     ret = cgl.glGetError()
 */
  __pyx_t_1 = PyInt_FromLong(__pyx_v_x); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 699; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_t_2 = PyInt_FromLong(__pyx_v_y); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 699; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyInt_FromLong(__pyx_v_width); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 699; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyInt_FromLong(__pyx_v_height); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 699; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(9); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 699; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_215));
  PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)__pyx_kp_s_215));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_215));
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1);
  __Pyx_GIVEREF(__pyx_t_1);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_55));
  PyTuple_SET_ITEM(__pyx_t_5, 2, ((PyObject *)__pyx_kp_s_55));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_55));
  PyTuple_SET_ITEM(__pyx_t_5, 3, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_2);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_45));
  PyTuple_SET_ITEM(__pyx_t_5, 4, ((PyObject *)__pyx_kp_s_45));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_45));
  PyTuple_SET_ITEM(__pyx_t_5, 5, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_3);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_46));
  PyTuple_SET_ITEM(__pyx_t_5, 6, ((PyObject *)__pyx_kp_s_46));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_46));
  PyTuple_SET_ITEM(__pyx_t_5, 7, __pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_4);
  __Pyx_INCREF(((PyObject *)__pyx_kp_s_2));
  PyTuple_SET_ITEM(__pyx_t_5, 8, ((PyObject *)__pyx_kp_s_2));
  __Pyx_GIVEREF(((PyObject *)__pyx_kp_s_2));
  __pyx_t_1 = 0;
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  if (__Pyx_Print(0, ((PyObject *)__pyx_t_5), 1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 699; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_5)); __pyx_t_5 = 0;

  /* "kivy\graphics\c_opengl_debug.pyx":700
 * cdef void  glViewport (GLint x, GLint y, GLsizei width, GLsizei height) with gil:
 *     print "GL glViewport( x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", )"
 *     cgl.glViewport ( x, y, width, height)             # <<<<<<<<<<<<<<
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  glViewport(__pyx_v_x, __pyx_v_y, __pyx_v_width, __pyx_v_height);

  /* "kivy\graphics\c_opengl_debug.pyx":701
 *     print "GL glViewport( x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", )"
 *     cgl.glViewport ( x, y, width, height)
 *     ret = cgl.glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)
 */
  __pyx_v_ret = glGetError();

  /* "kivy\graphics\c_opengl_debug.pyx":702
 *     cgl.glViewport ( x, y, width, height)
 *     ret = cgl.glGetError()
 *     if ret: print "OpenGL Error %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 */
  __pyx_t_6 = (__pyx_v_ret != 0);
  if (__pyx_t_6) {
    __pyx_t_5 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 702; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_4 = __Pyx_PyInt_to_py_GLenum(__pyx_v_ret); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 702; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 702; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_3);
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_5);
    __Pyx_GIVEREF(__pyx_t_5);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_4);
    __Pyx_GIVEREF(__pyx_t_4);
    __pyx_t_5 = 0;
    __pyx_t_4 = 0;
    __pyx_t_4 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_3), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 702; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_4));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_4)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 702; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_4)); __pyx_t_4 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_WriteUnraisable("kivy.graphics.c_opengl_debug.glViewport", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(__pyx_gilstate_save);
  #endif
}

static PyMethodDef __pyx_methods[] = {
  {0, 0, 0, 0}
};

#if PY_MAJOR_VERSION >= 3
static struct PyModuleDef __pyx_moduledef = {
  #if PY_VERSION_HEX < 0x03020000
    { PyObject_HEAD_INIT(NULL) NULL, 0, NULL },
  #else
    PyModuleDef_HEAD_INIT,
  #endif
    __Pyx_NAMESTR("c_opengl_debug"),
    0, /* m_doc */
    -1, /* m_size */
    __pyx_methods /* m_methods */,
    NULL, /* m_reload */
    NULL, /* m_traverse */
    NULL, /* m_clear */
    NULL /* m_free */
};
#endif

static __Pyx_StringTabEntry __pyx_string_tab[] = {
  {&__pyx_kp_s_1, __pyx_k_1, sizeof(__pyx_k_1), 0, 0, 1, 0},
  {&__pyx_kp_s_10, __pyx_k_10, sizeof(__pyx_k_10), 0, 0, 1, 0},
  {&__pyx_kp_s_100, __pyx_k_100, sizeof(__pyx_k_100), 0, 0, 1, 0},
  {&__pyx_kp_s_101, __pyx_k_101, sizeof(__pyx_k_101), 0, 0, 1, 0},
  {&__pyx_kp_s_102, __pyx_k_102, sizeof(__pyx_k_102), 0, 0, 1, 0},
  {&__pyx_kp_s_103, __pyx_k_103, sizeof(__pyx_k_103), 0, 0, 1, 0},
  {&__pyx_kp_s_104, __pyx_k_104, sizeof(__pyx_k_104), 0, 0, 1, 0},
  {&__pyx_kp_s_105, __pyx_k_105, sizeof(__pyx_k_105), 0, 0, 1, 0},
  {&__pyx_kp_s_106, __pyx_k_106, sizeof(__pyx_k_106), 0, 0, 1, 0},
  {&__pyx_kp_s_107, __pyx_k_107, sizeof(__pyx_k_107), 0, 0, 1, 0},
  {&__pyx_kp_s_108, __pyx_k_108, sizeof(__pyx_k_108), 0, 0, 1, 0},
  {&__pyx_kp_s_109, __pyx_k_109, sizeof(__pyx_k_109), 0, 0, 1, 0},
  {&__pyx_kp_s_11, __pyx_k_11, sizeof(__pyx_k_11), 0, 0, 1, 0},
  {&__pyx_kp_s_110, __pyx_k_110, sizeof(__pyx_k_110), 0, 0, 1, 0},
  {&__pyx_kp_s_111, __pyx_k_111, sizeof(__pyx_k_111), 0, 0, 1, 0},
  {&__pyx_kp_s_112, __pyx_k_112, sizeof(__pyx_k_112), 0, 0, 1, 0},
  {&__pyx_kp_s_113, __pyx_k_113, sizeof(__pyx_k_113), 0, 0, 1, 0},
  {&__pyx_kp_s_114, __pyx_k_114, sizeof(__pyx_k_114), 0, 0, 1, 0},
  {&__pyx_kp_s_115, __pyx_k_115, sizeof(__pyx_k_115), 0, 0, 1, 0},
  {&__pyx_kp_s_116, __pyx_k_116, sizeof(__pyx_k_116), 0, 0, 1, 0},
  {&__pyx_kp_s_117, __pyx_k_117, sizeof(__pyx_k_117), 0, 0, 1, 0},
  {&__pyx_kp_s_118, __pyx_k_118, sizeof(__pyx_k_118), 0, 0, 1, 0},
  {&__pyx_kp_s_119, __pyx_k_119, sizeof(__pyx_k_119), 0, 0, 1, 0},
  {&__pyx_kp_s_12, __pyx_k_12, sizeof(__pyx_k_12), 0, 0, 1, 0},
  {&__pyx_kp_s_120, __pyx_k_120, sizeof(__pyx_k_120), 0, 0, 1, 0},
  {&__pyx_kp_s_121, __pyx_k_121, sizeof(__pyx_k_121), 0, 0, 1, 0},
  {&__pyx_kp_s_122, __pyx_k_122, sizeof(__pyx_k_122), 0, 0, 1, 0},
  {&__pyx_kp_s_123, __pyx_k_123, sizeof(__pyx_k_123), 0, 0, 1, 0},
  {&__pyx_kp_s_124, __pyx_k_124, sizeof(__pyx_k_124), 0, 0, 1, 0},
  {&__pyx_kp_s_125, __pyx_k_125, sizeof(__pyx_k_125), 0, 0, 1, 0},
  {&__pyx_kp_s_126, __pyx_k_126, sizeof(__pyx_k_126), 0, 0, 1, 0},
  {&__pyx_kp_s_127, __pyx_k_127, sizeof(__pyx_k_127), 0, 0, 1, 0},
  {&__pyx_kp_s_128, __pyx_k_128, sizeof(__pyx_k_128), 0, 0, 1, 0},
  {&__pyx_kp_s_129, __pyx_k_129, sizeof(__pyx_k_129), 0, 0, 1, 0},
  {&__pyx_kp_s_13, __pyx_k_13, sizeof(__pyx_k_13), 0, 0, 1, 0},
  {&__pyx_kp_s_130, __pyx_k_130, sizeof(__pyx_k_130), 0, 0, 1, 0},
  {&__pyx_kp_s_131, __pyx_k_131, sizeof(__pyx_k_131), 0, 0, 1, 0},
  {&__pyx_kp_s_132, __pyx_k_132, sizeof(__pyx_k_132), 0, 0, 1, 0},
  {&__pyx_kp_s_133, __pyx_k_133, sizeof(__pyx_k_133), 0, 0, 1, 0},
  {&__pyx_kp_s_134, __pyx_k_134, sizeof(__pyx_k_134), 0, 0, 1, 0},
  {&__pyx_kp_s_135, __pyx_k_135, sizeof(__pyx_k_135), 0, 0, 1, 0},
  {&__pyx_kp_s_136, __pyx_k_136, sizeof(__pyx_k_136), 0, 0, 1, 0},
  {&__pyx_kp_s_137, __pyx_k_137, sizeof(__pyx_k_137), 0, 0, 1, 0},
  {&__pyx_kp_s_138, __pyx_k_138, sizeof(__pyx_k_138), 0, 0, 1, 0},
  {&__pyx_kp_s_139, __pyx_k_139, sizeof(__pyx_k_139), 0, 0, 1, 0},
  {&__pyx_kp_s_14, __pyx_k_14, sizeof(__pyx_k_14), 0, 0, 1, 0},
  {&__pyx_kp_s_140, __pyx_k_140, sizeof(__pyx_k_140), 0, 0, 1, 0},
  {&__pyx_kp_s_141, __pyx_k_141, sizeof(__pyx_k_141), 0, 0, 1, 0},
  {&__pyx_kp_s_142, __pyx_k_142, sizeof(__pyx_k_142), 0, 0, 1, 0},
  {&__pyx_kp_s_143, __pyx_k_143, sizeof(__pyx_k_143), 0, 0, 1, 0},
  {&__pyx_kp_s_144, __pyx_k_144, sizeof(__pyx_k_144), 0, 0, 1, 0},
  {&__pyx_kp_s_145, __pyx_k_145, sizeof(__pyx_k_145), 0, 0, 1, 0},
  {&__pyx_kp_s_146, __pyx_k_146, sizeof(__pyx_k_146), 0, 0, 1, 0},
  {&__pyx_kp_s_147, __pyx_k_147, sizeof(__pyx_k_147), 0, 0, 1, 0},
  {&__pyx_kp_s_148, __pyx_k_148, sizeof(__pyx_k_148), 0, 0, 1, 0},
  {&__pyx_kp_s_149, __pyx_k_149, sizeof(__pyx_k_149), 0, 0, 1, 0},
  {&__pyx_kp_s_15, __pyx_k_15, sizeof(__pyx_k_15), 0, 0, 1, 0},
  {&__pyx_kp_s_150, __pyx_k_150, sizeof(__pyx_k_150), 0, 0, 1, 0},
  {&__pyx_kp_s_151, __pyx_k_151, sizeof(__pyx_k_151), 0, 0, 1, 0},
  {&__pyx_kp_s_152, __pyx_k_152, sizeof(__pyx_k_152), 0, 0, 1, 0},
  {&__pyx_kp_s_153, __pyx_k_153, sizeof(__pyx_k_153), 0, 0, 1, 0},
  {&__pyx_kp_s_154, __pyx_k_154, sizeof(__pyx_k_154), 0, 0, 1, 0},
  {&__pyx_kp_s_155, __pyx_k_155, sizeof(__pyx_k_155), 0, 0, 1, 0},
  {&__pyx_kp_s_156, __pyx_k_156, sizeof(__pyx_k_156), 0, 0, 1, 0},
  {&__pyx_kp_s_157, __pyx_k_157, sizeof(__pyx_k_157), 0, 0, 1, 0},
  {&__pyx_kp_s_158, __pyx_k_158, sizeof(__pyx_k_158), 0, 0, 1, 0},
  {&__pyx_kp_s_159, __pyx_k_159, sizeof(__pyx_k_159), 0, 0, 1, 0},
  {&__pyx_kp_s_16, __pyx_k_16, sizeof(__pyx_k_16), 0, 0, 1, 0},
  {&__pyx_kp_s_160, __pyx_k_160, sizeof(__pyx_k_160), 0, 0, 1, 0},
  {&__pyx_kp_s_161, __pyx_k_161, sizeof(__pyx_k_161), 0, 0, 1, 0},
  {&__pyx_kp_s_162, __pyx_k_162, sizeof(__pyx_k_162), 0, 0, 1, 0},
  {&__pyx_kp_s_163, __pyx_k_163, sizeof(__pyx_k_163), 0, 0, 1, 0},
  {&__pyx_kp_s_164, __pyx_k_164, sizeof(__pyx_k_164), 0, 0, 1, 0},
  {&__pyx_kp_s_165, __pyx_k_165, sizeof(__pyx_k_165), 0, 0, 1, 0},
  {&__pyx_kp_s_166, __pyx_k_166, sizeof(__pyx_k_166), 0, 0, 1, 0},
  {&__pyx_kp_s_167, __pyx_k_167, sizeof(__pyx_k_167), 0, 0, 1, 0},
  {&__pyx_kp_s_168, __pyx_k_168, sizeof(__pyx_k_168), 0, 0, 1, 0},
  {&__pyx_kp_s_169, __pyx_k_169, sizeof(__pyx_k_169), 0, 0, 1, 0},
  {&__pyx_kp_s_17, __pyx_k_17, sizeof(__pyx_k_17), 0, 0, 1, 0},
  {&__pyx_kp_s_170, __pyx_k_170, sizeof(__pyx_k_170), 0, 0, 1, 0},
  {&__pyx_kp_s_171, __pyx_k_171, sizeof(__pyx_k_171), 0, 0, 1, 0},
  {&__pyx_kp_s_172, __pyx_k_172, sizeof(__pyx_k_172), 0, 0, 1, 0},
  {&__pyx_kp_s_173, __pyx_k_173, sizeof(__pyx_k_173), 0, 0, 1, 0},
  {&__pyx_kp_s_174, __pyx_k_174, sizeof(__pyx_k_174), 0, 0, 1, 0},
  {&__pyx_kp_s_175, __pyx_k_175, sizeof(__pyx_k_175), 0, 0, 1, 0},
  {&__pyx_kp_s_176, __pyx_k_176, sizeof(__pyx_k_176), 0, 0, 1, 0},
  {&__pyx_kp_s_177, __pyx_k_177, sizeof(__pyx_k_177), 0, 0, 1, 0},
  {&__pyx_kp_s_178, __pyx_k_178, sizeof(__pyx_k_178), 0, 0, 1, 0},
  {&__pyx_kp_s_179, __pyx_k_179, sizeof(__pyx_k_179), 0, 0, 1, 0},
  {&__pyx_kp_s_18, __pyx_k_18, sizeof(__pyx_k_18), 0, 0, 1, 0},
  {&__pyx_kp_s_180, __pyx_k_180, sizeof(__pyx_k_180), 0, 0, 1, 0},
  {&__pyx_kp_s_181, __pyx_k_181, sizeof(__pyx_k_181), 0, 0, 1, 0},
  {&__pyx_kp_s_182, __pyx_k_182, sizeof(__pyx_k_182), 0, 0, 1, 0},
  {&__pyx_kp_s_183, __pyx_k_183, sizeof(__pyx_k_183), 0, 0, 1, 0},
  {&__pyx_kp_s_184, __pyx_k_184, sizeof(__pyx_k_184), 0, 0, 1, 0},
  {&__pyx_kp_s_185, __pyx_k_185, sizeof(__pyx_k_185), 0, 0, 1, 0},
  {&__pyx_kp_s_186, __pyx_k_186, sizeof(__pyx_k_186), 0, 0, 1, 0},
  {&__pyx_kp_s_187, __pyx_k_187, sizeof(__pyx_k_187), 0, 0, 1, 0},
  {&__pyx_kp_s_188, __pyx_k_188, sizeof(__pyx_k_188), 0, 0, 1, 0},
  {&__pyx_kp_s_189, __pyx_k_189, sizeof(__pyx_k_189), 0, 0, 1, 0},
  {&__pyx_kp_s_19, __pyx_k_19, sizeof(__pyx_k_19), 0, 0, 1, 0},
  {&__pyx_kp_s_190, __pyx_k_190, sizeof(__pyx_k_190), 0, 0, 1, 0},
  {&__pyx_kp_s_191, __pyx_k_191, sizeof(__pyx_k_191), 0, 0, 1, 0},
  {&__pyx_kp_s_192, __pyx_k_192, sizeof(__pyx_k_192), 0, 0, 1, 0},
  {&__pyx_kp_s_193, __pyx_k_193, sizeof(__pyx_k_193), 0, 0, 1, 0},
  {&__pyx_kp_s_194, __pyx_k_194, sizeof(__pyx_k_194), 0, 0, 1, 0},
  {&__pyx_kp_s_195, __pyx_k_195, sizeof(__pyx_k_195), 0, 0, 1, 0},
  {&__pyx_kp_s_196, __pyx_k_196, sizeof(__pyx_k_196), 0, 0, 1, 0},
  {&__pyx_kp_s_197, __pyx_k_197, sizeof(__pyx_k_197), 0, 0, 1, 0},
  {&__pyx_kp_s_198, __pyx_k_198, sizeof(__pyx_k_198), 0, 0, 1, 0},
  {&__pyx_kp_s_199, __pyx_k_199, sizeof(__pyx_k_199), 0, 0, 1, 0},
  {&__pyx_kp_s_2, __pyx_k_2, sizeof(__pyx_k_2), 0, 0, 1, 0},
  {&__pyx_kp_s_20, __pyx_k_20, sizeof(__pyx_k_20), 0, 0, 1, 0},
  {&__pyx_kp_s_200, __pyx_k_200, sizeof(__pyx_k_200), 0, 0, 1, 0},
  {&__pyx_kp_s_201, __pyx_k_201, sizeof(__pyx_k_201), 0, 0, 1, 0},
  {&__pyx_kp_s_202, __pyx_k_202, sizeof(__pyx_k_202), 0, 0, 1, 0},
  {&__pyx_kp_s_203, __pyx_k_203, sizeof(__pyx_k_203), 0, 0, 1, 0},
  {&__pyx_kp_s_204, __pyx_k_204, sizeof(__pyx_k_204), 0, 0, 1, 0},
  {&__pyx_kp_s_205, __pyx_k_205, sizeof(__pyx_k_205), 0, 0, 1, 0},
  {&__pyx_kp_s_206, __pyx_k_206, sizeof(__pyx_k_206), 0, 0, 1, 0},
  {&__pyx_kp_s_207, __pyx_k_207, sizeof(__pyx_k_207), 0, 0, 1, 0},
  {&__pyx_kp_s_208, __pyx_k_208, sizeof(__pyx_k_208), 0, 0, 1, 0},
  {&__pyx_kp_s_209, __pyx_k_209, sizeof(__pyx_k_209), 0, 0, 1, 0},
  {&__pyx_kp_s_21, __pyx_k_21, sizeof(__pyx_k_21), 0, 0, 1, 0},
  {&__pyx_kp_s_210, __pyx_k_210, sizeof(__pyx_k_210), 0, 0, 1, 0},
  {&__pyx_kp_s_211, __pyx_k_211, sizeof(__pyx_k_211), 0, 0, 1, 0},
  {&__pyx_kp_s_212, __pyx_k_212, sizeof(__pyx_k_212), 0, 0, 1, 0},
  {&__pyx_kp_s_213, __pyx_k_213, sizeof(__pyx_k_213), 0, 0, 1, 0},
  {&__pyx_kp_s_214, __pyx_k_214, sizeof(__pyx_k_214), 0, 0, 1, 0},
  {&__pyx_kp_s_215, __pyx_k_215, sizeof(__pyx_k_215), 0, 0, 1, 0},
  {&__pyx_kp_s_22, __pyx_k_22, sizeof(__pyx_k_22), 0, 0, 1, 0},
  {&__pyx_kp_s_23, __pyx_k_23, sizeof(__pyx_k_23), 0, 0, 1, 0},
  {&__pyx_kp_s_24, __pyx_k_24, sizeof(__pyx_k_24), 0, 0, 1, 0},
  {&__pyx_kp_s_25, __pyx_k_25, sizeof(__pyx_k_25), 0, 0, 1, 0},
  {&__pyx_kp_s_26, __pyx_k_26, sizeof(__pyx_k_26), 0, 0, 1, 0},
  {&__pyx_kp_s_27, __pyx_k_27, sizeof(__pyx_k_27), 0, 0, 1, 0},
  {&__pyx_kp_s_28, __pyx_k_28, sizeof(__pyx_k_28), 0, 0, 1, 0},
  {&__pyx_kp_s_29, __pyx_k_29, sizeof(__pyx_k_29), 0, 0, 1, 0},
  {&__pyx_kp_s_3, __pyx_k_3, sizeof(__pyx_k_3), 0, 0, 1, 0},
  {&__pyx_kp_s_30, __pyx_k_30, sizeof(__pyx_k_30), 0, 0, 1, 0},
  {&__pyx_kp_s_31, __pyx_k_31, sizeof(__pyx_k_31), 0, 0, 1, 0},
  {&__pyx_kp_s_32, __pyx_k_32, sizeof(__pyx_k_32), 0, 0, 1, 0},
  {&__pyx_kp_s_33, __pyx_k_33, sizeof(__pyx_k_33), 0, 0, 1, 0},
  {&__pyx_kp_s_34, __pyx_k_34, sizeof(__pyx_k_34), 0, 0, 1, 0},
  {&__pyx_kp_s_35, __pyx_k_35, sizeof(__pyx_k_35), 0, 0, 1, 0},
  {&__pyx_kp_s_36, __pyx_k_36, sizeof(__pyx_k_36), 0, 0, 1, 0},
  {&__pyx_kp_s_37, __pyx_k_37, sizeof(__pyx_k_37), 0, 0, 1, 0},
  {&__pyx_kp_s_38, __pyx_k_38, sizeof(__pyx_k_38), 0, 0, 1, 0},
  {&__pyx_kp_s_39, __pyx_k_39, sizeof(__pyx_k_39), 0, 0, 1, 0},
  {&__pyx_kp_s_4, __pyx_k_4, sizeof(__pyx_k_4), 0, 0, 1, 0},
  {&__pyx_kp_s_40, __pyx_k_40, sizeof(__pyx_k_40), 0, 0, 1, 0},
  {&__pyx_kp_s_41, __pyx_k_41, sizeof(__pyx_k_41), 0, 0, 1, 0},
  {&__pyx_kp_s_42, __pyx_k_42, sizeof(__pyx_k_42), 0, 0, 1, 0},
  {&__pyx_kp_s_43, __pyx_k_43, sizeof(__pyx_k_43), 0, 0, 1, 0},
  {&__pyx_kp_s_44, __pyx_k_44, sizeof(__pyx_k_44), 0, 0, 1, 0},
  {&__pyx_kp_s_45, __pyx_k_45, sizeof(__pyx_k_45), 0, 0, 1, 0},
  {&__pyx_kp_s_46, __pyx_k_46, sizeof(__pyx_k_46), 0, 0, 1, 0},
  {&__pyx_kp_s_47, __pyx_k_47, sizeof(__pyx_k_47), 0, 0, 1, 0},
  {&__pyx_kp_s_48, __pyx_k_48, sizeof(__pyx_k_48), 0, 0, 1, 0},
  {&__pyx_kp_s_49, __pyx_k_49, sizeof(__pyx_k_49), 0, 0, 1, 0},
  {&__pyx_kp_s_5, __pyx_k_5, sizeof(__pyx_k_5), 0, 0, 1, 0},
  {&__pyx_kp_s_50, __pyx_k_50, sizeof(__pyx_k_50), 0, 0, 1, 0},
  {&__pyx_kp_s_51, __pyx_k_51, sizeof(__pyx_k_51), 0, 0, 1, 0},
  {&__pyx_kp_s_52, __pyx_k_52, sizeof(__pyx_k_52), 0, 0, 1, 0},
  {&__pyx_kp_s_53, __pyx_k_53, sizeof(__pyx_k_53), 0, 0, 1, 0},
  {&__pyx_kp_s_54, __pyx_k_54, sizeof(__pyx_k_54), 0, 0, 1, 0},
  {&__pyx_kp_s_55, __pyx_k_55, sizeof(__pyx_k_55), 0, 0, 1, 0},
  {&__pyx_kp_s_56, __pyx_k_56, sizeof(__pyx_k_56), 0, 0, 1, 0},
  {&__pyx_kp_s_57, __pyx_k_57, sizeof(__pyx_k_57), 0, 0, 1, 0},
  {&__pyx_kp_s_58, __pyx_k_58, sizeof(__pyx_k_58), 0, 0, 1, 0},
  {&__pyx_kp_s_59, __pyx_k_59, sizeof(__pyx_k_59), 0, 0, 1, 0},
  {&__pyx_kp_s_6, __pyx_k_6, sizeof(__pyx_k_6), 0, 0, 1, 0},
  {&__pyx_kp_s_60, __pyx_k_60, sizeof(__pyx_k_60), 0, 0, 1, 0},
  {&__pyx_kp_s_61, __pyx_k_61, sizeof(__pyx_k_61), 0, 0, 1, 0},
  {&__pyx_kp_s_62, __pyx_k_62, sizeof(__pyx_k_62), 0, 0, 1, 0},
  {&__pyx_kp_s_63, __pyx_k_63, sizeof(__pyx_k_63), 0, 0, 1, 0},
  {&__pyx_kp_s_64, __pyx_k_64, sizeof(__pyx_k_64), 0, 0, 1, 0},
  {&__pyx_kp_s_65, __pyx_k_65, sizeof(__pyx_k_65), 0, 0, 1, 0},
  {&__pyx_kp_s_66, __pyx_k_66, sizeof(__pyx_k_66), 0, 0, 1, 0},
  {&__pyx_kp_s_67, __pyx_k_67, sizeof(__pyx_k_67), 0, 0, 1, 0},
  {&__pyx_kp_s_68, __pyx_k_68, sizeof(__pyx_k_68), 0, 0, 1, 0},
  {&__pyx_kp_s_69, __pyx_k_69, sizeof(__pyx_k_69), 0, 0, 1, 0},
  {&__pyx_kp_s_7, __pyx_k_7, sizeof(__pyx_k_7), 0, 0, 1, 0},
  {&__pyx_kp_s_70, __pyx_k_70, sizeof(__pyx_k_70), 0, 0, 1, 0},
  {&__pyx_kp_s_71, __pyx_k_71, sizeof(__pyx_k_71), 0, 0, 1, 0},
  {&__pyx_kp_s_72, __pyx_k_72, sizeof(__pyx_k_72), 0, 0, 1, 0},
  {&__pyx_kp_s_73, __pyx_k_73, sizeof(__pyx_k_73), 0, 0, 1, 0},
  {&__pyx_kp_s_74, __pyx_k_74, sizeof(__pyx_k_74), 0, 0, 1, 0},
  {&__pyx_kp_s_75, __pyx_k_75, sizeof(__pyx_k_75), 0, 0, 1, 0},
  {&__pyx_kp_s_76, __pyx_k_76, sizeof(__pyx_k_76), 0, 0, 1, 0},
  {&__pyx_kp_s_77, __pyx_k_77, sizeof(__pyx_k_77), 0, 0, 1, 0},
  {&__pyx_kp_s_78, __pyx_k_78, sizeof(__pyx_k_78), 0, 0, 1, 0},
  {&__pyx_kp_s_79, __pyx_k_79, sizeof(__pyx_k_79), 0, 0, 1, 0},
  {&__pyx_kp_s_8, __pyx_k_8, sizeof(__pyx_k_8), 0, 0, 1, 0},
  {&__pyx_kp_s_80, __pyx_k_80, sizeof(__pyx_k_80), 0, 0, 1, 0},
  {&__pyx_kp_s_81, __pyx_k_81, sizeof(__pyx_k_81), 0, 0, 1, 0},
  {&__pyx_kp_s_82, __pyx_k_82, sizeof(__pyx_k_82), 0, 0, 1, 0},
  {&__pyx_kp_s_83, __pyx_k_83, sizeof(__pyx_k_83), 0, 0, 1, 0},
  {&__pyx_kp_s_84, __pyx_k_84, sizeof(__pyx_k_84), 0, 0, 1, 0},
  {&__pyx_kp_s_85, __pyx_k_85, sizeof(__pyx_k_85), 0, 0, 1, 0},
  {&__pyx_kp_s_86, __pyx_k_86, sizeof(__pyx_k_86), 0, 0, 1, 0},
  {&__pyx_kp_s_87, __pyx_k_87, sizeof(__pyx_k_87), 0, 0, 1, 0},
  {&__pyx_kp_s_88, __pyx_k_88, sizeof(__pyx_k_88), 0, 0, 1, 0},
  {&__pyx_kp_s_89, __pyx_k_89, sizeof(__pyx_k_89), 0, 0, 1, 0},
  {&__pyx_kp_s_9, __pyx_k_9, sizeof(__pyx_k_9), 0, 0, 1, 0},
  {&__pyx_kp_s_90, __pyx_k_90, sizeof(__pyx_k_90), 0, 0, 1, 0},
  {&__pyx_kp_s_91, __pyx_k_91, sizeof(__pyx_k_91), 0, 0, 1, 0},
  {&__pyx_kp_s_92, __pyx_k_92, sizeof(__pyx_k_92), 0, 0, 1, 0},
  {&__pyx_kp_s_93, __pyx_k_93, sizeof(__pyx_k_93), 0, 0, 1, 0},
  {&__pyx_kp_s_94, __pyx_k_94, sizeof(__pyx_k_94), 0, 0, 1, 0},
  {&__pyx_kp_s_95, __pyx_k_95, sizeof(__pyx_k_95), 0, 0, 1, 0},
  {&__pyx_kp_s_96, __pyx_k_96, sizeof(__pyx_k_96), 0, 0, 1, 0},
  {&__pyx_kp_s_97, __pyx_k_97, sizeof(__pyx_k_97), 0, 0, 1, 0},
  {&__pyx_kp_s_98, __pyx_k_98, sizeof(__pyx_k_98), 0, 0, 1, 0},
  {&__pyx_kp_s_99, __pyx_k_99, sizeof(__pyx_k_99), 0, 0, 1, 0},
  {&__pyx_n_s____main__, __pyx_k____main__, sizeof(__pyx_k____main__), 0, 0, 1, 1},
  {&__pyx_n_s____test__, __pyx_k____test__, sizeof(__pyx_k____test__), 0, 0, 1, 1},
  {&__pyx_n_s__end, __pyx_k__end, sizeof(__pyx_k__end), 0, 0, 1, 1},
  {&__pyx_n_s__file, __pyx_k__file, sizeof(__pyx_k__file), 0, 0, 1, 1},
  {&__pyx_n_s__hex, __pyx_k__hex, sizeof(__pyx_k__hex), 0, 0, 1, 1},
  {&__pyx_n_s__print, __pyx_k__print, sizeof(__pyx_k__print), 0, 0, 1, 1},
  {0, 0, 0, 0, 0, 0, 0}
};
static int __Pyx_InitCachedBuiltins(void) {
  __pyx_builtin_hex = __Pyx_GetBuiltinName(__pyx_n_s__hex); if (!__pyx_builtin_hex) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 18; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  return 0;
  __pyx_L1_error:;
  return -1;
}

static int __Pyx_InitCachedConstants(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0);
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_InitGlobals(void) {
  if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
  return 0;
  __pyx_L1_error:;
  return -1;
}

#if PY_MAJOR_VERSION < 3
PyMODINIT_FUNC initc_opengl_debug(void); /*proto*/
PyMODINIT_FUNC initc_opengl_debug(void)
#else
PyMODINIT_FUNC PyInit_c_opengl_debug(void); /*proto*/
PyMODINIT_FUNC PyInit_c_opengl_debug(void)
#endif
{
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  #if CYTHON_REFNANNY
  __Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny");
  if (!__Pyx_RefNanny) {
      PyErr_Clear();
      __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny");
      if (!__Pyx_RefNanny)
          Py_FatalError("failed to import 'refnanny' module");
  }
  #endif
  __Pyx_RefNannySetupContext("PyMODINIT_FUNC PyInit_c_opengl_debug(void)", 0);
  if ( __Pyx_check_binary_version() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  #ifdef __Pyx_CyFunction_USED
  if (__Pyx_CyFunction_init() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  #endif
  #ifdef __Pyx_FusedFunction_USED
  if (__pyx_FusedFunction_init() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  #endif
  #ifdef __Pyx_Generator_USED
  if (__pyx_Generator_init() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  #endif
  /*--- Library function declarations ---*/
  /*--- Threads initialization code ---*/
  #if defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS
  #ifdef WITH_THREAD /* Python build with threading support? */
  PyEval_InitThreads();
  #endif
  #endif
  /*--- Module creation code ---*/
  #if PY_MAJOR_VERSION < 3
  __pyx_m = Py_InitModule4(__Pyx_NAMESTR("c_opengl_debug"), __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m);
  #else
  __pyx_m = PyModule_Create(&__pyx_moduledef);
  #endif
  if (unlikely(!__pyx_m)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  Py_INCREF(__pyx_d);
  #if PY_MAJOR_VERSION >= 3
  {
    PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    if (!PyDict_GetItemString(modules, "kivy.graphics.c_opengl_debug")) {
      if (unlikely(PyDict_SetItemString(modules, "kivy.graphics.c_opengl_debug", __pyx_m) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    }
  }
  #endif
  __pyx_b = PyImport_AddModule(__Pyx_NAMESTR(__Pyx_BUILTIN_MODULE_NAME)); if (unlikely(!__pyx_b)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  #if CYTHON_COMPILING_IN_PYPY
  Py_INCREF(__pyx_b);
  #endif
  if (__Pyx_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
  /*--- Initialize various global constants etc. ---*/
  if (unlikely(__Pyx_InitGlobals() < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT)
  if (__Pyx_init_sys_getdefaultencoding_params() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  #endif
  if (__pyx_module_is_main_kivy__graphics__c_opengl_debug) {
    if (__Pyx_SetAttrString(__pyx_m, "__name__", __pyx_n_s____main__) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
  }
  /*--- Builtin init code ---*/
  if (unlikely(__Pyx_InitCachedBuiltins() < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  /*--- Constants init code ---*/
  if (unlikely(__Pyx_InitCachedConstants() < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  /*--- Global init code ---*/
  /*--- Variable export code ---*/
  /*--- Function export code ---*/
  if (__Pyx_ExportFunction("glActiveTexture", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glActiveTexture, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glAttachShader", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glAttachShader, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glBindAttribLocation", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glBindAttribLocation, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLchar *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glBindBuffer", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glBindBuffer, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glBindFramebuffer", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glBindFramebuffer, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glBindRenderbuffer", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glBindRenderbuffer, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glBindTexture", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glBindTexture, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glBlendColor", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glBlendColor, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLclampf, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLclampf, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLclampf, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLclampf)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glBlendEquation", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glBlendEquation, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glBlendEquationSeparate", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glBlendEquationSeparate, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glBlendFunc", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glBlendFunc, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glBlendFuncSeparate", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glBlendFuncSeparate, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glBufferData", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glBufferData, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizeiptr, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLvoid *, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glBufferSubData", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glBufferSubData, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLintptr, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizeiptr, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLvoid *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glCheckFramebufferStatus", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glCheckFramebufferStatus, "__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glClear", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glClear, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLbitfield)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glClearColor", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glClearColor, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLclampf, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLclampf, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLclampf, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLclampf)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glClearStencil", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glClearStencil, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glColorMask", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glColorMask, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glCompileShader", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glCompileShader, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glCompressedTexImage2D", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glCompressedTexImage2D, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLvoid *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glCompressedTexSubImage2D", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glCompressedTexSubImage2D, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLvoid *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glCopyTexImage2D", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glCopyTexImage2D, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glCopyTexSubImage2D", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glCopyTexSubImage2D, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glCreateProgram", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glCreateProgram, "__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint (void)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glCreateShader", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glCreateShader, "__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glCullFace", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glCullFace, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glDeleteBuffers", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glDeleteBuffers, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glDeleteFramebuffers", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glDeleteFramebuffers, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glDeleteProgram", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glDeleteProgram, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glDeleteRenderbuffers", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glDeleteRenderbuffers, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glDeleteShader", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glDeleteShader, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glDeleteTextures", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glDeleteTextures, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glDepthFunc", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glDepthFunc, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glDepthMask", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glDepthMask, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glDetachShader", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glDetachShader, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glDisable", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glDisable, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glDisableVertexAttribArray", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glDisableVertexAttribArray, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glDrawArrays", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glDrawArrays, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glDrawElements", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glDrawElements, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLvoid *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glEnable", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glEnable, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glEnableVertexAttribArray", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glEnableVertexAttribArray, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glFinish", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glFinish, "void (void)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glFlush", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glFlush, "void (void)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glFramebufferRenderbuffer", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glFramebufferRenderbuffer, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glFramebufferTexture2D", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glFramebufferTexture2D, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glFrontFace", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glFrontFace, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glGenBuffers", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glGenBuffers, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glGenerateMipmap", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glGenerateMipmap, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glGenFramebuffers", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glGenFramebuffers, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glGenRenderbuffers", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glGenRenderbuffers, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glGenTextures", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glGenTextures, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glGetActiveAttrib", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glGetActiveAttrib, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei *, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum *, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLchar *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glGetActiveUniform", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glGetActiveUniform, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei *, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum *, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLchar *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glGetAttachedShaders", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glGetAttachedShaders, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei *, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glGetAttribLocation", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glGetAttribLocation, "int (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLchar *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glGetBooleanv", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glGetBooleanv, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glGetBufferParameteriv", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glGetBufferParameteriv, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glGetError", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError, "__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum (void)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glGetFloatv", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glGetFloatv, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glGetFramebufferAttachmentParameteriv", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glGetFramebufferAttachmentParameteriv, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glGetIntegerv", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glGetIntegerv, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glGetProgramiv", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glGetProgramiv, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glGetProgramInfoLog", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glGetProgramInfoLog, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei *, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLchar *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glGetRenderbufferParameteriv", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glGetRenderbufferParameteriv, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glGetShaderiv", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glGetShaderiv, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glGetShaderInfoLog", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glGetShaderInfoLog, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei *, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLchar *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glGetShaderSource", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glGetShaderSource, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei *, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLchar *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glGetString", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glGetString, "__pyx_t_4kivy_8graphics_14c_opengl_debug_GLubyte *(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glGetTexParameterfv", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glGetTexParameterfv, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glGetTexParameteriv", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glGetTexParameteriv, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glGetUniformfv", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glGetUniformfv, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glGetUniformiv", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glGetUniformiv, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glGetUniformLocation", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glGetUniformLocation, "int (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLchar *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glGetVertexAttribfv", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glGetVertexAttribfv, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glGetVertexAttribiv", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glGetVertexAttribiv, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glGetVertexAttribPointerv", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glGetVertexAttribPointerv, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLvoid **)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glHint", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glHint, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glIsBuffer", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glIsBuffer, "__pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glIsEnabled", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glIsEnabled, "__pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glIsFramebuffer", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glIsFramebuffer, "__pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glIsProgram", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glIsProgram, "__pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glIsRenderbuffer", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glIsRenderbuffer, "__pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glIsShader", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glIsShader, "__pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glIsTexture", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glIsTexture, "__pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glLineWidth", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glLineWidth, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glLinkProgram", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glLinkProgram, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glPixelStorei", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glPixelStorei, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glPolygonOffset", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glPolygonOffset, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glReadPixels", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glReadPixels, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLvoid *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glRenderbufferStorage", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glRenderbufferStorage, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glSampleCoverage", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glSampleCoverage, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLclampf, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glScissor", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glScissor, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glShaderSource", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glShaderSource, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLchar **, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glStencilFunc", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glStencilFunc, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glStencilFuncSeparate", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glStencilFuncSeparate, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glStencilMask", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glStencilMask, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glStencilMaskSeparate", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glStencilMaskSeparate, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glStencilOp", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glStencilOp, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glStencilOpSeparate", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glStencilOpSeparate, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glTexImage2D", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glTexImage2D, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLvoid *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glTexParameterf", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glTexParameterf, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glTexParameterfv", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glTexParameterfv, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glTexParameteri", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glTexParameteri, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glTexParameteriv", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glTexParameteriv, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glTexSubImage2D", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glTexSubImage2D, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLvoid *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glUniform1f", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform1f, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glUniform1fv", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform1fv, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glUniform1i", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform1i, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glUniform1iv", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform1iv, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glUniform2f", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform2f, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glUniform2fv", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform2fv, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glUniform2i", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform2i, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glUniform2iv", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform2iv, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glUniform3f", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform3f, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glUniform3fv", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform3fv, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glUniform3i", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform3i, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glUniform3iv", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform3iv, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glUniform4f", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform4f, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glUniform4fv", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform4fv, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glUniform4i", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform4i, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glUniform4iv", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform4iv, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glUniformMatrix2fv", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glUniformMatrix2fv, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glUniformMatrix3fv", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glUniformMatrix3fv, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glUniformMatrix4fv", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glUniformMatrix4fv, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glUseProgram", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glUseProgram, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glValidateProgram", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glValidateProgram, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glVertexAttrib1f", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glVertexAttrib1f, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glVertexAttrib1fv", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glVertexAttrib1fv, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glVertexAttrib2f", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glVertexAttrib2f, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glVertexAttrib2fv", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glVertexAttrib2fv, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glVertexAttrib3f", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glVertexAttrib3f, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glVertexAttrib3fv", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glVertexAttrib3fv, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glVertexAttrib4f", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glVertexAttrib4f, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glVertexAttrib4fv", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glVertexAttrib4fv, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glVertexAttribPointer", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glVertexAttribPointer, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLvoid *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glViewport", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glViewport, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  /*--- Type init code ---*/
  /*--- Type import code ---*/
  /*--- Variable import code ---*/
  /*--- Function import code ---*/
  /*--- Execution code ---*/

  /* "c:\Users\tito\Desktop\Kivy-dev\kivy\Kivy-1.7.2-w32\Kivy-1.7.2\kivy\graphics\common.pxi":11
 *     ctypedef char* const_char_ptr "const char*"
 * 
 * cdef double pi = PI             # <<<<<<<<<<<<<<
 * cdef extern from "math.h":
 *     double cos(double) nogil
 */
  __pyx_v_4kivy_8graphics_14c_opengl_debug_pi = 3.141592653589793;

  /* "kivy\graphics\c_opengl_debug.pyx":2
 * 
 * # This file was automatically generated with kivy/tools/stub-gl-debug.py             # <<<<<<<<<<<<<<
 * include "common.pxi"
 * cimport kivy.graphics.c_opengl as cgl
 */
  __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
  if (PyDict_SetItem(__pyx_d, __pyx_n_s____test__, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_DECREF(((PyObject *)__pyx_t_1)); __pyx_t_1 = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  if (__pyx_m) {
    __Pyx_AddTraceback("init kivy.graphics.c_opengl_debug", __pyx_clineno, __pyx_lineno, __pyx_filename);
    Py_DECREF(__pyx_m); __pyx_m = 0;
  } else if (!PyErr_Occurred()) {
    PyErr_SetString(PyExc_ImportError, "init kivy.graphics.c_opengl_debug");
  }
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #if PY_MAJOR_VERSION < 3
  return;
  #else
  return __pyx_m;
  #endif
}

/* Runtime support code */
#if CYTHON_REFNANNY
static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) {
    PyObject *m = NULL, *p = NULL;
    void *r = NULL;
    m = PyImport_ImportModule((char *)modname);
    if (!m) goto end;
    p = PyObject_GetAttrString(m, (char *)"RefNannyAPI");
    if (!p) goto end;
    r = PyLong_AsVoidPtr(p);
end:
    Py_XDECREF(p);
    Py_XDECREF(m);
    return (__Pyx_RefNannyAPIStruct *)r;
}
#endif /* CYTHON_REFNANNY */

static PyObject *__Pyx_GetBuiltinName(PyObject *name) {
    PyObject* result = __Pyx_PyObject_GetAttrStr(__pyx_b, name);
    if (unlikely(!result)) {
        PyErr_Format(PyExc_NameError,
#if PY_MAJOR_VERSION >= 3
            "name '%U' is not defined", name);
#else
            "name '%s' is not defined", PyString_AS_STRING(name));
#endif
    }
    return result;
}

static CYTHON_INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb) {
#if CYTHON_COMPILING_IN_CPYTHON
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    PyThreadState *tstate = PyThreadState_GET();
    tmp_type = tstate->curexc_type;
    tmp_value = tstate->curexc_value;
    tmp_tb = tstate->curexc_traceback;
    tstate->curexc_type = type;
    tstate->curexc_value = value;
    tstate->curexc_traceback = tb;
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
#else
    PyErr_Restore(type, value, tb);
#endif
}
static CYTHON_INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb) {
#if CYTHON_COMPILING_IN_CPYTHON
    PyThreadState *tstate = PyThreadState_GET();
    *type = tstate->curexc_type;
    *value = tstate->curexc_value;
    *tb = tstate->curexc_traceback;
    tstate->curexc_type = 0;
    tstate->curexc_value = 0;
    tstate->curexc_traceback = 0;
#else
    PyErr_Fetch(type, value, tb);
#endif
}

static void __Pyx_WriteUnraisable(const char *name, CYTHON_UNUSED int clineno,
                                  CYTHON_UNUSED int lineno, CYTHON_UNUSED const char *filename) {
    PyObject *old_exc, *old_val, *old_tb;
    PyObject *ctx;
    __Pyx_ErrFetch(&old_exc, &old_val, &old_tb);
    #if PY_MAJOR_VERSION < 3
    ctx = PyString_FromString(name);
    #else
    ctx = PyUnicode_FromString(name);
    #endif
    __Pyx_ErrRestore(old_exc, old_val, old_tb);
    if (!ctx) {
        PyErr_WriteUnraisable(Py_None);
    } else {
        PyErr_WriteUnraisable(ctx);
        Py_DECREF(ctx);
    }
}

#if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION < 3
static PyObject *__Pyx_GetStdout(void) {
    PyObject *f = PySys_GetObject((char *)"stdout");
    if (!f) {
        PyErr_SetString(PyExc_RuntimeError, "lost sys.stdout");
    }
    return f;
}
static int __Pyx_Print(PyObject* f, PyObject *arg_tuple, int newline) {
    int i;
    if (!f) {
        if (!(f = __Pyx_GetStdout()))
            return -1;
    }
    Py_INCREF(f);
    for (i=0; i < PyTuple_GET_SIZE(arg_tuple); i++) {
        PyObject* v;
        if (PyFile_SoftSpace(f, 1)) {
            if (PyFile_WriteString(" ", f) < 0)
                goto error;
        }
        v = PyTuple_GET_ITEM(arg_tuple, i);
        if (PyFile_WriteObject(v, f, Py_PRINT_RAW) < 0)
            goto error;
        if (PyString_Check(v)) {
            char *s = PyString_AsString(v);
            Py_ssize_t len = PyString_Size(v);
            if (len > 0 &&
                isspace(Py_CHARMASK(s[len-1])) &&
                s[len-1] != ' ')
                    PyFile_SoftSpace(f, 0);
        }
    }
    if (newline) {
        if (PyFile_WriteString("\n", f) < 0)
            goto error;
        PyFile_SoftSpace(f, 0);
    }
    Py_DECREF(f);
    return 0;
error:
    Py_DECREF(f);
    return -1;
}
#else /* Python 3 has a print function */
static int __Pyx_Print(PyObject* stream, PyObject *arg_tuple, int newline) {
    PyObject* kwargs = 0;
    PyObject* result = 0;
    PyObject* end_string;
    if (unlikely(!__pyx_print)) {
        __pyx_print = PyObject_GetAttr(__pyx_b, __pyx_n_s__print);
        if (!__pyx_print)
            return -1;
    }
    if (stream) {
        kwargs = PyDict_New();
        if (unlikely(!kwargs))
            return -1;
        if (unlikely(PyDict_SetItem(kwargs, __pyx_n_s__file, stream) < 0))
            goto bad;
        if (!newline) {
            end_string = PyUnicode_FromStringAndSize(" ", 1);
            if (unlikely(!end_string))
                goto bad;
            if (PyDict_SetItem(kwargs, __pyx_n_s__end, end_string) < 0) {
                Py_DECREF(end_string);
                goto bad;
            }
            Py_DECREF(end_string);
        }
    } else if (!newline) {
        if (unlikely(!__pyx_print_kwargs)) {
            __pyx_print_kwargs = PyDict_New();
            if (unlikely(!__pyx_print_kwargs))
                return -1;
            end_string = PyUnicode_FromStringAndSize(" ", 1);
            if (unlikely(!end_string))
                return -1;
            if (PyDict_SetItem(__pyx_print_kwargs, __pyx_n_s__end, end_string) < 0) {
                Py_DECREF(end_string);
                return -1;
            }
            Py_DECREF(end_string);
        }
        kwargs = __pyx_print_kwargs;
    }
    result = PyObject_Call(__pyx_print, arg_tuple, kwargs);
    if (unlikely(kwargs) && (kwargs != __pyx_print_kwargs))
        Py_DECREF(kwargs);
    if (!result)
        return -1;
    Py_DECREF(result);
    return 0;
bad:
    if (kwargs != __pyx_print_kwargs)
        Py_XDECREF(kwargs);
    return -1;
}
#endif

static CYTHON_INLINE PyObject *__Pyx_PyInt_to_py_GLenum(GLenum val) {
    const GLenum neg_one = (GLenum)-1, const_zero = (GLenum)0;
    const int is_unsigned = const_zero < neg_one;
    if ((sizeof(GLenum) == sizeof(char))  ||
        (sizeof(GLenum) == sizeof(short))) {
        return PyInt_FromLong((long)val);
    } else if ((sizeof(GLenum) == sizeof(int)) ||
               (sizeof(GLenum) == sizeof(long))) {
        if (is_unsigned)
            return PyLong_FromUnsignedLong((unsigned long)val);
        else
            return PyInt_FromLong((long)val);
    } else if (sizeof(GLenum) == sizeof(PY_LONG_LONG)) {
        if (is_unsigned)
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG)val);
        else
            return PyLong_FromLongLong((PY_LONG_LONG)val);
    } else {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        return _PyLong_FromByteArray(bytes, sizeof(GLenum),
                                     little, !is_unsigned);
    }
}

#if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION < 3
static int __Pyx_PrintOne(PyObject* f, PyObject *o) {
    if (!f) {
        if (!(f = __Pyx_GetStdout()))
            return -1;
    }
    Py_INCREF(f);
    if (PyFile_SoftSpace(f, 0)) {
        if (PyFile_WriteString(" ", f) < 0)
            goto error;
    }
    if (PyFile_WriteObject(o, f, Py_PRINT_RAW) < 0)
        goto error;
    if (PyFile_WriteString("\n", f) < 0)
        goto error;
    Py_DECREF(f);
    return 0;
error:
    Py_DECREF(f);
    return -1;
    /* the line below is just to avoid C compiler
     * warnings about unused functions */
    return __Pyx_Print(f, NULL, 0);
}
#else /* Python 3 has a print function */
static int __Pyx_PrintOne(PyObject* stream, PyObject *o) {
    int res;
    PyObject* arg_tuple = PyTuple_Pack(1, o);
    if (unlikely(!arg_tuple))
        return -1;
    res = __Pyx_Print(stream, arg_tuple, 1);
    Py_DECREF(arg_tuple);
    return res;
}
#endif

static CYTHON_INLINE unsigned char __Pyx_PyInt_AsUnsignedChar(PyObject* x) {
    const unsigned char neg_one = (unsigned char)-1, const_zero = 0;
    const int is_unsigned = neg_one > const_zero;
    if (sizeof(unsigned char) < sizeof(long)) {
        long val = __Pyx_PyInt_AsLong(x);
        if (unlikely(val != (long)(unsigned char)val)) {
            if (!unlikely(val == -1 && PyErr_Occurred())) {
                PyErr_SetString(PyExc_OverflowError,
                    (is_unsigned && unlikely(val < 0)) ?
                    "can't convert negative value to unsigned char" :
                    "value too large to convert to unsigned char");
            }
            return (unsigned char)-1;
        }
        return (unsigned char)val;
    }
    return (unsigned char)__Pyx_PyInt_AsUnsignedLong(x);
}

static CYTHON_INLINE unsigned short __Pyx_PyInt_AsUnsignedShort(PyObject* x) {
    const unsigned short neg_one = (unsigned short)-1, const_zero = 0;
    const int is_unsigned = neg_one > const_zero;
    if (sizeof(unsigned short) < sizeof(long)) {
        long val = __Pyx_PyInt_AsLong(x);
        if (unlikely(val != (long)(unsigned short)val)) {
            if (!unlikely(val == -1 && PyErr_Occurred())) {
                PyErr_SetString(PyExc_OverflowError,
                    (is_unsigned && unlikely(val < 0)) ?
                    "can't convert negative value to unsigned short" :
                    "value too large to convert to unsigned short");
            }
            return (unsigned short)-1;
        }
        return (unsigned short)val;
    }
    return (unsigned short)__Pyx_PyInt_AsUnsignedLong(x);
}

static CYTHON_INLINE unsigned int __Pyx_PyInt_AsUnsignedInt(PyObject* x) {
    const unsigned int neg_one = (unsigned int)-1, const_zero = 0;
    const int is_unsigned = neg_one > const_zero;
    if (sizeof(unsigned int) < sizeof(long)) {
        long val = __Pyx_PyInt_AsLong(x);
        if (unlikely(val != (long)(unsigned int)val)) {
            if (!unlikely(val == -1 && PyErr_Occurred())) {
                PyErr_SetString(PyExc_OverflowError,
                    (is_unsigned && unlikely(val < 0)) ?
                    "can't convert negative value to unsigned int" :
                    "value too large to convert to unsigned int");
            }
            return (unsigned int)-1;
        }
        return (unsigned int)val;
    }
    return (unsigned int)__Pyx_PyInt_AsUnsignedLong(x);
}

static CYTHON_INLINE char __Pyx_PyInt_AsChar(PyObject* x) {
    const char neg_one = (char)-1, const_zero = 0;
    const int is_unsigned = neg_one > const_zero;
    if (sizeof(char) < sizeof(long)) {
        long val = __Pyx_PyInt_AsLong(x);
        if (unlikely(val != (long)(char)val)) {
            if (!unlikely(val == -1 && PyErr_Occurred())) {
                PyErr_SetString(PyExc_OverflowError,
                    (is_unsigned && unlikely(val < 0)) ?
                    "can't convert negative value to char" :
                    "value too large to convert to char");
            }
            return (char)-1;
        }
        return (char)val;
    }
    return (char)__Pyx_PyInt_AsLong(x);
}

static CYTHON_INLINE short __Pyx_PyInt_AsShort(PyObject* x) {
    const short neg_one = (short)-1, const_zero = 0;
    const int is_unsigned = neg_one > const_zero;
    if (sizeof(short) < sizeof(long)) {
        long val = __Pyx_PyInt_AsLong(x);
        if (unlikely(val != (long)(short)val)) {
            if (!unlikely(val == -1 && PyErr_Occurred())) {
                PyErr_SetString(PyExc_OverflowError,
                    (is_unsigned && unlikely(val < 0)) ?
                    "can't convert negative value to short" :
                    "value too large to convert to short");
            }
            return (short)-1;
        }
        return (short)val;
    }
    return (short)__Pyx_PyInt_AsLong(x);
}

static CYTHON_INLINE int __Pyx_PyInt_AsInt(PyObject* x) {
    const int neg_one = (int)-1, const_zero = 0;
    const int is_unsigned = neg_one > const_zero;
    if (sizeof(int) < sizeof(long)) {
        long val = __Pyx_PyInt_AsLong(x);
        if (unlikely(val != (long)(int)val)) {
            if (!unlikely(val == -1 && PyErr_Occurred())) {
                PyErr_SetString(PyExc_OverflowError,
                    (is_unsigned && unlikely(val < 0)) ?
                    "can't convert negative value to int" :
                    "value too large to convert to int");
            }
            return (int)-1;
        }
        return (int)val;
    }
    return (int)__Pyx_PyInt_AsLong(x);
}

static CYTHON_INLINE signed char __Pyx_PyInt_AsSignedChar(PyObject* x) {
    const signed char neg_one = (signed char)-1, const_zero = 0;
    const int is_unsigned = neg_one > const_zero;
    if (sizeof(signed char) < sizeof(long)) {
        long val = __Pyx_PyInt_AsLong(x);
        if (unlikely(val != (long)(signed char)val)) {
            if (!unlikely(val == -1 && PyErr_Occurred())) {
                PyErr_SetString(PyExc_OverflowError,
                    (is_unsigned && unlikely(val < 0)) ?
                    "can't convert negative value to signed char" :
                    "value too large to convert to signed char");
            }
            return (signed char)-1;
        }
        return (signed char)val;
    }
    return (signed char)__Pyx_PyInt_AsSignedLong(x);
}

static CYTHON_INLINE signed short __Pyx_PyInt_AsSignedShort(PyObject* x) {
    const signed short neg_one = (signed short)-1, const_zero = 0;
    const int is_unsigned = neg_one > const_zero;
    if (sizeof(signed short) < sizeof(long)) {
        long val = __Pyx_PyInt_AsLong(x);
        if (unlikely(val != (long)(signed short)val)) {
            if (!unlikely(val == -1 && PyErr_Occurred())) {
                PyErr_SetString(PyExc_OverflowError,
                    (is_unsigned && unlikely(val < 0)) ?
                    "can't convert negative value to signed short" :
                    "value too large to convert to signed short");
            }
            return (signed short)-1;
        }
        return (signed short)val;
    }
    return (signed short)__Pyx_PyInt_AsSignedLong(x);
}

static CYTHON_INLINE signed int __Pyx_PyInt_AsSignedInt(PyObject* x) {
    const signed int neg_one = (signed int)-1, const_zero = 0;
    const int is_unsigned = neg_one > const_zero;
    if (sizeof(signed int) < sizeof(long)) {
        long val = __Pyx_PyInt_AsLong(x);
        if (unlikely(val != (long)(signed int)val)) {
            if (!unlikely(val == -1 && PyErr_Occurred())) {
                PyErr_SetString(PyExc_OverflowError,
                    (is_unsigned && unlikely(val < 0)) ?
                    "can't convert negative value to signed int" :
                    "value too large to convert to signed int");
            }
            return (signed int)-1;
        }
        return (signed int)val;
    }
    return (signed int)__Pyx_PyInt_AsSignedLong(x);
}

static CYTHON_INLINE int __Pyx_PyInt_AsLongDouble(PyObject* x) {
    const int neg_one = (int)-1, const_zero = 0;
    const int is_unsigned = neg_one > const_zero;
    if (sizeof(int) < sizeof(long)) {
        long val = __Pyx_PyInt_AsLong(x);
        if (unlikely(val != (long)(int)val)) {
            if (!unlikely(val == -1 && PyErr_Occurred())) {
                PyErr_SetString(PyExc_OverflowError,
                    (is_unsigned && unlikely(val < 0)) ?
                    "can't convert negative value to int" :
                    "value too large to convert to int");
            }
            return (int)-1;
        }
        return (int)val;
    }
    return (int)__Pyx_PyInt_AsLong(x);
}

#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
#if CYTHON_USE_PYLONG_INTERNALS
#include "longintrepr.h"
#endif
#endif
static CYTHON_INLINE unsigned long __Pyx_PyInt_AsUnsignedLong(PyObject* x) {
    const unsigned long neg_one = (unsigned long)-1, const_zero = 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        long val = PyInt_AS_LONG(x);
        if (is_unsigned && unlikely(val < 0)) {
            PyErr_SetString(PyExc_OverflowError,
                            "can't convert negative value to unsigned long");
            return (unsigned long)-1;
        }
        return (unsigned long)val;
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
#if CYTHON_USE_PYLONG_INTERNALS
            if (sizeof(digit) <= sizeof(unsigned long)) {
                switch (Py_SIZE(x)) {
                    case  0: return 0;
                    case  1: return (unsigned long) ((PyLongObject*)x)->ob_digit[0];
                }
            }
#endif
#endif
            if (unlikely(Py_SIZE(x) < 0)) {
                PyErr_SetString(PyExc_OverflowError,
                                "can't convert negative value to unsigned long");
                return (unsigned long)-1;
            }
            return (unsigned long)PyLong_AsUnsignedLong(x);
        } else {
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
#if CYTHON_USE_PYLONG_INTERNALS
            if (sizeof(digit) <= sizeof(unsigned long)) {
                switch (Py_SIZE(x)) {
                    case  0: return 0;
                    case  1: return +(unsigned long) ((PyLongObject*)x)->ob_digit[0];
                    case -1: return -(unsigned long) ((PyLongObject*)x)->ob_digit[0];
                }
            }
#endif
#endif
            return (unsigned long)PyLong_AsLong(x);
        }
    } else {
        unsigned long val;
        PyObject *tmp = __Pyx_PyNumber_Int(x);
        if (!tmp) return (unsigned long)-1;
        val = __Pyx_PyInt_AsUnsignedLong(tmp);
        Py_DECREF(tmp);
        return val;
    }
}

#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
#if CYTHON_USE_PYLONG_INTERNALS
#include "longintrepr.h"
#endif
#endif
static CYTHON_INLINE unsigned PY_LONG_LONG __Pyx_PyInt_AsUnsignedLongLong(PyObject* x) {
    const unsigned PY_LONG_LONG neg_one = (unsigned PY_LONG_LONG)-1, const_zero = 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        long val = PyInt_AS_LONG(x);
        if (is_unsigned && unlikely(val < 0)) {
            PyErr_SetString(PyExc_OverflowError,
                            "can't convert negative value to unsigned PY_LONG_LONG");
            return (unsigned PY_LONG_LONG)-1;
        }
        return (unsigned PY_LONG_LONG)val;
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
#if CYTHON_USE_PYLONG_INTERNALS
            if (sizeof(digit) <= sizeof(unsigned PY_LONG_LONG)) {
                switch (Py_SIZE(x)) {
                    case  0: return 0;
                    case  1: return (unsigned PY_LONG_LONG) ((PyLongObject*)x)->ob_digit[0];
                }
            }
#endif
#endif
            if (unlikely(Py_SIZE(x) < 0)) {
                PyErr_SetString(PyExc_OverflowError,
                                "can't convert negative value to unsigned PY_LONG_LONG");
                return (unsigned PY_LONG_LONG)-1;
            }
            return (unsigned PY_LONG_LONG)PyLong_AsUnsignedLongLong(x);
        } else {
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
#if CYTHON_USE_PYLONG_INTERNALS
            if (sizeof(digit) <= sizeof(unsigned PY_LONG_LONG)) {
                switch (Py_SIZE(x)) {
                    case  0: return 0;
                    case  1: return +(unsigned PY_LONG_LONG) ((PyLongObject*)x)->ob_digit[0];
                    case -1: return -(unsigned PY_LONG_LONG) ((PyLongObject*)x)->ob_digit[0];
                }
            }
#endif
#endif
            return (unsigned PY_LONG_LONG)PyLong_AsLongLong(x);
        }
    } else {
        unsigned PY_LONG_LONG val;
        PyObject *tmp = __Pyx_PyNumber_Int(x);
        if (!tmp) return (unsigned PY_LONG_LONG)-1;
        val = __Pyx_PyInt_AsUnsignedLongLong(tmp);
        Py_DECREF(tmp);
        return val;
    }
}

#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
#if CYTHON_USE_PYLONG_INTERNALS
#include "longintrepr.h"
#endif
#endif
static CYTHON_INLINE long __Pyx_PyInt_AsLong(PyObject* x) {
    const long neg_one = (long)-1, const_zero = 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        long val = PyInt_AS_LONG(x);
        if (is_unsigned && unlikely(val < 0)) {
            PyErr_SetString(PyExc_OverflowError,
                            "can't convert negative value to long");
            return (long)-1;
        }
        return (long)val;
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
#if CYTHON_USE_PYLONG_INTERNALS
            if (sizeof(digit) <= sizeof(long)) {
                switch (Py_SIZE(x)) {
                    case  0: return 0;
                    case  1: return (long) ((PyLongObject*)x)->ob_digit[0];
                }
            }
#endif
#endif
            if (unlikely(Py_SIZE(x) < 0)) {
                PyErr_SetString(PyExc_OverflowError,
                                "can't convert negative value to long");
                return (long)-1;
            }
            return (long)PyLong_AsUnsignedLong(x);
        } else {
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
#if CYTHON_USE_PYLONG_INTERNALS
            if (sizeof(digit) <= sizeof(long)) {
                switch (Py_SIZE(x)) {
                    case  0: return 0;
                    case  1: return +(long) ((PyLongObject*)x)->ob_digit[0];
                    case -1: return -(long) ((PyLongObject*)x)->ob_digit[0];
                }
            }
#endif
#endif
            return (long)PyLong_AsLong(x);
        }
    } else {
        long val;
        PyObject *tmp = __Pyx_PyNumber_Int(x);
        if (!tmp) return (long)-1;
        val = __Pyx_PyInt_AsLong(tmp);
        Py_DECREF(tmp);
        return val;
    }
}

#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
#if CYTHON_USE_PYLONG_INTERNALS
#include "longintrepr.h"
#endif
#endif
static CYTHON_INLINE PY_LONG_LONG __Pyx_PyInt_AsLongLong(PyObject* x) {
    const PY_LONG_LONG neg_one = (PY_LONG_LONG)-1, const_zero = 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        long val = PyInt_AS_LONG(x);
        if (is_unsigned && unlikely(val < 0)) {
            PyErr_SetString(PyExc_OverflowError,
                            "can't convert negative value to PY_LONG_LONG");
            return (PY_LONG_LONG)-1;
        }
        return (PY_LONG_LONG)val;
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
#if CYTHON_USE_PYLONG_INTERNALS
            if (sizeof(digit) <= sizeof(PY_LONG_LONG)) {
                switch (Py_SIZE(x)) {
                    case  0: return 0;
                    case  1: return (PY_LONG_LONG) ((PyLongObject*)x)->ob_digit[0];
                }
            }
#endif
#endif
            if (unlikely(Py_SIZE(x) < 0)) {
                PyErr_SetString(PyExc_OverflowError,
                                "can't convert negative value to PY_LONG_LONG");
                return (PY_LONG_LONG)-1;
            }
            return (PY_LONG_LONG)PyLong_AsUnsignedLongLong(x);
        } else {
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
#if CYTHON_USE_PYLONG_INTERNALS
            if (sizeof(digit) <= sizeof(PY_LONG_LONG)) {
                switch (Py_SIZE(x)) {
                    case  0: return 0;
                    case  1: return +(PY_LONG_LONG) ((PyLongObject*)x)->ob_digit[0];
                    case -1: return -(PY_LONG_LONG) ((PyLongObject*)x)->ob_digit[0];
                }
            }
#endif
#endif
            return (PY_LONG_LONG)PyLong_AsLongLong(x);
        }
    } else {
        PY_LONG_LONG val;
        PyObject *tmp = __Pyx_PyNumber_Int(x);
        if (!tmp) return (PY_LONG_LONG)-1;
        val = __Pyx_PyInt_AsLongLong(tmp);
        Py_DECREF(tmp);
        return val;
    }
}

#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
#if CYTHON_USE_PYLONG_INTERNALS
#include "longintrepr.h"
#endif
#endif
static CYTHON_INLINE signed long __Pyx_PyInt_AsSignedLong(PyObject* x) {
    const signed long neg_one = (signed long)-1, const_zero = 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        long val = PyInt_AS_LONG(x);
        if (is_unsigned && unlikely(val < 0)) {
            PyErr_SetString(PyExc_OverflowError,
                            "can't convert negative value to signed long");
            return (signed long)-1;
        }
        return (signed long)val;
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
#if CYTHON_USE_PYLONG_INTERNALS
            if (sizeof(digit) <= sizeof(signed long)) {
                switch (Py_SIZE(x)) {
                    case  0: return 0;
                    case  1: return (signed long) ((PyLongObject*)x)->ob_digit[0];
                }
            }
#endif
#endif
            if (unlikely(Py_SIZE(x) < 0)) {
                PyErr_SetString(PyExc_OverflowError,
                                "can't convert negative value to signed long");
                return (signed long)-1;
            }
            return (signed long)PyLong_AsUnsignedLong(x);
        } else {
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
#if CYTHON_USE_PYLONG_INTERNALS
            if (sizeof(digit) <= sizeof(signed long)) {
                switch (Py_SIZE(x)) {
                    case  0: return 0;
                    case  1: return +(signed long) ((PyLongObject*)x)->ob_digit[0];
                    case -1: return -(signed long) ((PyLongObject*)x)->ob_digit[0];
                }
            }
#endif
#endif
            return (signed long)PyLong_AsLong(x);
        }
    } else {
        signed long val;
        PyObject *tmp = __Pyx_PyNumber_Int(x);
        if (!tmp) return (signed long)-1;
        val = __Pyx_PyInt_AsSignedLong(tmp);
        Py_DECREF(tmp);
        return val;
    }
}

#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
#if CYTHON_USE_PYLONG_INTERNALS
#include "longintrepr.h"
#endif
#endif
static CYTHON_INLINE signed PY_LONG_LONG __Pyx_PyInt_AsSignedLongLong(PyObject* x) {
    const signed PY_LONG_LONG neg_one = (signed PY_LONG_LONG)-1, const_zero = 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        long val = PyInt_AS_LONG(x);
        if (is_unsigned && unlikely(val < 0)) {
            PyErr_SetString(PyExc_OverflowError,
                            "can't convert negative value to signed PY_LONG_LONG");
            return (signed PY_LONG_LONG)-1;
        }
        return (signed PY_LONG_LONG)val;
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
#if CYTHON_USE_PYLONG_INTERNALS
            if (sizeof(digit) <= sizeof(signed PY_LONG_LONG)) {
                switch (Py_SIZE(x)) {
                    case  0: return 0;
                    case  1: return (signed PY_LONG_LONG) ((PyLongObject*)x)->ob_digit[0];
                }
            }
#endif
#endif
            if (unlikely(Py_SIZE(x) < 0)) {
                PyErr_SetString(PyExc_OverflowError,
                                "can't convert negative value to signed PY_LONG_LONG");
                return (signed PY_LONG_LONG)-1;
            }
            return (signed PY_LONG_LONG)PyLong_AsUnsignedLongLong(x);
        } else {
#if CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
#if CYTHON_USE_PYLONG_INTERNALS
            if (sizeof(digit) <= sizeof(signed PY_LONG_LONG)) {
                switch (Py_SIZE(x)) {
                    case  0: return 0;
                    case  1: return +(signed PY_LONG_LONG) ((PyLongObject*)x)->ob_digit[0];
                    case -1: return -(signed PY_LONG_LONG) ((PyLongObject*)x)->ob_digit[0];
                }
            }
#endif
#endif
            return (signed PY_LONG_LONG)PyLong_AsLongLong(x);
        }
    } else {
        signed PY_LONG_LONG val;
        PyObject *tmp = __Pyx_PyNumber_Int(x);
        if (!tmp) return (signed PY_LONG_LONG)-1;
        val = __Pyx_PyInt_AsSignedLongLong(tmp);
        Py_DECREF(tmp);
        return val;
    }
}

static int __Pyx_check_binary_version(void) {
    char ctversion[4], rtversion[4];
    PyOS_snprintf(ctversion, 4, "%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION);
    PyOS_snprintf(rtversion, 4, "%s", Py_GetVersion());
    if (ctversion[0] != rtversion[0] || ctversion[2] != rtversion[2]) {
        char message[200];
        PyOS_snprintf(message, sizeof(message),
                      "compiletime version %s of module '%.100s' "
                      "does not match runtime version %s",
                      ctversion, __Pyx_MODULE_NAME, rtversion);
        #if PY_VERSION_HEX < 0x02050000
        return PyErr_Warn(NULL, message);
        #else
        return PyErr_WarnEx(NULL, message, 1);
        #endif
    }
    return 0;
}

static int __Pyx_ExportFunction(const char *name, void (*f)(void), const char *sig) {
    PyObject *d = 0;
    PyObject *cobj = 0;
    union {
        void (*fp)(void);
        void *p;
    } tmp;
    d = PyObject_GetAttrString(__pyx_m, (char *)"__pyx_capi__");
    if (!d) {
        PyErr_Clear();
        d = PyDict_New();
        if (!d)
            goto bad;
        Py_INCREF(d);
        if (PyModule_AddObject(__pyx_m, (char *)"__pyx_capi__", d) < 0)
            goto bad;
    }
    tmp.fp = f;
#if PY_VERSION_HEX >= 0x02070000 && !(PY_MAJOR_VERSION==3&&PY_MINOR_VERSION==0)
    cobj = PyCapsule_New(tmp.p, sig, 0);
#else
    cobj = PyCObject_FromVoidPtrAndDesc(tmp.p, (void *)sig, 0);
#endif
    if (!cobj)
        goto bad;
    if (PyDict_SetItemString(d, name, cobj) < 0)
        goto bad;
    Py_DECREF(cobj);
    Py_DECREF(d);
    return 0;
bad:
    Py_XDECREF(cobj);
    Py_XDECREF(d);
    return -1;
}

static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) {
    int start = 0, mid = 0, end = count - 1;
    if (end >= 0 && code_line > entries[end].code_line) {
        return count;
    }
    while (start < end) {
        mid = (start + end) / 2;
        if (code_line < entries[mid].code_line) {
            end = mid;
        } else if (code_line > entries[mid].code_line) {
             start = mid + 1;
        } else {
            return mid;
        }
    }
    if (code_line <= entries[mid].code_line) {
        return mid;
    } else {
        return mid + 1;
    }
}
static PyCodeObject *__pyx_find_code_object(int code_line) {
    PyCodeObject* code_object;
    int pos;
    if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) {
        return NULL;
    }
    pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
    if (unlikely(pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[pos].code_line != code_line)) {
        return NULL;
    }
    code_object = __pyx_code_cache.entries[pos].code_object;
    Py_INCREF(code_object);
    return code_object;
}
static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) {
    int pos, i;
    __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries;
    if (unlikely(!code_line)) {
        return;
    }
    if (unlikely(!entries)) {
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry));
        if (likely(entries)) {
            __pyx_code_cache.entries = entries;
            __pyx_code_cache.max_count = 64;
            __pyx_code_cache.count = 1;
            entries[0].code_line = code_line;
            entries[0].code_object = code_object;
            Py_INCREF(code_object);
        }
        return;
    }
    pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
    if ((pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[pos].code_line == code_line)) {
        PyCodeObject* tmp = entries[pos].code_object;
        entries[pos].code_object = code_object;
        Py_DECREF(tmp);
        return;
    }
    if (__pyx_code_cache.count == __pyx_code_cache.max_count) {
        int new_max = __pyx_code_cache.max_count + 64;
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc(
            __pyx_code_cache.entries, new_max*sizeof(__Pyx_CodeObjectCacheEntry));
        if (unlikely(!entries)) {
            return;
        }
        __pyx_code_cache.entries = entries;
        __pyx_code_cache.max_count = new_max;
    }
    for (i=__pyx_code_cache.count; i>pos; i--) {
        entries[i] = entries[i-1];
    }
    entries[pos].code_line = code_line;
    entries[pos].code_object = code_object;
    __pyx_code_cache.count++;
    Py_INCREF(code_object);
}

#include "compile.h"
#include "frameobject.h"
#include "traceback.h"
static PyCodeObject* __Pyx_CreateCodeObjectForTraceback(
            const char *funcname, int c_line,
            int py_line, const char *filename) {
    PyCodeObject *py_code = 0;
    PyObject *py_srcfile = 0;
    PyObject *py_funcname = 0;
    #if PY_MAJOR_VERSION < 3
    py_srcfile = PyString_FromString(filename);
    #else
    py_srcfile = PyUnicode_FromString(filename);
    #endif
    if (!py_srcfile) goto bad;
    if (c_line) {
        #if PY_MAJOR_VERSION < 3
        py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        #else
        py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        #endif
    }
    else {
        #if PY_MAJOR_VERSION < 3
        py_funcname = PyString_FromString(funcname);
        #else
        py_funcname = PyUnicode_FromString(funcname);
        #endif
    }
    if (!py_funcname) goto bad;
    py_code = __Pyx_PyCode_New(
        0,            /*int argcount,*/
        0,            /*int kwonlyargcount,*/
        0,            /*int nlocals,*/
        0,            /*int stacksize,*/
        0,            /*int flags,*/
        __pyx_empty_bytes, /*PyObject *code,*/
        __pyx_empty_tuple, /*PyObject *consts,*/
        __pyx_empty_tuple, /*PyObject *names,*/
        __pyx_empty_tuple, /*PyObject *varnames,*/
        __pyx_empty_tuple, /*PyObject *freevars,*/
        __pyx_empty_tuple, /*PyObject *cellvars,*/
        py_srcfile,   /*PyObject *filename,*/
        py_funcname,  /*PyObject *name,*/
        py_line,      /*int firstlineno,*/
        __pyx_empty_bytes  /*PyObject *lnotab*/
    );
    Py_DECREF(py_srcfile);
    Py_DECREF(py_funcname);
    return py_code;
bad:
    Py_XDECREF(py_srcfile);
    Py_XDECREF(py_funcname);
    return NULL;
}
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename) {
    PyCodeObject *py_code = 0;
    PyObject *py_globals = 0;
    PyFrameObject *py_frame = 0;
    py_code = __pyx_find_code_object(c_line ? c_line : py_line);
    if (!py_code) {
        py_code = __Pyx_CreateCodeObjectForTraceback(
            funcname, c_line, py_line, filename);
        if (!py_code) goto bad;
        __pyx_insert_code_object(c_line ? c_line : py_line, py_code);
    }
    py_globals = PyModule_GetDict(__pyx_m);
    if (!py_globals) goto bad;
    py_frame = PyFrame_New(
        PyThreadState_GET(), /*PyThreadState *tstate,*/
        py_code,             /*PyCodeObject *code,*/
        py_globals,          /*PyObject *globals,*/
        0                    /*PyObject *locals*/
    );
    if (!py_frame) goto bad;
    py_frame->f_lineno = py_line;
    PyTraceBack_Here(py_frame);
bad:
    Py_XDECREF(py_code);
    Py_XDECREF(py_frame);
}

static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
    while (t->p) {
        #if PY_MAJOR_VERSION < 3
        if (t->is_unicode) {
            *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL);
        } else if (t->intern) {
            *t->p = PyString_InternFromString(t->s);
        } else {
            *t->p = PyString_FromStringAndSize(t->s, t->n - 1);
        }
        #else  /* Python 3+ has unicode identifiers */
        if (t->is_unicode | t->is_str) {
            if (t->intern) {
                *t->p = PyUnicode_InternFromString(t->s);
            } else if (t->encoding) {
                *t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL);
            } else {
                *t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1);
            }
        } else {
            *t->p = PyBytes_FromStringAndSize(t->s, t->n - 1);
        }
        #endif
        if (!*t->p)
            return -1;
        ++t;
    }
    return 0;
}

static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(char* c_str) {
    return __Pyx_PyUnicode_FromStringAndSize(c_str, strlen(c_str));
}
static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject* o) {
    Py_ssize_t ignore;
    return __Pyx_PyObject_AsStringAndSize(o, &ignore);
}
static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
    if (
#if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
            __Pyx_sys_getdefaultencoding_not_ascii &&
#endif
            PyUnicode_Check(o)) {
#if PY_VERSION_HEX < 0x03030000
        char* defenc_c;
        PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL);
        if (!defenc) return NULL;
        defenc_c = PyBytes_AS_STRING(defenc);
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
        {
            char* end = defenc_c + PyBytes_GET_SIZE(defenc);
            char* c;
            for (c = defenc_c; c < end; c++) {
                if ((unsigned char) (*c) >= 128) {
                    PyUnicode_AsASCIIString(o);
                    return NULL;
                }
            }
        }
#endif /*__PYX_DEFAULT_STRING_ENCODING_IS_ASCII*/
        *length = PyBytes_GET_SIZE(defenc);
        return defenc_c;
#else /* PY_VERSION_HEX < 0x03030000 */
        if (PyUnicode_READY(o) == -1) return NULL;
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
        if (PyUnicode_IS_ASCII(o)) {
            *length = PyUnicode_GET_DATA_SIZE(o);
            return PyUnicode_AsUTF8(o);
        } else {
            PyUnicode_AsASCIIString(o);
            return NULL;
        }
#else /* __PYX_DEFAULT_STRING_ENCODING_IS_ASCII */
        return PyUnicode_AsUTF8AndSize(o, length);
#endif /* __PYX_DEFAULT_STRING_ENCODING_IS_ASCII */
#endif /* PY_VERSION_HEX < 0x03030000 */
    } else
#endif /* __PYX_DEFAULT_STRING_ENCODING_IS_ASCII  || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT */
    {
        char* result;
        int r = PyBytes_AsStringAndSize(o, &result, length);
        if (r < 0) {
            return NULL;
        } else {
            return result;
        }
    }
}
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) {
   int is_true = x == Py_True;
   if (is_true | (x == Py_False) | (x == Py_None)) return is_true;
   else return PyObject_IsTrue(x);
}
static CYTHON_INLINE PyObject* __Pyx_PyNumber_Int(PyObject* x) {
  PyNumberMethods *m;
  const char *name = NULL;
  PyObject *res = NULL;
#if PY_MAJOR_VERSION < 3
  if (PyInt_Check(x) || PyLong_Check(x))
#else
  if (PyLong_Check(x))
#endif
    return Py_INCREF(x), x;
  m = Py_TYPE(x)->tp_as_number;
#if PY_MAJOR_VERSION < 3
  if (m && m->nb_int) {
    name = "int";
    res = PyNumber_Int(x);
  }
  else if (m && m->nb_long) {
    name = "long";
    res = PyNumber_Long(x);
  }
#else
  if (m && m->nb_int) {
    name = "int";
    res = PyNumber_Long(x);
  }
#endif
  if (res) {
#if PY_MAJOR_VERSION < 3
    if (!PyInt_Check(res) && !PyLong_Check(res)) {
#else
    if (!PyLong_Check(res)) {
#endif
      PyErr_Format(PyExc_TypeError,
                   "__%s__ returned non-%s (type %.200s)",
                   name, name, Py_TYPE(res)->tp_name);
      Py_DECREF(res);
      return NULL;
    }
  }
  else if (!PyErr_Occurred()) {
    PyErr_SetString(PyExc_TypeError,
                    "an integer is required");
  }
  return res;
}
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
  Py_ssize_t ival;
  PyObject* x = PyNumber_Index(b);
  if (!x) return -1;
  ival = PyInt_AsSsize_t(x);
  Py_DECREF(x);
  return ival;
}
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
#if PY_VERSION_HEX < 0x02050000
   if (ival <= LONG_MAX)
       return PyInt_FromLong((long)ival);
   else {
       unsigned char *bytes = (unsigned char *) &ival;
       int one = 1; int little = (int)*(unsigned char*)&one;
       return _PyLong_FromByteArray(bytes, sizeof(size_t), little, 0);
   }
#else
   return PyInt_FromSize_t(ival);
#endif
}
static CYTHON_INLINE size_t __Pyx_PyInt_AsSize_t(PyObject* x) {
   unsigned PY_LONG_LONG val = __Pyx_PyInt_AsUnsignedLongLong(x);
   if (unlikely(val != (unsigned PY_LONG_LONG)(size_t)val)) {
       if ((val != (unsigned PY_LONG_LONG)-1) || !PyErr_Occurred())
           PyErr_SetString(PyExc_OverflowError,
                           "value too large to convert to size_t");
       return (size_t)-1;
   }
   return (size_t)val;
}


#endif /* Py_PYTHON_H */
