/* Generated by Cython 0.14 on Wed Feb  9 18:35:19 2011 */

#define PY_SSIZE_T_CLEAN
#include "Python.h"
#ifndef Py_PYTHON_H
    #error Python headers needed to compile C extensions, please install development version of Python.
#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

#if PY_VERSION_HEX < 0x02040000
  #define METH_COEXIST 0
  #define PyDict_CheckExact(op) (Py_TYPE(op) == &PyDict_Type)
  #define PyDict_Contains(d,o)   PySequence_Contains(d,o)
#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 PyInt_FromSsize_t(z) PyInt_FromLong(z)
  #define PyInt_AsSsize_t(o)   PyInt_AsLong(o)
  #define PyNumber_Index(o)    PyNumber_Int(o)
  #define PyIndex_Check(o)     PyNumber_Check(o)
  #define PyErr_WarnEx(category, message, stacklevel) PyErr_Warn(category, message)
#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)

#endif

#if PY_MAJOR_VERSION < 3
  #define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
#else
  #define __Pyx_BUILTIN_MODULE_NAME "builtins"
#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_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
  #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

#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_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

#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

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

#if defined(WIN32) || defined(MS_WINDOWS)
#define _USE_MATH_DEFINES
#endif
#include <math.h>
#define __PYX_HAVE_API__kivy__graphics__c_opengl_debug
#include "gl_redirect.h"

#ifdef PYREX_WITHOUT_ASSERTIONS
#define CYTHON_WITHOUT_ASSERTIONS
#endif


/* inline attribute */
#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

/* unused attribute */
#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)
#   define CYTHON_UNUSED __attribute__ ((__unused__))
# else
#   define CYTHON_UNUSED
# endif
#endif

typedef struct {PyObject **p; char *s; const long n; const char* encoding; const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry; /*proto*/


/* Type Conversion Predeclarations */

#define __Pyx_PyBytes_FromUString(s) PyBytes_FromString((char*)s)
#define __Pyx_PyBytes_AsUString(s)   ((unsigned char*) PyBytes_AsString(s))

#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*);

#define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))


#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_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",
};

typedef char __pyx_t_4kivy_8graphics_14c_opengl_debug_GLchar;

typedef unsigned int __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum;

typedef unsigned char __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean;

typedef unsigned int __pyx_t_4kivy_8graphics_14c_opengl_debug_GLbitfield;

typedef short __pyx_t_4kivy_8graphics_14c_opengl_debug_GLshort;

typedef int __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint;

typedef int __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei;

typedef unsigned short __pyx_t_4kivy_8graphics_14c_opengl_debug_GLushort;

typedef unsigned int __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint;

typedef signed char __pyx_t_4kivy_8graphics_14c_opengl_debug_GLbyte;

typedef unsigned char __pyx_t_4kivy_8graphics_14c_opengl_debug_GLubyte;

typedef float __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat;

typedef float __pyx_t_4kivy_8graphics_14c_opengl_debug_GLclampf;

typedef int __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfixed;

typedef signed long __pyx_t_4kivy_8graphics_14c_opengl_debug_GLintptr;

typedef signed long __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizeiptr;

/* Type declarations */

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) {
    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;
  }
  #define __Pyx_RefNannySetupContext(name)           void *__pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__)
  #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_XDECREF(r) do { if((r) != NULL) {__Pyx_DECREF(r);} } while(0)
#else
  #define __Pyx_RefNannySetupContext(name)
  #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_XDECREF(r) Py_XDECREF(r)
#endif /* CYTHON_REFNANNY */
#define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);} } while(0)
#define __Pyx_XGOTREF(r) do { if((r) != NULL) {__Pyx_GOTREF(r);} } while(0)

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

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 *);

#ifndef __PYX_FORCE_INIT_THREADS
  #if PY_VERSION_HEX < 0x02040200
    #define __PYX_FORCE_INIT_THREADS 1
  #else
    #define __PYX_FORCE_INIT_THREADS 0
  #endif
#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); /*proto*/

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

static void __Pyx_AddTraceback(const char *funcname); /*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 void __pyx_f_4kivy_8graphics_14c_opengl_debug_glActiveTexture(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glAttachShader(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glBindAttribLocation(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLchar *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glBindBuffer(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glBindFramebuffer(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glBindRenderbuffer(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glBindTexture(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glBlendColor(__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); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glBlendEquation(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glBlendEquationSeparate(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glBlendFunc(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glBlendFuncSeparate(__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); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glBufferData(__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); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glBufferSubData(__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 *); /*proto*/
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); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glClear(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLbitfield); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glClearColor(__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); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glClearDepthf(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLclampf); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glClearStencil(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glColorMask(__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); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glCompileShader(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glCompressedTexImage2D(__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 *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glCompressedTexSubImage2D(__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 *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glCopyTexImage2D(__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); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glCopyTexSubImage2D(__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); /*proto*/
static __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_f_4kivy_8graphics_14c_opengl_debug_glCreateProgram(void); /*proto*/
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); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glCullFace(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glDeleteBuffers(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glDeleteFramebuffers(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glDeleteProgram(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glDeleteRenderbuffers(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glDeleteShader(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glDeleteTextures(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glDepthFunc(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glDepthMask(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glDepthRangef(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLclampf, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLclampf); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glDetachShader(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glDisable(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glDisableVertexAttribArray(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glDrawArrays(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glDrawElements(__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 *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glEnable(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glEnableVertexAttribArray(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glFinish(void); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glFlush(void); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glFramebufferRenderbuffer(__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); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glFramebufferTexture2D(__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); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glFrontFace(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGenBuffers(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGenerateMipmap(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGenFramebuffers(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGenRenderbuffers(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGenTextures(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetActiveAttrib(__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 *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetActiveUniform(__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 *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetAttachedShaders(__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 *); /*proto*/
static int __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetAttribLocation(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLchar *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetBooleanv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetBufferParameteriv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *); /*proto*/
static __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError(void); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetFloatv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetFramebufferAttachmentParameteriv(__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 *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetIntegerv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetProgramiv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetProgramInfoLog(__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 *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetRenderbufferParameteriv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetShaderiv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetShaderInfoLog(__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 *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetShaderPrecisionFormat(__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_GLint *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetShaderSource(__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 *); /*proto*/
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); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetTexParameterfv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetTexParameteriv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetUniformfv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetUniformiv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *); /*proto*/
static int __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetUniformLocation(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLchar *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetVertexAttribfv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetVertexAttribiv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetVertexAttribPointerv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLvoid **); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glHint(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum); /*proto*/
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); /*proto*/
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); /*proto*/
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); /*proto*/
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); /*proto*/
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); /*proto*/
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); /*proto*/
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); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glLineWidth(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glLinkProgram(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glPixelStorei(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glPolygonOffset(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glReadPixels(__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 *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glRenderbufferStorage(__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); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glSampleCoverage(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLclampf, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glScissor(__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); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glShaderBinary(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint *, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLvoid *, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glShaderSource(__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 *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glStencilFunc(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glStencilFuncSeparate(__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); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glStencilMask(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glStencilMaskSeparate(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glStencilOp(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glStencilOpSeparate(__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); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glTexImage2D(__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 *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glTexParameterf(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glTexParameterfv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glTexParameteri(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glTexParameteriv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glTexSubImage2D(__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 *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform1f(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform1fv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform1i(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform1iv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform2f(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform2fv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform2i(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform2iv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform3f(__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); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform3fv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform3i(__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); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform3iv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform4f(__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); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform4fv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform4i(__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); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniform4iv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniformMatrix2fv(__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 *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniformMatrix3fv(__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 *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUniformMatrix4fv(__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 *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUseProgram(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glValidateProgram(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glVertexAttrib1f(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glVertexAttrib1fv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glVertexAttrib2f(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glVertexAttrib2fv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glVertexAttrib3f(__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); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glVertexAttrib3fv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glVertexAttrib4f(__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); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glVertexAttrib4fv(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glVertexAttribPointer(__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 *); /*proto*/
static void __pyx_f_4kivy_8graphics_14c_opengl_debug_glViewport(__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); /*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 char __pyx_k_1[] = "GL glActiveTexture()";
static char __pyx_k_2[] = "ERR %d / %x";
static char __pyx_k_3[] = "GL glAttachShader()";
static char __pyx_k_4[] = "GL glBindAttribLocation()";
static char __pyx_k_5[] = "GL glBindBuffer()";
static char __pyx_k_6[] = "GL glBindFramebuffer()";
static char __pyx_k_7[] = "GL glBindRenderbuffer()";
static char __pyx_k_8[] = "GL glBindTexture()";
static char __pyx_k_9[] = "GL glBlendColor()";
static char __pyx_k_10[] = "GL glBlendEquation()";
static char __pyx_k_11[] = "GL glBlendEquationSeparate()";
static char __pyx_k_12[] = "GL glBlendFunc()";
static char __pyx_k_13[] = "GL glBlendFuncSeparate()";
static char __pyx_k_14[] = "GL glBufferData()";
static char __pyx_k_15[] = "GL glBufferSubData()";
static char __pyx_k_16[] = "GL glCheckFramebufferStatus()";
static char __pyx_k_17[] = "GL glClear()";
static char __pyx_k_18[] = "GL glClearColor()";
static char __pyx_k_19[] = "GL glClearDepthf()";
static char __pyx_k_20[] = "GL glClearStencil()";
static char __pyx_k_21[] = "GL glColorMask()";
static char __pyx_k_22[] = "GL glCompileShader()";
static char __pyx_k_23[] = "GL glCompressedTexImage2D()";
static char __pyx_k_24[] = "GL glCompressedTexSubImage2D()";
static char __pyx_k_25[] = "GL glCopyTexImage2D()";
static char __pyx_k_26[] = "GL glCopyTexSubImage2D()";
static char __pyx_k_27[] = "GL glCreateProgram()";
static char __pyx_k_28[] = "GL glCreateShader()";
static char __pyx_k_29[] = "GL glCullFace()";
static char __pyx_k_30[] = "GL glDeleteBuffers()";
static char __pyx_k_31[] = "GL glDeleteFramebuffers()";
static char __pyx_k_32[] = "GL glDeleteProgram()";
static char __pyx_k_33[] = "GL glDeleteRenderbuffers()";
static char __pyx_k_34[] = "GL glDeleteShader()";
static char __pyx_k_35[] = "GL glDeleteTextures()";
static char __pyx_k_36[] = "GL glDepthFunc()";
static char __pyx_k_37[] = "GL glDepthMask()";
static char __pyx_k_38[] = "GL glDepthRangef()";
static char __pyx_k_39[] = "GL glDetachShader()";
static char __pyx_k_40[] = "GL glDisable()";
static char __pyx_k_41[] = "GL glDisableVertexAttribArray()";
static char __pyx_k_42[] = "GL glDrawArrays()";
static char __pyx_k_43[] = "GL glDrawElements()";
static char __pyx_k_44[] = "GL glEnable()";
static char __pyx_k_45[] = "GL glEnableVertexAttribArray()";
static char __pyx_k_46[] = "GL glFinish()";
static char __pyx_k_47[] = "GL glFlush()";
static char __pyx_k_48[] = "GL glFramebufferRenderbuffer()";
static char __pyx_k_49[] = "GL glFramebufferTexture2D()";
static char __pyx_k_50[] = "GL glFrontFace()";
static char __pyx_k_51[] = "GL glGenBuffers()";
static char __pyx_k_52[] = "GL glGenerateMipmap()";
static char __pyx_k_53[] = "GL glGenFramebuffers()";
static char __pyx_k_54[] = "GL glGenRenderbuffers()";
static char __pyx_k_55[] = "GL glGenTextures()";
static char __pyx_k_56[] = "GL glGetActiveAttrib()";
static char __pyx_k_57[] = "GL glGetActiveUniform()";
static char __pyx_k_58[] = "GL glGetAttachedShaders()";
static char __pyx_k_59[] = "GL glGetAttribLocation()";
static char __pyx_k_60[] = "GL glGetBooleanv()";
static char __pyx_k_61[] = "GL glGetBufferParameteriv()";
static char __pyx_k_62[] = "GL glGetError()";
static char __pyx_k_63[] = "GL glGetFloatv()";
static char __pyx_k_64[] = "GL glGetFramebufferAttachmentParameteriv()";
static char __pyx_k_65[] = "GL glGetIntegerv()";
static char __pyx_k_66[] = "GL glGetProgramiv()";
static char __pyx_k_67[] = "GL glGetProgramInfoLog()";
static char __pyx_k_68[] = "GL glGetRenderbufferParameteriv()";
static char __pyx_k_69[] = "GL glGetShaderiv()";
static char __pyx_k_70[] = "GL glGetShaderInfoLog()";
static char __pyx_k_71[] = "GL glGetShaderPrecisionFormat()";
static char __pyx_k_72[] = "GL glGetShaderSource()";
static char __pyx_k_73[] = "GL glGetString()";
static char __pyx_k_74[] = "GL glGetTexParameterfv()";
static char __pyx_k_75[] = "GL glGetTexParameteriv()";
static char __pyx_k_76[] = "GL glGetUniformfv()";
static char __pyx_k_77[] = "GL glGetUniformiv()";
static char __pyx_k_78[] = "GL glGetUniformLocation()";
static char __pyx_k_79[] = "GL glGetVertexAttribfv()";
static char __pyx_k_80[] = "GL glGetVertexAttribiv()";
static char __pyx_k_81[] = "GL glGetVertexAttribPointerv()";
static char __pyx_k_82[] = "GL glHint()";
static char __pyx_k_83[] = "GL glIsBuffer()";
static char __pyx_k_84[] = "GL glIsEnabled()";
static char __pyx_k_85[] = "GL glIsFramebuffer()";
static char __pyx_k_86[] = "GL glIsProgram()";
static char __pyx_k_87[] = "GL glIsRenderbuffer()";
static char __pyx_k_88[] = "GL glIsShader()";
static char __pyx_k_89[] = "GL glIsTexture()";
static char __pyx_k_90[] = "GL glLineWidth()";
static char __pyx_k_91[] = "GL glLinkProgram()";
static char __pyx_k_92[] = "GL glPixelStorei()";
static char __pyx_k_93[] = "GL glPolygonOffset()";
static char __pyx_k_94[] = "GL glReadPixels()";
static char __pyx_k_95[] = "GL glRenderbufferStorage()";
static char __pyx_k_96[] = "GL glSampleCoverage()";
static char __pyx_k_97[] = "GL glScissor()";
static char __pyx_k_98[] = "GL glShaderBinary()";
static char __pyx_k_99[] = "GL glShaderSource()";
static char __pyx_k_100[] = "GL glStencilFunc()";
static char __pyx_k_101[] = "GL glStencilFuncSeparate()";
static char __pyx_k_102[] = "GL glStencilMask()";
static char __pyx_k_103[] = "GL glStencilMaskSeparate()";
static char __pyx_k_104[] = "GL glStencilOp()";
static char __pyx_k_105[] = "GL glStencilOpSeparate()";
static char __pyx_k_106[] = "GL glTexImage2D()";
static char __pyx_k_107[] = "GL glTexParameterf()";
static char __pyx_k_108[] = "GL glTexParameterfv()";
static char __pyx_k_109[] = "GL glTexParameteri()";
static char __pyx_k_110[] = "GL glTexParameteriv()";
static char __pyx_k_111[] = "GL glTexSubImage2D()";
static char __pyx_k_112[] = "GL glUniform1f()";
static char __pyx_k_113[] = "GL glUniform1fv()";
static char __pyx_k_114[] = "GL glUniform1i()";
static char __pyx_k_115[] = "GL glUniform1iv()";
static char __pyx_k_116[] = "GL glUniform2f()";
static char __pyx_k_117[] = "GL glUniform2fv()";
static char __pyx_k_118[] = "GL glUniform2i()";
static char __pyx_k_119[] = "GL glUniform2iv()";
static char __pyx_k_120[] = "GL glUniform3f()";
static char __pyx_k_121[] = "GL glUniform3fv()";
static char __pyx_k_122[] = "GL glUniform3i()";
static char __pyx_k_123[] = "GL glUniform3iv()";
static char __pyx_k_124[] = "GL glUniform4f()";
static char __pyx_k_125[] = "GL glUniform4fv()";
static char __pyx_k_126[] = "GL glUniform4i()";
static char __pyx_k_127[] = "GL glUniform4iv()";
static char __pyx_k_128[] = "GL glUniformMatrix2fv()";
static char __pyx_k_129[] = "GL glUniformMatrix3fv()";
static char __pyx_k_130[] = "GL glUniformMatrix4fv()";
static char __pyx_k_131[] = "GL glUseProgram()";
static char __pyx_k_132[] = "GL glValidateProgram()";
static char __pyx_k_133[] = "GL glVertexAttrib1f()";
static char __pyx_k_134[] = "GL glVertexAttrib1fv()";
static char __pyx_k_135[] = "GL glVertexAttrib2f()";
static char __pyx_k_136[] = "GL glVertexAttrib2fv()";
static char __pyx_k_137[] = "GL glVertexAttrib3f()";
static char __pyx_k_138[] = "GL glVertexAttrib3fv()";
static char __pyx_k_139[] = "GL glVertexAttrib4f()";
static char __pyx_k_140[] = "GL glVertexAttrib4fv()";
static char __pyx_k_141[] = "GL glVertexAttribPointer()";
static char __pyx_k_142[] = "GL glViewport()";
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_15;
static PyObject *__pyx_kp_s_16;
static PyObject *__pyx_kp_s_17;
static PyObject *__pyx_kp_s_18;
static PyObject *__pyx_kp_s_19;
static PyObject *__pyx_kp_s_2;
static PyObject *__pyx_kp_s_20;
static PyObject *__pyx_kp_s_21;
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__;

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":4
 * 
 * 
 * cdef void   glActiveTexture (GLenum texture) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glActiveTexture()"
 *     cgl.glActiveTexture ( texture)
 */

static  void __pyx_f_4kivy_8graphics_14c_opengl_debug_glActiveTexture(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_texture) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glActiveTexture");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":5
 * 
 * cdef void   glActiveTexture (GLenum texture) with gil:
 *     print "GL glActiveTexture()"             # <<<<<<<<<<<<<<
 *     cgl.glActiveTexture ( texture)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 5; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":6
 * cdef void   glActiveTexture (GLenum texture) with gil:
 *     print "GL glActiveTexture()"
 *     cgl.glActiveTexture ( texture)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glActiveTexture(__pyx_v_texture);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":7
 *     print "GL glActiveTexture()"
 *     cgl.glActiveTexture ( texture)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glAttachShader (GLuint program, GLuint shader) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":8
 *     cgl.glActiveTexture ( texture)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glAttachShader (GLuint program, GLuint shader) with gil:
 *     print "GL glAttachShader()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); 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 = PyLong_FromUnsignedLong(__pyx_v_ret); 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_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 8; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 8; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 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;
    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.glActiveTexture");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":9
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glAttachShader (GLuint program, GLuint shader) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glAttachShader()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glAttachShader");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":10
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glAttachShader (GLuint program, GLuint shader) with gil:
 *     print "GL glAttachShader()"             # <<<<<<<<<<<<<<
 *     cgl.glAttachShader ( program, shader)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_3)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 10; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":11
 * cdef void   glAttachShader (GLuint program, GLuint shader) with gil:
 *     print "GL glAttachShader()"
 *     cgl.glAttachShader ( program, shader)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glAttachShader(__pyx_v_program, __pyx_v_shader);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":12
 *     print "GL glAttachShader()"
 *     cgl.glAttachShader ( program, shader)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glBindAttribLocation (GLuint program, GLuint index,  GLchar* name) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":13
 *     cgl.glAttachShader ( program, shader)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glBindAttribLocation (GLuint program, GLuint index,  GLchar* name) with gil:
 *     print "GL glBindAttribLocation()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); 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_ret); 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(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; __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_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":14
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glBindAttribLocation (GLuint program, GLuint index,  GLchar* name) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glBindAttribLocation()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glBindAttribLocation");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":15
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glBindAttribLocation (GLuint program, GLuint index,  GLchar* name) with gil:
 *     print "GL glBindAttribLocation()"             # <<<<<<<<<<<<<<
 *     cgl.glBindAttribLocation ( program, index, name)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_4)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 15; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":16
 * cdef void   glBindAttribLocation (GLuint program, GLuint index,  GLchar* name) with gil:
 *     print "GL glBindAttribLocation()"
 *     cgl.glBindAttribLocation ( program, index, name)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glBindAttribLocation(__pyx_v_program, __pyx_v_index, __pyx_v_name);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":17
 *     print "GL glBindAttribLocation()"
 *     cgl.glBindAttribLocation ( program, index, name)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glBindBuffer (GLenum target, GLuint buffer) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":18
 *     cgl.glBindAttribLocation ( program, index, name)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glBindBuffer (GLenum target, GLuint buffer) with gil:
 *     print "GL glBindBuffer()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); 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_ret); 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 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 18; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 18; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 18; __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.glBindAttribLocation");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":19
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glBindBuffer (GLenum target, GLuint buffer) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glBindBuffer()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glBindBuffer");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":20
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glBindBuffer (GLenum target, GLuint buffer) with gil:
 *     print "GL glBindBuffer()"             # <<<<<<<<<<<<<<
 *     cgl.glBindBuffer ( target, buffer)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_5)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 20; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

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

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":22
 *     print "GL glBindBuffer()"
 *     cgl.glBindBuffer ( target, buffer)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glBindFramebuffer (GLenum target, GLuint framebuffer) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":23
 *     cgl.glBindBuffer ( target, buffer)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glBindFramebuffer (GLenum target, GLuint framebuffer) with gil:
 *     print "GL glBindFramebuffer()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); 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_ret); 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(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; __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_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":24
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glBindFramebuffer (GLenum target, GLuint framebuffer) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glBindFramebuffer()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glBindFramebuffer");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":25
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glBindFramebuffer (GLenum target, GLuint framebuffer) with gil:
 *     print "GL glBindFramebuffer()"             # <<<<<<<<<<<<<<
 *     cgl.glBindFramebuffer ( target, framebuffer)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_6)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 25; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

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

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":27
 *     print "GL glBindFramebuffer()"
 *     cgl.glBindFramebuffer ( target, framebuffer)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glBindRenderbuffer (GLenum target, GLuint renderbuffer) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":28
 *     cgl.glBindFramebuffer ( target, framebuffer)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glBindRenderbuffer (GLenum target, GLuint renderbuffer) with gil:
 *     print "GL glBindRenderbuffer()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); 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_ret); 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(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 28; __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_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":29
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glBindRenderbuffer (GLenum target, GLuint renderbuffer) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glBindRenderbuffer()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glBindRenderbuffer");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":30
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glBindRenderbuffer (GLenum target, GLuint renderbuffer) with gil:
 *     print "GL glBindRenderbuffer()"             # <<<<<<<<<<<<<<
 *     cgl.glBindRenderbuffer ( target, renderbuffer)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_7)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 30; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

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

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":32
 *     print "GL glBindRenderbuffer()"
 *     cgl.glBindRenderbuffer ( target, renderbuffer)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glBindTexture (GLenum target, GLuint texture) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":33
 *     cgl.glBindRenderbuffer ( target, renderbuffer)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glBindTexture (GLenum target, GLuint texture) with gil:
 *     print "GL glBindTexture()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); 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_ret); 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(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 33; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 33; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 33; __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_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":34
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glBindTexture (GLenum target, GLuint texture) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glBindTexture()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glBindTexture");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":35
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glBindTexture (GLenum target, GLuint texture) with gil:
 *     print "GL glBindTexture()"             # <<<<<<<<<<<<<<
 *     cgl.glBindTexture ( target, texture)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_8)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 35; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

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

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":37
 *     print "GL glBindTexture()"
 *     cgl.glBindTexture ( target, texture)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":38
 *     cgl.glBindTexture ( target, texture)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) with gil:
 *     print "GL glBlendColor()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); 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_ret); 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(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 38; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 38; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 38; __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_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":39
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glBlendColor()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glBlendColor");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":40
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) with gil:
 *     print "GL glBlendColor()"             # <<<<<<<<<<<<<<
 *     cgl.glBlendColor ( red, green, blue, alpha)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_9)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

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

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":42
 *     print "GL glBlendColor()"
 *     cgl.glBlendColor ( red, green, blue, alpha)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glBlendEquation ( GLenum mode ) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":43
 *     cgl.glBlendColor ( red, green, blue, alpha)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glBlendEquation ( GLenum mode ) with gil:
 *     print "GL glBlendEquation()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); 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 = PyLong_FromUnsignedLong(__pyx_v_ret); 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 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 43; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 43; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 43; __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.glBlendColor");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":44
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glBlendEquation ( GLenum mode ) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glBlendEquation()"
 *     cgl.glBlendEquation ( mode )
 */

static  void __pyx_f_4kivy_8graphics_14c_opengl_debug_glBlendEquation(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_mode) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glBlendEquation");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":45
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glBlendEquation ( GLenum mode ) with gil:
 *     print "GL glBlendEquation()"             # <<<<<<<<<<<<<<
 *     cgl.glBlendEquation ( mode )
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_10)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 45; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":46
 * cdef void   glBlendEquation ( GLenum mode ) with gil:
 *     print "GL glBlendEquation()"
 *     cgl.glBlendEquation ( mode )             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glBlendEquation(__pyx_v_mode);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":47
 *     print "GL glBlendEquation()"
 *     cgl.glBlendEquation ( mode )
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":48
 *     cgl.glBlendEquation ( mode )
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha) with gil:
 *     print "GL glBlendEquationSeparate()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); 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 = PyLong_FromUnsignedLong(__pyx_v_ret); 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_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 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;
    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.glBlendEquation");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":49
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glBlendEquationSeparate()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glBlendEquationSeparate");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":50
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha) with gil:
 *     print "GL glBlendEquationSeparate()"             # <<<<<<<<<<<<<<
 *     cgl.glBlendEquationSeparate ( modeRGB, modeAlpha)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_11)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 50; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":51
 * cdef void   glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha) with gil:
 *     print "GL glBlendEquationSeparate()"
 *     cgl.glBlendEquationSeparate ( modeRGB, modeAlpha)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glBlendEquationSeparate(__pyx_v_modeRGB, __pyx_v_modeAlpha);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":52
 *     print "GL glBlendEquationSeparate()"
 *     cgl.glBlendEquationSeparate ( modeRGB, modeAlpha)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glBlendFunc (GLenum sfactor, GLenum dfactor) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":53
 *     cgl.glBlendEquationSeparate ( modeRGB, modeAlpha)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glBlendFunc (GLenum sfactor, GLenum dfactor) with gil:
 *     print "GL glBlendFunc()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); 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_ret); 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(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 53; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 53; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 53; __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_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":54
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glBlendFunc (GLenum sfactor, GLenum dfactor) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glBlendFunc()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glBlendFunc");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":55
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glBlendFunc (GLenum sfactor, GLenum dfactor) with gil:
 *     print "GL glBlendFunc()"             # <<<<<<<<<<<<<<
 *     cgl.glBlendFunc ( sfactor, dfactor)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_12)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 55; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":56
 * cdef void   glBlendFunc (GLenum sfactor, GLenum dfactor) with gil:
 *     print "GL glBlendFunc()"
 *     cgl.glBlendFunc ( sfactor, dfactor)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glBlendFunc(__pyx_v_sfactor, __pyx_v_dfactor);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":57
 *     print "GL glBlendFunc()"
 *     cgl.glBlendFunc ( sfactor, dfactor)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glBlendFuncSeparate (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":58
 *     cgl.glBlendFunc ( sfactor, dfactor)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glBlendFuncSeparate (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) with gil:
 *     print "GL glBlendFuncSeparate()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); 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_ret); 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(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 58; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 58; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 58; __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_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":59
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glBlendFuncSeparate (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glBlendFuncSeparate()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glBlendFuncSeparate");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":60
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glBlendFuncSeparate (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) with gil:
 *     print "GL glBlendFuncSeparate()"             # <<<<<<<<<<<<<<
 *     cgl.glBlendFuncSeparate ( srcRGB, dstRGB, srcAlpha, dstAlpha)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_13)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 60; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

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

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

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":63
 *     cgl.glBlendFuncSeparate ( srcRGB, dstRGB, srcAlpha, dstAlpha)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glBufferData (GLenum target, GLsizeiptr size,  GLvoid* data, GLenum usage) with gil:
 *     print "GL glBufferData()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); 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_ret); 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 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 63; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 63; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 63; __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.glBlendFuncSeparate");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":64
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glBufferData (GLenum target, GLsizeiptr size,  GLvoid* data, GLenum usage) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glBufferData()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glBufferData");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":65
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glBufferData (GLenum target, GLsizeiptr size,  GLvoid* data, GLenum usage) with gil:
 *     print "GL glBufferData()"             # <<<<<<<<<<<<<<
 *     cgl.glBufferData ( target, size, data, usage)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_14)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 65; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":66
 * cdef void   glBufferData (GLenum target, GLsizeiptr size,  GLvoid* data, GLenum usage) with gil:
 *     print "GL glBufferData()"
 *     cgl.glBufferData ( target, size, data, usage)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glBufferData(__pyx_v_target, __pyx_v_size, __pyx_v_data, __pyx_v_usage);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":67
 *     print "GL glBufferData()"
 *     cgl.glBufferData ( target, size, data, usage)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size,  GLvoid* data) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":68
 *     cgl.glBufferData ( target, size, data, usage)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size,  GLvoid* data) with gil:
 *     print "GL glBufferSubData()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); 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 = PyLong_FromUnsignedLong(__pyx_v_ret); 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 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 68; __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.glBufferData");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":69
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size,  GLvoid* data) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glBufferSubData()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glBufferSubData");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":70
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size,  GLvoid* data) with gil:
 *     print "GL glBufferSubData()"             # <<<<<<<<<<<<<<
 *     cgl.glBufferSubData ( target, offset, size, data)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_15)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 70; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":71
 * cdef void   glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size,  GLvoid* data) with gil:
 *     print "GL glBufferSubData()"
 *     cgl.glBufferSubData ( target, offset, size, data)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glBufferSubData(__pyx_v_target, __pyx_v_offset, __pyx_v_size, __pyx_v_data);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":72
 *     print "GL glBufferSubData()"
 *     cgl.glBufferSubData ( target, offset, size, data)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef GLenum glCheckFramebufferStatus (GLenum target) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":73
 *     cgl.glBufferSubData ( target, offset, size, data)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef GLenum glCheckFramebufferStatus (GLenum target) with gil:
 *     print "GL glCheckFramebufferStatus()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); 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 = PyLong_FromUnsignedLong(__pyx_v_ret); 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 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 73; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 73; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 73; __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.glBufferSubData");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":74
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef GLenum glCheckFramebufferStatus (GLenum target) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glCheckFramebufferStatus()"
 *     return cgl.glCheckFramebufferStatus ( target)
 */

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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_r;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glCheckFramebufferStatus");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":75
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef GLenum glCheckFramebufferStatus (GLenum target) with gil:
 *     print "GL glCheckFramebufferStatus()"             # <<<<<<<<<<<<<<
 *     return cgl.glCheckFramebufferStatus ( target)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_16)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 75; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":76
 * cdef GLenum glCheckFramebufferStatus (GLenum target) with gil:
 *     print "GL glCheckFramebufferStatus()"
 *     return cgl.glCheckFramebufferStatus ( target)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  __pyx_r = glCheckFramebufferStatus(__pyx_v_target);
  goto __pyx_L0;

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":77
 *     print "GL glCheckFramebufferStatus()"
 *     return cgl.glCheckFramebufferStatus ( target)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glClear (GLbitfield mask) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":78
 *     return cgl.glCheckFramebufferStatus ( target)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glClear (GLbitfield mask) with gil:
 *     print "GL glClear()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); 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 = PyLong_FromUnsignedLong(__pyx_v_ret); 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_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 78; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 78; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 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;
    goto __pyx_L3;
  }
  __pyx_L3:;

  __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.glCheckFramebufferStatus");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":79
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glClear (GLbitfield mask) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glClear()"
 *     cgl.glClear ( mask)
 */

static  void __pyx_f_4kivy_8graphics_14c_opengl_debug_glClear(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLbitfield __pyx_v_mask) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glClear");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":80
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glClear (GLbitfield mask) with gil:
 *     print "GL glClear()"             # <<<<<<<<<<<<<<
 *     cgl.glClear ( mask)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_17)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 80; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":81
 * cdef void   glClear (GLbitfield mask) with gil:
 *     print "GL glClear()"
 *     cgl.glClear ( mask)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glClear(__pyx_v_mask);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":82
 *     print "GL glClear()"
 *     cgl.glClear ( mask)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":83
 *     cgl.glClear ( mask)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) with gil:
 *     print "GL glClearColor()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); 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 = PyLong_FromUnsignedLong(__pyx_v_ret); 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_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 83; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 83; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 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;
    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.glClear");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":84
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glClearColor()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glClearColor");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":85
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) with gil:
 *     print "GL glClearColor()"             # <<<<<<<<<<<<<<
 *     cgl.glClearColor ( red, green, blue, alpha)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_18)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 85; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

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

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":87
 *     print "GL glClearColor()"
 *     cgl.glClearColor ( red, green, blue, alpha)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glClearDepthf (GLclampf depth) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":88
 *     cgl.glClearColor ( red, green, blue, alpha)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glClearDepthf (GLclampf depth) with gil:
 *     print "GL glClearDepthf()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); 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 = PyLong_FromUnsignedLong(__pyx_v_ret); 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 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 88; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 88; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 88; __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.glClearColor");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":89
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glClearDepthf (GLclampf depth) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glClearDepthf()"
 *     cgl.glClearDepthf ( depth)
 */

static  void __pyx_f_4kivy_8graphics_14c_opengl_debug_glClearDepthf(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLclampf __pyx_v_depth) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glClearDepthf");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":90
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glClearDepthf (GLclampf depth) with gil:
 *     print "GL glClearDepthf()"             # <<<<<<<<<<<<<<
 *     cgl.glClearDepthf ( depth)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_19)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 90; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":91
 * cdef void   glClearDepthf (GLclampf depth) with gil:
 *     print "GL glClearDepthf()"
 *     cgl.glClearDepthf ( depth)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glClearDepthf(__pyx_v_depth);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":92
 *     print "GL glClearDepthf()"
 *     cgl.glClearDepthf ( depth)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glClearStencil (GLint s) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":93
 *     cgl.glClearDepthf ( depth)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glClearStencil (GLint s) with gil:
 *     print "GL glClearStencil()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 93; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 93; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 93; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 93; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 93; __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.glClearDepthf");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":94
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glClearStencil (GLint s) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glClearStencil()"
 *     cgl.glClearStencil ( s)
 */

static  void __pyx_f_4kivy_8graphics_14c_opengl_debug_glClearStencil(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLint __pyx_v_s) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glClearStencil");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":95
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glClearStencil (GLint s) with gil:
 *     print "GL glClearStencil()"             # <<<<<<<<<<<<<<
 *     cgl.glClearStencil ( s)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_20)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 95; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":96
 * cdef void   glClearStencil (GLint s) with gil:
 *     print "GL glClearStencil()"
 *     cgl.glClearStencil ( s)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glClearStencil(__pyx_v_s);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":97
 *     print "GL glClearStencil()"
 *     cgl.glClearStencil ( s)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":98
 *     cgl.glClearStencil ( s)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) with gil:
 *     print "GL glColorMask()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 98; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 98; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 98; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 98; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 98; __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.glClearStencil");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":99
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glColorMask()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glColorMask");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":100
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) with gil:
 *     print "GL glColorMask()"             # <<<<<<<<<<<<<<
 *     cgl.glColorMask ( red, green, blue, alpha)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_21)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 100; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

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

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":102
 *     print "GL glColorMask()"
 *     cgl.glColorMask ( red, green, blue, alpha)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glCompileShader (GLuint shader) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":103
 *     cgl.glColorMask ( red, green, blue, alpha)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glCompileShader (GLuint shader) with gil:
 *     print "GL glCompileShader()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 103; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 103; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 103; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 103; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 103; __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.glColorMask");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":104
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glCompileShader (GLuint shader) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glCompileShader()"
 *     cgl.glCompileShader ( shader)
 */

static  void __pyx_f_4kivy_8graphics_14c_opengl_debug_glCompileShader(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_shader) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glCompileShader");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":105
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glCompileShader (GLuint shader) with gil:
 *     print "GL glCompileShader()"             # <<<<<<<<<<<<<<
 *     cgl.glCompileShader ( shader)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_22)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 105; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":106
 * cdef void   glCompileShader (GLuint shader) with gil:
 *     print "GL glCompileShader()"
 *     cgl.glCompileShader ( shader)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glCompileShader(__pyx_v_shader);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":107
 *     print "GL glCompileShader()"
 *     cgl.glCompileShader ( shader)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %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 = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":108
 *     cgl.glCompileShader ( shader)
 *     ret = glGetError()
 *     if ret: print "ERR %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()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 108; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 108; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 108; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 108; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 108; __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.glCompileShader");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":109
 *     ret = glGetError()
 *     if ret: print "ERR %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()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glCompressedTexImage2D");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":110
 *     if ret: print "ERR %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()"             # <<<<<<<<<<<<<<
 *     cgl.glCompressedTexImage2D ( target, level, internalformat, width, height, border, imageSize, data)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_23)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 110; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":111
 * cdef void   glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize,  GLvoid* data) with gil:
 *     print "GL glCompressedTexImage2D()"
 *     cgl.glCompressedTexImage2D ( target, level, internalformat, width, height, border, imageSize, data)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %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);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":112
 *     print "GL glCompressedTexImage2D()"
 *     cgl.glCompressedTexImage2D ( target, level, internalformat, width, height, border, imageSize, data)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %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 = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":113
 *     cgl.glCompressedTexImage2D ( target, level, internalformat, width, height, border, imageSize, data)
 *     ret = glGetError()
 *     if ret: print "ERR %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()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 113; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 113; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 113; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 113; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 113; __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.glCompressedTexImage2D");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":114
 *     ret = glGetError()
 *     if ret: print "ERR %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()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glCompressedTexSubImage2D");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":115
 *     if ret: print "ERR %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()"             # <<<<<<<<<<<<<<
 *     cgl.glCompressedTexSubImage2D ( target, level, xoffset, yoffset, width, height, format, imageSize, data)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_24)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 115; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":116
 * 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()"
 *     cgl.glCompressedTexSubImage2D ( target, level, xoffset, yoffset, width, height, format, imageSize, data)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %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);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":117
 *     print "GL glCompressedTexSubImage2D()"
 *     cgl.glCompressedTexSubImage2D ( target, level, xoffset, yoffset, width, height, format, imageSize, data)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %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 = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":118
 *     cgl.glCompressedTexSubImage2D ( target, level, xoffset, yoffset, width, height, format, imageSize, data)
 *     ret = glGetError()
 *     if ret: print "ERR %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()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 118; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 118; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 118; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 118; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 118; __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.glCompressedTexSubImage2D");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":119
 *     ret = glGetError()
 *     if ret: print "ERR %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()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glCopyTexImage2D");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":120
 *     if ret: print "ERR %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()"             # <<<<<<<<<<<<<<
 *     cgl.glCopyTexImage2D ( target, level, internalformat, x, y, width, height, border)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_25)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 120; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":121
 * cdef void   glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) with gil:
 *     print "GL glCopyTexImage2D()"
 *     cgl.glCopyTexImage2D ( target, level, internalformat, x, y, width, height, border)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %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);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":122
 *     print "GL glCopyTexImage2D()"
 *     cgl.glCopyTexImage2D ( target, level, internalformat, x, y, width, height, border)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %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 = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":123
 *     cgl.glCopyTexImage2D ( target, level, internalformat, x, y, width, height, border)
 *     ret = glGetError()
 *     if ret: print "ERR %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()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 123; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 123; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 123; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 123; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 123; __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.glCopyTexImage2D");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":124
 *     ret = glGetError()
 *     if ret: print "ERR %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()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glCopyTexSubImage2D");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":125
 *     if ret: print "ERR %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()"             # <<<<<<<<<<<<<<
 *     cgl.glCopyTexSubImage2D ( target, level, xoffset, yoffset, x, y, width, height)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_26)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 125; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":126
 * cdef void   glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) with gil:
 *     print "GL glCopyTexSubImage2D()"
 *     cgl.glCopyTexSubImage2D ( target, level, xoffset, yoffset, x, y, width, height)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %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);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":127
 *     print "GL glCopyTexSubImage2D()"
 *     cgl.glCopyTexSubImage2D ( target, level, xoffset, yoffset, x, y, width, height)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef GLuint glCreateProgram () with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":128
 *     cgl.glCopyTexSubImage2D ( target, level, xoffset, yoffset, x, y, width, height)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef GLuint glCreateProgram () with gil:
 *     print "GL glCreateProgram()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 128; __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.glCopyTexSubImage2D");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":129
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef GLuint glCreateProgram () with gil:             # <<<<<<<<<<<<<<
 *     print "GL glCreateProgram()"
 *     return cgl.glCreateProgram ()
 */

static  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_f_4kivy_8graphics_14c_opengl_debug_glCreateProgram(void) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_r;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glCreateProgram");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":130
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef GLuint glCreateProgram () with gil:
 *     print "GL glCreateProgram()"             # <<<<<<<<<<<<<<
 *     return cgl.glCreateProgram ()
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_27)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 130; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":131
 * cdef GLuint glCreateProgram () with gil:
 *     print "GL glCreateProgram()"
 *     return cgl.glCreateProgram ()             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  __pyx_r = glCreateProgram();
  goto __pyx_L0;

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":132
 *     print "GL glCreateProgram()"
 *     return cgl.glCreateProgram ()
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef GLuint glCreateShader (GLenum type) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

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

  __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.glCreateProgram");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":134
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef GLuint glCreateShader (GLenum type) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glCreateShader()"
 *     return cgl.glCreateShader ( type)
 */

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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_r;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glCreateShader");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":135
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef GLuint glCreateShader (GLenum type) with gil:
 *     print "GL glCreateShader()"             # <<<<<<<<<<<<<<
 *     return cgl.glCreateShader ( type)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_28)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 135; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":136
 * cdef GLuint glCreateShader (GLenum type) with gil:
 *     print "GL glCreateShader()"
 *     return cgl.glCreateShader ( type)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  __pyx_r = glCreateShader(__pyx_v_type);
  goto __pyx_L0;

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":137
 *     print "GL glCreateShader()"
 *     return cgl.glCreateShader ( type)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glCullFace (GLenum mode) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

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

  __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.glCreateShader");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":139
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glCullFace (GLenum mode) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glCullFace()"
 *     cgl.glCullFace ( mode)
 */

static  void __pyx_f_4kivy_8graphics_14c_opengl_debug_glCullFace(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_mode) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glCullFace");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":140
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glCullFace (GLenum mode) with gil:
 *     print "GL glCullFace()"             # <<<<<<<<<<<<<<
 *     cgl.glCullFace ( mode)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_29)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":141
 * cdef void   glCullFace (GLenum mode) with gil:
 *     print "GL glCullFace()"
 *     cgl.glCullFace ( mode)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glCullFace(__pyx_v_mode);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":142
 *     print "GL glCullFace()"
 *     cgl.glCullFace ( mode)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDeleteBuffers (GLsizei n,  GLuint* buffers) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":143
 *     cgl.glCullFace ( mode)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glDeleteBuffers (GLsizei n,  GLuint* buffers) with gil:
 *     print "GL glDeleteBuffers()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 143; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 143; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 143; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 143; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 143; __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.glCullFace");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":144
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDeleteBuffers (GLsizei n,  GLuint* buffers) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glDeleteBuffers()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glDeleteBuffers");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":145
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDeleteBuffers (GLsizei n,  GLuint* buffers) with gil:
 *     print "GL glDeleteBuffers()"             # <<<<<<<<<<<<<<
 *     cgl.glDeleteBuffers ( n, buffers)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_30)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 145; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":146
 * cdef void   glDeleteBuffers (GLsizei n,  GLuint* buffers) with gil:
 *     print "GL glDeleteBuffers()"
 *     cgl.glDeleteBuffers ( n, buffers)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glDeleteBuffers(__pyx_v_n, __pyx_v_buffers);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":147
 *     print "GL glDeleteBuffers()"
 *     cgl.glDeleteBuffers ( n, buffers)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDeleteFramebuffers (GLsizei n,  GLuint* framebuffers) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":148
 *     cgl.glDeleteBuffers ( n, buffers)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glDeleteFramebuffers (GLsizei n,  GLuint* framebuffers) with gil:
 *     print "GL glDeleteFramebuffers()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 148; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 148; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 148; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 148; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 148; __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.glDeleteBuffers");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":149
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDeleteFramebuffers (GLsizei n,  GLuint* framebuffers) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glDeleteFramebuffers()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glDeleteFramebuffers");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":150
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDeleteFramebuffers (GLsizei n,  GLuint* framebuffers) with gil:
 *     print "GL glDeleteFramebuffers()"             # <<<<<<<<<<<<<<
 *     cgl.glDeleteFramebuffers ( n, framebuffers)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_31)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 150; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":151
 * cdef void   glDeleteFramebuffers (GLsizei n,  GLuint* framebuffers) with gil:
 *     print "GL glDeleteFramebuffers()"
 *     cgl.glDeleteFramebuffers ( n, framebuffers)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glDeleteFramebuffers(__pyx_v_n, __pyx_v_framebuffers);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":152
 *     print "GL glDeleteFramebuffers()"
 *     cgl.glDeleteFramebuffers ( n, framebuffers)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDeleteProgram (GLuint program) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":153
 *     cgl.glDeleteFramebuffers ( n, framebuffers)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glDeleteProgram (GLuint program) with gil:
 *     print "GL glDeleteProgram()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 153; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 153; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 153; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 153; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 153; __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.glDeleteFramebuffers");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":154
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDeleteProgram (GLuint program) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glDeleteProgram()"
 *     cgl.glDeleteProgram ( program)
 */

static  void __pyx_f_4kivy_8graphics_14c_opengl_debug_glDeleteProgram(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_program) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glDeleteProgram");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":155
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDeleteProgram (GLuint program) with gil:
 *     print "GL glDeleteProgram()"             # <<<<<<<<<<<<<<
 *     cgl.glDeleteProgram ( program)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_32)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 155; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":156
 * cdef void   glDeleteProgram (GLuint program) with gil:
 *     print "GL glDeleteProgram()"
 *     cgl.glDeleteProgram ( program)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glDeleteProgram(__pyx_v_program);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":157
 *     print "GL glDeleteProgram()"
 *     cgl.glDeleteProgram ( program)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDeleteRenderbuffers (GLsizei n,  GLuint* renderbuffers) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":158
 *     cgl.glDeleteProgram ( program)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glDeleteRenderbuffers (GLsizei n,  GLuint* renderbuffers) with gil:
 *     print "GL glDeleteRenderbuffers()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 158; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 158; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 158; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 158; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 158; __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.glDeleteProgram");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":159
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDeleteRenderbuffers (GLsizei n,  GLuint* renderbuffers) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glDeleteRenderbuffers()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glDeleteRenderbuffers");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":160
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDeleteRenderbuffers (GLsizei n,  GLuint* renderbuffers) with gil:
 *     print "GL glDeleteRenderbuffers()"             # <<<<<<<<<<<<<<
 *     cgl.glDeleteRenderbuffers ( n, renderbuffers)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_33)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 160; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":161
 * cdef void   glDeleteRenderbuffers (GLsizei n,  GLuint* renderbuffers) with gil:
 *     print "GL glDeleteRenderbuffers()"
 *     cgl.glDeleteRenderbuffers ( n, renderbuffers)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glDeleteRenderbuffers(__pyx_v_n, __pyx_v_renderbuffers);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":162
 *     print "GL glDeleteRenderbuffers()"
 *     cgl.glDeleteRenderbuffers ( n, renderbuffers)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDeleteShader (GLuint shader) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":163
 *     cgl.glDeleteRenderbuffers ( n, renderbuffers)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glDeleteShader (GLuint shader) with gil:
 *     print "GL glDeleteShader()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 163; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 163; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 163; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 163; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 163; __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.glDeleteRenderbuffers");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":164
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDeleteShader (GLuint shader) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glDeleteShader()"
 *     cgl.glDeleteShader ( shader)
 */

static  void __pyx_f_4kivy_8graphics_14c_opengl_debug_glDeleteShader(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_shader) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glDeleteShader");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":165
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDeleteShader (GLuint shader) with gil:
 *     print "GL glDeleteShader()"             # <<<<<<<<<<<<<<
 *     cgl.glDeleteShader ( shader)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_34)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 165; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":166
 * cdef void   glDeleteShader (GLuint shader) with gil:
 *     print "GL glDeleteShader()"
 *     cgl.glDeleteShader ( shader)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glDeleteShader(__pyx_v_shader);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":167
 *     print "GL glDeleteShader()"
 *     cgl.glDeleteShader ( shader)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDeleteTextures (GLsizei n,  GLuint* textures) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":168
 *     cgl.glDeleteShader ( shader)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glDeleteTextures (GLsizei n,  GLuint* textures) with gil:
 *     print "GL glDeleteTextures()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 168; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 168; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 168; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 168; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 168; __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.glDeleteShader");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":169
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDeleteTextures (GLsizei n,  GLuint* textures) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glDeleteTextures()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glDeleteTextures");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":170
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDeleteTextures (GLsizei n,  GLuint* textures) with gil:
 *     print "GL glDeleteTextures()"             # <<<<<<<<<<<<<<
 *     cgl.glDeleteTextures ( n, textures)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_35)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 170; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":171
 * cdef void   glDeleteTextures (GLsizei n,  GLuint* textures) with gil:
 *     print "GL glDeleteTextures()"
 *     cgl.glDeleteTextures ( n, textures)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glDeleteTextures(__pyx_v_n, __pyx_v_textures);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":172
 *     print "GL glDeleteTextures()"
 *     cgl.glDeleteTextures ( n, textures)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDepthFunc (GLenum func) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":173
 *     cgl.glDeleteTextures ( n, textures)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glDepthFunc (GLenum func) with gil:
 *     print "GL glDepthFunc()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 173; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 173; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 173; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 173; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 173; __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.glDeleteTextures");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":174
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDepthFunc (GLenum func) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glDepthFunc()"
 *     cgl.glDepthFunc ( func)
 */

static  void __pyx_f_4kivy_8graphics_14c_opengl_debug_glDepthFunc(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_func) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glDepthFunc");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":175
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDepthFunc (GLenum func) with gil:
 *     print "GL glDepthFunc()"             # <<<<<<<<<<<<<<
 *     cgl.glDepthFunc ( func)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_36)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 175; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":176
 * cdef void   glDepthFunc (GLenum func) with gil:
 *     print "GL glDepthFunc()"
 *     cgl.glDepthFunc ( func)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glDepthFunc(__pyx_v_func);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":177
 *     print "GL glDepthFunc()"
 *     cgl.glDepthFunc ( func)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDepthMask (GLboolean flag) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":178
 *     cgl.glDepthFunc ( func)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glDepthMask (GLboolean flag) with gil:
 *     print "GL glDepthMask()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 178; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 178; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 178; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 178; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 178; __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.glDepthFunc");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":179
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDepthMask (GLboolean flag) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glDepthMask()"
 *     cgl.glDepthMask ( flag)
 */

static  void __pyx_f_4kivy_8graphics_14c_opengl_debug_glDepthMask(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean __pyx_v_flag) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glDepthMask");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":180
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDepthMask (GLboolean flag) with gil:
 *     print "GL glDepthMask()"             # <<<<<<<<<<<<<<
 *     cgl.glDepthMask ( flag)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_37)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 180; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":181
 * cdef void   glDepthMask (GLboolean flag) with gil:
 *     print "GL glDepthMask()"
 *     cgl.glDepthMask ( flag)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glDepthMask(__pyx_v_flag);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":182
 *     print "GL glDepthMask()"
 *     cgl.glDepthMask ( flag)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDepthRangef (GLclampf zNear, GLclampf zFar) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":183
 *     cgl.glDepthMask ( flag)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glDepthRangef (GLclampf zNear, GLclampf zFar) with gil:
 *     print "GL glDepthRangef()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 183; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 183; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 183; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 183; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 183; __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.glDepthMask");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":184
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDepthRangef (GLclampf zNear, GLclampf zFar) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glDepthRangef()"
 *     cgl.glDepthRangef ( zNear, zFar)
 */

static  void __pyx_f_4kivy_8graphics_14c_opengl_debug_glDepthRangef(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLclampf __pyx_v_zNear, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLclampf __pyx_v_zFar) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glDepthRangef");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":185
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDepthRangef (GLclampf zNear, GLclampf zFar) with gil:
 *     print "GL glDepthRangef()"             # <<<<<<<<<<<<<<
 *     cgl.glDepthRangef ( zNear, zFar)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_38)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 185; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":186
 * cdef void   glDepthRangef (GLclampf zNear, GLclampf zFar) with gil:
 *     print "GL glDepthRangef()"
 *     cgl.glDepthRangef ( zNear, zFar)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glDepthRangef(__pyx_v_zNear, __pyx_v_zFar);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":187
 *     print "GL glDepthRangef()"
 *     cgl.glDepthRangef ( zNear, zFar)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDetachShader (GLuint program, GLuint shader) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":188
 *     cgl.glDepthRangef ( zNear, zFar)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glDetachShader (GLuint program, GLuint shader) with gil:
 *     print "GL glDetachShader()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 188; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 188; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 188; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 188; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 188; __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.glDepthRangef");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":189
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDetachShader (GLuint program, GLuint shader) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glDetachShader()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glDetachShader");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":190
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDetachShader (GLuint program, GLuint shader) with gil:
 *     print "GL glDetachShader()"             # <<<<<<<<<<<<<<
 *     cgl.glDetachShader ( program, shader)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_39)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 190; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":191
 * cdef void   glDetachShader (GLuint program, GLuint shader) with gil:
 *     print "GL glDetachShader()"
 *     cgl.glDetachShader ( program, shader)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glDetachShader(__pyx_v_program, __pyx_v_shader);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":192
 *     print "GL glDetachShader()"
 *     cgl.glDetachShader ( program, shader)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDisable (GLenum cap) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":193
 *     cgl.glDetachShader ( program, shader)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glDisable (GLenum cap) with gil:
 *     print "GL glDisable()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 193; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 193; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 193; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 193; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 193; __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_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":194
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDisable (GLenum cap) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glDisable()"
 *     cgl.glDisable ( cap)
 */

static  void __pyx_f_4kivy_8graphics_14c_opengl_debug_glDisable(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_cap) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glDisable");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":195
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDisable (GLenum cap) with gil:
 *     print "GL glDisable()"             # <<<<<<<<<<<<<<
 *     cgl.glDisable ( cap)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_40)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 195; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":196
 * cdef void   glDisable (GLenum cap) with gil:
 *     print "GL glDisable()"
 *     cgl.glDisable ( cap)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glDisable(__pyx_v_cap);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":197
 *     print "GL glDisable()"
 *     cgl.glDisable ( cap)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDisableVertexAttribArray (GLuint index) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":198
 *     cgl.glDisable ( cap)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glDisableVertexAttribArray (GLuint index) with gil:
 *     print "GL glDisableVertexAttribArray()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); 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);
    __pyx_t_2 = PyLong_FromUnsignedLong(__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_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 198; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); 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_3)); __pyx_t_3 = 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.glDisable");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":199
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDisableVertexAttribArray (GLuint index) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glDisableVertexAttribArray()"
 *     cgl.glDisableVertexAttribArray ( index)
 */

static  void __pyx_f_4kivy_8graphics_14c_opengl_debug_glDisableVertexAttribArray(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_index) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glDisableVertexAttribArray");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":200
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDisableVertexAttribArray (GLuint index) with gil:
 *     print "GL glDisableVertexAttribArray()"             # <<<<<<<<<<<<<<
 *     cgl.glDisableVertexAttribArray ( index)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_41)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 200; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":201
 * cdef void   glDisableVertexAttribArray (GLuint index) with gil:
 *     print "GL glDisableVertexAttribArray()"
 *     cgl.glDisableVertexAttribArray ( index)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glDisableVertexAttribArray(__pyx_v_index);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":202
 *     print "GL glDisableVertexAttribArray()"
 *     cgl.glDisableVertexAttribArray ( index)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDrawArrays (GLenum mode, GLint first, GLsizei count) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":203
 *     cgl.glDisableVertexAttribArray ( index)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glDrawArrays (GLenum mode, GLint first, GLsizei count) with gil:
 *     print "GL glDrawArrays()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__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_2 = PyLong_FromUnsignedLong(__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_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 203; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 203; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 203; __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.glDisableVertexAttribArray");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":204
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDrawArrays (GLenum mode, GLint first, GLsizei count) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glDrawArrays()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glDrawArrays");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":205
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDrawArrays (GLenum mode, GLint first, GLsizei count) with gil:
 *     print "GL glDrawArrays()"             # <<<<<<<<<<<<<<
 *     cgl.glDrawArrays ( mode, first, count)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_42)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 205; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

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

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

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":208
 *     cgl.glDrawArrays ( mode, first, count)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glDrawElements (GLenum mode, GLsizei count, GLenum type,  GLvoid* indices) with gil:
 *     print "GL glDrawElements()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__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_2 = PyLong_FromUnsignedLong(__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_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 208; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 208; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 208; __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.glDrawArrays");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":209
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDrawElements (GLenum mode, GLsizei count, GLenum type,  GLvoid* indices) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glDrawElements()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glDrawElements");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":210
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glDrawElements (GLenum mode, GLsizei count, GLenum type,  GLvoid* indices) with gil:
 *     print "GL glDrawElements()"             # <<<<<<<<<<<<<<
 *     cgl.glDrawElements ( mode, count, type, indices)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_43)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 210; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":211
 * cdef void   glDrawElements (GLenum mode, GLsizei count, GLenum type,  GLvoid* indices) with gil:
 *     print "GL glDrawElements()"
 *     cgl.glDrawElements ( mode, count, type, indices)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glDrawElements(__pyx_v_mode, __pyx_v_count, __pyx_v_type, __pyx_v_indices);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":212
 *     print "GL glDrawElements()"
 *     cgl.glDrawElements ( mode, count, type, indices)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glEnable (GLenum cap) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":213
 *     cgl.glDrawElements ( mode, count, type, indices)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glEnable (GLenum cap) with gil:
 *     print "GL glEnable()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 213; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); 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);
    __pyx_t_3 = PyTuple_New(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));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 213; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 213; __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.glDrawElements");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":214
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glEnable (GLenum cap) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glEnable()"
 *     cgl.glEnable ( cap)
 */

static  void __pyx_f_4kivy_8graphics_14c_opengl_debug_glEnable(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_cap) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glEnable");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":215
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glEnable (GLenum cap) with gil:
 *     print "GL glEnable()"             # <<<<<<<<<<<<<<
 *     cgl.glEnable ( cap)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_44)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 215; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":216
 * cdef void   glEnable (GLenum cap) with gil:
 *     print "GL glEnable()"
 *     cgl.glEnable ( cap)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glEnable(__pyx_v_cap);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":217
 *     print "GL glEnable()"
 *     cgl.glEnable ( cap)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glEnableVertexAttribArray (GLuint index) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":218
 *     cgl.glEnable ( cap)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glEnableVertexAttribArray (GLuint index) with gil:
 *     print "GL glEnableVertexAttribArray()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 218; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 218; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __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(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 218; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 218; __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.glEnable");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":219
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glEnableVertexAttribArray (GLuint index) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glEnableVertexAttribArray()"
 *     cgl.glEnableVertexAttribArray ( index)
 */

static  void __pyx_f_4kivy_8graphics_14c_opengl_debug_glEnableVertexAttribArray(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_index) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glEnableVertexAttribArray");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":220
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glEnableVertexAttribArray (GLuint index) with gil:
 *     print "GL glEnableVertexAttribArray()"             # <<<<<<<<<<<<<<
 *     cgl.glEnableVertexAttribArray ( index)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_45)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 220; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":221
 * cdef void   glEnableVertexAttribArray (GLuint index) with gil:
 *     print "GL glEnableVertexAttribArray()"
 *     cgl.glEnableVertexAttribArray ( index)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glEnableVertexAttribArray(__pyx_v_index);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":222
 *     print "GL glEnableVertexAttribArray()"
 *     cgl.glEnableVertexAttribArray ( index)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glFinish () with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":223
 *     cgl.glEnableVertexAttribArray ( index)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glFinish () with gil:
 *     print "GL glFinish()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__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_2 = PyLong_FromUnsignedLong(__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_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 223; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 223; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 223; __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.glEnableVertexAttribArray");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":224
 *     ret = glGetError()
 *     if ret: print "ERR %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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glFinish");

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

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":226
 * cdef void   glFinish () with gil:
 *     print "GL glFinish()"
 *     cgl.glFinish ()             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glFinish();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":227
 *     print "GL glFinish()"
 *     cgl.glFinish ()
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glFlush () with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":228
 *     cgl.glFinish ()
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glFlush () with gil:
 *     print "GL glFlush()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__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_2 = PyLong_FromUnsignedLong(__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_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 228; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 228; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 228; __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.glFinish");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":229
 *     ret = glGetError()
 *     if ret: print "ERR %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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glFlush");

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

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":231
 * cdef void   glFlush () with gil:
 *     print "GL glFlush()"
 *     cgl.glFlush ()             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glFlush();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":232
 *     print "GL glFlush()"
 *     cgl.glFlush ()
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":233
 *     cgl.glFlush ()
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) with gil:
 *     print "GL glFramebufferRenderbuffer()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 233; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__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 = PyTuple_New(2); 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));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 233; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 233; __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.glFlush");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":234
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glFramebufferRenderbuffer()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glFramebufferRenderbuffer");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":235
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) with gil:
 *     print "GL glFramebufferRenderbuffer()"             # <<<<<<<<<<<<<<
 *     cgl.glFramebufferRenderbuffer ( target, attachment, renderbuffertarget, renderbuffer)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_48)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 235; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

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

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

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":238
 *     cgl.glFramebufferRenderbuffer ( target, attachment, renderbuffertarget, renderbuffer)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) with gil:
 *     print "GL glFramebufferTexture2D()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__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 = PyTuple_New(2); 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));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 238; __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.glFramebufferRenderbuffer");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":239
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glFramebufferTexture2D()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glFramebufferTexture2D");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":240
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) with gil:
 *     print "GL glFramebufferTexture2D()"             # <<<<<<<<<<<<<<
 *     cgl.glFramebufferTexture2D ( target, attachment, textarget, texture, level)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_49)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 240; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

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

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":242
 *     print "GL glFramebufferTexture2D()"
 *     cgl.glFramebufferTexture2D ( target, attachment, textarget, texture, level)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glFrontFace (GLenum mode) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":243
 *     cgl.glFramebufferTexture2D ( target, attachment, textarget, texture, level)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glFrontFace (GLenum mode) with gil:
 *     print "GL glFrontFace()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 243; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 243; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __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(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 243; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 243; __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.glFramebufferTexture2D");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":244
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glFrontFace (GLenum mode) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glFrontFace()"
 *     cgl.glFrontFace ( mode)
 */

static  void __pyx_f_4kivy_8graphics_14c_opengl_debug_glFrontFace(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_mode) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glFrontFace");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":245
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glFrontFace (GLenum mode) with gil:
 *     print "GL glFrontFace()"             # <<<<<<<<<<<<<<
 *     cgl.glFrontFace ( mode)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_50)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 245; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":246
 * cdef void   glFrontFace (GLenum mode) with gil:
 *     print "GL glFrontFace()"
 *     cgl.glFrontFace ( mode)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glFrontFace(__pyx_v_mode);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":247
 *     print "GL glFrontFace()"
 *     cgl.glFrontFace ( mode)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGenBuffers (GLsizei n, GLuint* buffers) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":248
 *     cgl.glFrontFace ( mode)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGenBuffers (GLsizei n, GLuint* buffers) with gil:
 *     print "GL glGenBuffers()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 248; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 248; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 248; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 248; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 248; __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.glFrontFace");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":249
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGenBuffers (GLsizei n, GLuint* buffers) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGenBuffers()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGenBuffers");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":250
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGenBuffers (GLsizei n, GLuint* buffers) with gil:
 *     print "GL glGenBuffers()"             # <<<<<<<<<<<<<<
 *     cgl.glGenBuffers ( n, buffers)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_51)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 250; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":251
 * cdef void   glGenBuffers (GLsizei n, GLuint* buffers) with gil:
 *     print "GL glGenBuffers()"
 *     cgl.glGenBuffers ( n, buffers)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glGenBuffers(__pyx_v_n, __pyx_v_buffers);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":252
 *     print "GL glGenBuffers()"
 *     cgl.glGenBuffers ( n, buffers)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGenerateMipmap (GLenum target) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":253
 *     cgl.glGenBuffers ( n, buffers)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGenerateMipmap (GLenum target) with gil:
 *     print "GL glGenerateMipmap()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__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_2 = PyLong_FromUnsignedLong(__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_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 253; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 253; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 253; __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.glGenBuffers");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":254
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGenerateMipmap (GLenum target) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGenerateMipmap()"
 *     cgl.glGenerateMipmap ( target)
 */

static  void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGenerateMipmap(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_target) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGenerateMipmap");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":255
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGenerateMipmap (GLenum target) with gil:
 *     print "GL glGenerateMipmap()"             # <<<<<<<<<<<<<<
 *     cgl.glGenerateMipmap ( target)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_52)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 255; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":256
 * cdef void   glGenerateMipmap (GLenum target) with gil:
 *     print "GL glGenerateMipmap()"
 *     cgl.glGenerateMipmap ( target)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glGenerateMipmap(__pyx_v_target);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":257
 *     print "GL glGenerateMipmap()"
 *     cgl.glGenerateMipmap ( target)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGenFramebuffers (GLsizei n, GLuint* framebuffers) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":258
 *     cgl.glGenerateMipmap ( target)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGenFramebuffers (GLsizei n, GLuint* framebuffers) with gil:
 *     print "GL glGenFramebuffers()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); 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);
    __pyx_t_2 = PyLong_FromUnsignedLong(__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 = PyTuple_New(2); 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));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 258; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 258; __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.glGenerateMipmap");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":259
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGenFramebuffers (GLsizei n, GLuint* framebuffers) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGenFramebuffers()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGenFramebuffers");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":260
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGenFramebuffers (GLsizei n, GLuint* framebuffers) with gil:
 *     print "GL glGenFramebuffers()"             # <<<<<<<<<<<<<<
 *     cgl.glGenFramebuffers ( n, framebuffers)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_53)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 260; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":261
 * cdef void   glGenFramebuffers (GLsizei n, GLuint* framebuffers) with gil:
 *     print "GL glGenFramebuffers()"
 *     cgl.glGenFramebuffers ( n, framebuffers)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glGenFramebuffers(__pyx_v_n, __pyx_v_framebuffers);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":262
 *     print "GL glGenFramebuffers()"
 *     cgl.glGenFramebuffers ( n, framebuffers)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGenRenderbuffers (GLsizei n, GLuint* renderbuffers) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":263
 *     cgl.glGenFramebuffers ( n, framebuffers)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGenRenderbuffers (GLsizei n, GLuint* renderbuffers) with gil:
 *     print "GL glGenRenderbuffers()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__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_2 = PyLong_FromUnsignedLong(__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_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 263; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 263; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 263; __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.glGenFramebuffers");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":264
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGenRenderbuffers (GLsizei n, GLuint* renderbuffers) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGenRenderbuffers()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGenRenderbuffers");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":265
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGenRenderbuffers (GLsizei n, GLuint* renderbuffers) with gil:
 *     print "GL glGenRenderbuffers()"             # <<<<<<<<<<<<<<
 *     cgl.glGenRenderbuffers ( n, renderbuffers)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_54)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 265; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":266
 * cdef void   glGenRenderbuffers (GLsizei n, GLuint* renderbuffers) with gil:
 *     print "GL glGenRenderbuffers()"
 *     cgl.glGenRenderbuffers ( n, renderbuffers)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glGenRenderbuffers(__pyx_v_n, __pyx_v_renderbuffers);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":267
 *     print "GL glGenRenderbuffers()"
 *     cgl.glGenRenderbuffers ( n, renderbuffers)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGenTextures (GLsizei n, GLuint* textures) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":268
 *     cgl.glGenRenderbuffers ( n, renderbuffers)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGenTextures (GLsizei n, GLuint* textures) with gil:
 *     print "GL glGenTextures()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); 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);
    __pyx_t_2 = PyLong_FromUnsignedLong(__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 = PyTuple_New(2); 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));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 268; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 268; __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.glGenRenderbuffers");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":269
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGenTextures (GLsizei n, GLuint* textures) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGenTextures()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGenTextures");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":270
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGenTextures (GLsizei n, GLuint* textures) with gil:
 *     print "GL glGenTextures()"             # <<<<<<<<<<<<<<
 *     cgl.glGenTextures ( n, textures)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_55)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 270; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":271
 * cdef void   glGenTextures (GLsizei n, GLuint* textures) with gil:
 *     print "GL glGenTextures()"
 *     cgl.glGenTextures ( n, textures)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glGenTextures(__pyx_v_n, __pyx_v_textures);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":272
 *     print "GL glGenTextures()"
 *     cgl.glGenTextures ( n, textures)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %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 = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":273
 *     cgl.glGenTextures ( n, textures)
 *     ret = glGetError()
 *     if ret: print "ERR %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()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); 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);
    __pyx_t_2 = PyLong_FromUnsignedLong(__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 = PyTuple_New(2); 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));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 273; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 273; __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.glGenTextures");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":274
 *     ret = glGetError()
 *     if ret: print "ERR %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()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetActiveAttrib");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":275
 *     if ret: print "ERR %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()"             # <<<<<<<<<<<<<<
 *     cgl.glGetActiveAttrib ( program, index, bufsize, length, size, type, name)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_56)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 275; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":276
 * cdef void   glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) with gil:
 *     print "GL glGetActiveAttrib()"
 *     cgl.glGetActiveAttrib ( program, index, bufsize, length, size, type, name)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %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);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":277
 *     print "GL glGetActiveAttrib()"
 *     cgl.glGetActiveAttrib ( program, index, bufsize, length, size, type, name)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %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 = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":278
 *     cgl.glGetActiveAttrib ( program, index, bufsize, length, size, type, name)
 *     ret = glGetError()
 *     if ret: print "ERR %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()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); 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);
    __pyx_t_2 = PyLong_FromUnsignedLong(__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 = PyTuple_New(2); 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));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 278; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 278; __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.glGetActiveAttrib");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":279
 *     ret = glGetError()
 *     if ret: print "ERR %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()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetActiveUniform");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":280
 *     if ret: print "ERR %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()"             # <<<<<<<<<<<<<<
 *     cgl.glGetActiveUniform ( program, index, bufsize, length, size, type, name)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_57)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 280; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":281
 * cdef void   glGetActiveUniform (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) with gil:
 *     print "GL glGetActiveUniform()"
 *     cgl.glGetActiveUniform ( program, index, bufsize, length, size, type, name)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %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);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":282
 *     print "GL glGetActiveUniform()"
 *     cgl.glGetActiveUniform ( program, index, bufsize, length, size, type, name)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetAttachedShaders (GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":283
 *     cgl.glGetActiveUniform ( program, index, bufsize, length, size, type, name)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGetAttachedShaders (GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) with gil:
 *     print "GL glGetAttachedShaders()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 283; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 283; __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.glGetActiveUniform");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":284
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetAttachedShaders (GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetAttachedShaders()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetAttachedShaders");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":285
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetAttachedShaders (GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) with gil:
 *     print "GL glGetAttachedShaders()"             # <<<<<<<<<<<<<<
 *     cgl.glGetAttachedShaders ( program, maxcount, count, shaders)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_58)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":286
 * cdef void   glGetAttachedShaders (GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) with gil:
 *     print "GL glGetAttachedShaders()"
 *     cgl.glGetAttachedShaders ( program, maxcount, count, shaders)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glGetAttachedShaders(__pyx_v_program, __pyx_v_maxcount, __pyx_v_count, __pyx_v_shaders);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":287
 *     print "GL glGetAttachedShaders()"
 *     cgl.glGetAttachedShaders ( program, maxcount, count, shaders)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef int    glGetAttribLocation (GLuint program,  GLchar* name) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":288
 *     cgl.glGetAttachedShaders ( program, maxcount, count, shaders)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef int    glGetAttribLocation (GLuint program,  GLchar* name) with gil:
 *     print "GL glGetAttribLocation()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 288; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 288; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 288; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 288; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 288; __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.glGetAttachedShaders");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":289
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef int    glGetAttribLocation (GLuint program,  GLchar* name) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetAttribLocation()"
 *     return cgl.glGetAttribLocation ( program, name)
 */

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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  int __pyx_r;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetAttribLocation");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":290
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef int    glGetAttribLocation (GLuint program,  GLchar* name) with gil:
 *     print "GL glGetAttribLocation()"             # <<<<<<<<<<<<<<
 *     return cgl.glGetAttribLocation ( program, name)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_59)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 290; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":291
 * cdef int    glGetAttribLocation (GLuint program,  GLchar* name) with gil:
 *     print "GL glGetAttribLocation()"
 *     return cgl.glGetAttribLocation ( program, name)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  __pyx_r = glGetAttribLocation(__pyx_v_program, __pyx_v_name);
  goto __pyx_L0;

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":292
 *     print "GL glGetAttribLocation()"
 *     return cgl.glGetAttribLocation ( program, name)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetBooleanv (GLenum pname, GLboolean* params) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":293
 *     return cgl.glGetAttribLocation ( program, name)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGetBooleanv (GLenum pname, GLboolean* params) with gil:
 *     print "GL glGetBooleanv()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  __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_r = 0;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":294
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetBooleanv (GLenum pname, GLboolean* params) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetBooleanv()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetBooleanv");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":295
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetBooleanv (GLenum pname, GLboolean* params) with gil:
 *     print "GL glGetBooleanv()"             # <<<<<<<<<<<<<<
 *     cgl.glGetBooleanv ( pname, params)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_60)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 295; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":296
 * cdef void   glGetBooleanv (GLenum pname, GLboolean* params) with gil:
 *     print "GL glGetBooleanv()"
 *     cgl.glGetBooleanv ( pname, params)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glGetBooleanv(__pyx_v_pname, __pyx_v_params);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":297
 *     print "GL glGetBooleanv()"
 *     cgl.glGetBooleanv ( pname, params)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetBufferParameteriv (GLenum target, GLenum pname, GLint* params) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":298
 *     cgl.glGetBooleanv ( pname, params)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGetBufferParameteriv (GLenum target, GLenum pname, GLint* params) with gil:
 *     print "GL glGetBufferParameteriv()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 298; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 298; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 298; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 298; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 298; __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.glGetBooleanv");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":299
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetBufferParameteriv (GLenum target, GLenum pname, GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetBufferParameteriv()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetBufferParameteriv");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":300
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetBufferParameteriv (GLenum target, GLenum pname, GLint* params) with gil:
 *     print "GL glGetBufferParameteriv()"             # <<<<<<<<<<<<<<
 *     cgl.glGetBufferParameteriv ( target, pname, params)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_61)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 300; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":301
 * cdef void   glGetBufferParameteriv (GLenum target, GLenum pname, GLint* params) with gil:
 *     print "GL glGetBufferParameteriv()"
 *     cgl.glGetBufferParameteriv ( target, pname, params)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glGetBufferParameteriv(__pyx_v_target, __pyx_v_pname, __pyx_v_params);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":302
 *     print "GL glGetBufferParameteriv()"
 *     cgl.glGetBufferParameteriv ( target, pname, params)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef GLenum glGetError () with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":303
 *     cgl.glGetBufferParameteriv ( target, pname, params)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef GLenum glGetError () with gil:
 *     print "GL glGetError()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); 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);
    __pyx_t_2 = PyLong_FromUnsignedLong(__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 = PyTuple_New(2); 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));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 303; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 303; __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.glGetBufferParameteriv");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":304
 *     ret = glGetError()
 *     if ret: print "ERR %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_v_ret;
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_r;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetError");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":305
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef GLenum glGetError () with gil:
 *     print "GL glGetError()"             # <<<<<<<<<<<<<<
 *     return cgl.glGetError ()
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_62)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 305; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":306
 * cdef GLenum glGetError () with gil:
 *     print "GL glGetError()"
 *     return cgl.glGetError ()             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  __pyx_r = glGetError();
  goto __pyx_L0;

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":307
 *     print "GL glGetError()"
 *     return cgl.glGetError ()
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetFloatv (GLenum pname, GLfloat* params) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":308
 *     return cgl.glGetError ()
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGetFloatv (GLenum pname, GLfloat* params) with gil:
 *     print "GL glGetFloatv()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 308; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); 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);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 308; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 308; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 308; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  __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.glGetError");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":309
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetFloatv (GLenum pname, GLfloat* params) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetFloatv()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetFloatv");

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

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":311
 * cdef void   glGetFloatv (GLenum pname, GLfloat* params) with gil:
 *     print "GL glGetFloatv()"
 *     cgl.glGetFloatv ( pname, params)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glGetFloatv(__pyx_v_pname, __pyx_v_params);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":312
 *     print "GL glGetFloatv()"
 *     cgl.glGetFloatv ( pname, params)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint* params) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":313
 *     cgl.glGetFloatv ( pname, params)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint* params) with gil:
 *     print "GL glGetFramebufferAttachmentParameteriv()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); 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 = PyLong_FromUnsignedLong(__pyx_v_ret); 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(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 313; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 313; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 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;
    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_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":314
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetFramebufferAttachmentParameteriv()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetFramebufferAttachmentParameteriv");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":315
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint* params) with gil:
 *     print "GL glGetFramebufferAttachmentParameteriv()"             # <<<<<<<<<<<<<<
 *     cgl.glGetFramebufferAttachmentParameteriv ( target, attachment, pname, params)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_64)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 315; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":316
 * cdef void   glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint* params) with gil:
 *     print "GL glGetFramebufferAttachmentParameteriv()"
 *     cgl.glGetFramebufferAttachmentParameteriv ( target, attachment, pname, params)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glGetFramebufferAttachmentParameteriv(__pyx_v_target, __pyx_v_attachment, __pyx_v_pname, __pyx_v_params);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":317
 *     print "GL glGetFramebufferAttachmentParameteriv()"
 *     cgl.glGetFramebufferAttachmentParameteriv ( target, attachment, pname, params)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetIntegerv (GLenum pname, GLint* params) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":318
 *     cgl.glGetFramebufferAttachmentParameteriv ( target, attachment, pname, params)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGetIntegerv (GLenum pname, GLint* params) with gil:
 *     print "GL glGetIntegerv()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); 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_ret); 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 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 318; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 318; __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.glGetFramebufferAttachmentParameteriv");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":319
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetIntegerv (GLenum pname, GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetIntegerv()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetIntegerv");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":320
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetIntegerv (GLenum pname, GLint* params) with gil:
 *     print "GL glGetIntegerv()"             # <<<<<<<<<<<<<<
 *     cgl.glGetIntegerv ( pname, params)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_65)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 320; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":321
 * cdef void   glGetIntegerv (GLenum pname, GLint* params) with gil:
 *     print "GL glGetIntegerv()"
 *     cgl.glGetIntegerv ( pname, params)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glGetIntegerv(__pyx_v_pname, __pyx_v_params);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":322
 *     print "GL glGetIntegerv()"
 *     cgl.glGetIntegerv ( pname, params)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetProgramiv (GLuint program, GLenum pname, GLint* params) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":323
 *     cgl.glGetIntegerv ( pname, params)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGetProgramiv (GLuint program, GLenum pname, GLint* params) with gil:
 *     print "GL glGetProgramiv()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); 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 = PyLong_FromUnsignedLong(__pyx_v_ret); 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(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 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;
    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_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":324
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetProgramiv (GLuint program, GLenum pname, GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetProgramiv()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetProgramiv");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":325
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetProgramiv (GLuint program, GLenum pname, GLint* params) with gil:
 *     print "GL glGetProgramiv()"             # <<<<<<<<<<<<<<
 *     cgl.glGetProgramiv ( program, pname, params)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_66)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 325; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":326
 * cdef void   glGetProgramiv (GLuint program, GLenum pname, GLint* params) with gil:
 *     print "GL glGetProgramiv()"
 *     cgl.glGetProgramiv ( program, pname, params)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glGetProgramiv(__pyx_v_program, __pyx_v_pname, __pyx_v_params);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":327
 *     print "GL glGetProgramiv()"
 *     cgl.glGetProgramiv ( program, pname, params)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetProgramInfoLog (GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":328
 *     cgl.glGetProgramiv ( program, pname, params)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGetProgramInfoLog (GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog) with gil:
 *     print "GL glGetProgramInfoLog()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); 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_ret); 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 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 328; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 328; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 328; __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.glGetProgramiv");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":329
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetProgramInfoLog (GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetProgramInfoLog()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetProgramInfoLog");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":330
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetProgramInfoLog (GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog) with gil:
 *     print "GL glGetProgramInfoLog()"             # <<<<<<<<<<<<<<
 *     cgl.glGetProgramInfoLog ( program, bufsize, length, infolog)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_67)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":331
 * cdef void   glGetProgramInfoLog (GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog) with gil:
 *     print "GL glGetProgramInfoLog()"
 *     cgl.glGetProgramInfoLog ( program, bufsize, length, infolog)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glGetProgramInfoLog(__pyx_v_program, __pyx_v_bufsize, __pyx_v_length, __pyx_v_infolog);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":332
 *     print "GL glGetProgramInfoLog()"
 *     cgl.glGetProgramInfoLog ( program, bufsize, length, infolog)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint* params) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":333
 *     cgl.glGetProgramInfoLog ( program, bufsize, length, infolog)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint* params) with gil:
 *     print "GL glGetRenderbufferParameteriv()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); 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 = PyLong_FromUnsignedLong(__pyx_v_ret); 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 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __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.glGetProgramInfoLog");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":334
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetRenderbufferParameteriv()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetRenderbufferParameteriv");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":335
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint* params) with gil:
 *     print "GL glGetRenderbufferParameteriv()"             # <<<<<<<<<<<<<<
 *     cgl.glGetRenderbufferParameteriv ( target, pname, params)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_68)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 335; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":336
 * cdef void   glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint* params) with gil:
 *     print "GL glGetRenderbufferParameteriv()"
 *     cgl.glGetRenderbufferParameteriv ( target, pname, params)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glGetRenderbufferParameteriv(__pyx_v_target, __pyx_v_pname, __pyx_v_params);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":337
 *     print "GL glGetRenderbufferParameteriv()"
 *     cgl.glGetRenderbufferParameteriv ( target, pname, params)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetShaderiv (GLuint shader, GLenum pname, GLint* params) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":338
 *     cgl.glGetRenderbufferParameteriv ( target, pname, params)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGetShaderiv (GLuint shader, GLenum pname, GLint* params) with gil:
 *     print "GL glGetShaderiv()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); 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_ret); 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 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; __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.glGetRenderbufferParameteriv");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":339
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetShaderiv (GLuint shader, GLenum pname, GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetShaderiv()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetShaderiv");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":340
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetShaderiv (GLuint shader, GLenum pname, GLint* params) with gil:
 *     print "GL glGetShaderiv()"             # <<<<<<<<<<<<<<
 *     cgl.glGetShaderiv ( shader, pname, params)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_69)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 340; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":341
 * cdef void   glGetShaderiv (GLuint shader, GLenum pname, GLint* params) with gil:
 *     print "GL glGetShaderiv()"
 *     cgl.glGetShaderiv ( shader, pname, params)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glGetShaderiv(__pyx_v_shader, __pyx_v_pname, __pyx_v_params);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":342
 *     print "GL glGetShaderiv()"
 *     cgl.glGetShaderiv ( shader, pname, params)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":343
 *     cgl.glGetShaderiv ( shader, pname, params)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog) with gil:
 *     print "GL glGetShaderInfoLog()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); 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_ret); 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 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 343; __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.glGetShaderiv");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":344
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetShaderInfoLog()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetShaderInfoLog");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":345
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog) with gil:
 *     print "GL glGetShaderInfoLog()"             # <<<<<<<<<<<<<<
 *     cgl.glGetShaderInfoLog ( shader, bufsize, length, infolog)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_70)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 345; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":346
 * cdef void   glGetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog) with gil:
 *     print "GL glGetShaderInfoLog()"
 *     cgl.glGetShaderInfoLog ( shader, bufsize, length, infolog)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glGetShaderInfoLog(__pyx_v_shader, __pyx_v_bufsize, __pyx_v_length, __pyx_v_infolog);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":347
 *     print "GL glGetShaderInfoLog()"
 *     cgl.glGetShaderInfoLog ( shader, bufsize, length, infolog)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":348
 *     cgl.glGetShaderInfoLog ( shader, bufsize, length, infolog)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision) with gil:
 *     print "GL glGetShaderPrecisionFormat()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); 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 = PyLong_FromUnsignedLong(__pyx_v_ret); 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 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 348; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 348; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 348; __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.glGetShaderInfoLog");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":349
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetShaderPrecisionFormat()"
 *     cgl.glGetShaderPrecisionFormat ( shadertype, precisiontype, range, precision)
 */

static  void __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetShaderPrecisionFormat(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_shadertype, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_precisiontype, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *__pyx_v_range, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLint *__pyx_v_precision) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetShaderPrecisionFormat");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":350
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision) with gil:
 *     print "GL glGetShaderPrecisionFormat()"             # <<<<<<<<<<<<<<
 *     cgl.glGetShaderPrecisionFormat ( shadertype, precisiontype, range, precision)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_71)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 350; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":351
 * cdef void   glGetShaderPrecisionFormat (GLenum shadertype, GLenum precisiontype, GLint* range, GLint* precision) with gil:
 *     print "GL glGetShaderPrecisionFormat()"
 *     cgl.glGetShaderPrecisionFormat ( shadertype, precisiontype, range, precision)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glGetShaderPrecisionFormat(__pyx_v_shadertype, __pyx_v_precisiontype, __pyx_v_range, __pyx_v_precision);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":352
 *     print "GL glGetShaderPrecisionFormat()"
 *     cgl.glGetShaderPrecisionFormat ( shadertype, precisiontype, range, precision)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetShaderSource (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":353
 *     cgl.glGetShaderPrecisionFormat ( shadertype, precisiontype, range, precision)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGetShaderSource (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source) with gil:
 *     print "GL glGetShaderSource()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 353; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 353; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 353; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 353; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 353; __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.glGetShaderPrecisionFormat");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":354
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetShaderSource (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetShaderSource()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetShaderSource");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":355
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetShaderSource (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source) with gil:
 *     print "GL glGetShaderSource()"             # <<<<<<<<<<<<<<
 *     cgl.glGetShaderSource ( shader, bufsize, length, source)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_72)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 355; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":356
 * cdef void   glGetShaderSource (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source) with gil:
 *     print "GL glGetShaderSource()"
 *     cgl.glGetShaderSource ( shader, bufsize, length, source)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glGetShaderSource(__pyx_v_shader, __pyx_v_bufsize, __pyx_v_length, __pyx_v_source);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":357
 *     print "GL glGetShaderSource()"
 *     cgl.glGetShaderSource ( shader, bufsize, length, source)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef   GLubyte*  glGetString (GLenum name) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":358
 *     cgl.glGetShaderSource ( shader, bufsize, length, source)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef   GLubyte*  glGetString (GLenum name) with gil:
 *     print "GL glGetString()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __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.glGetShaderSource");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":359
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef   GLubyte*  glGetString (GLenum name) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetString()"
 *     return 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_GLenum __pyx_v_ret;
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLubyte *__pyx_r;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetString");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":360
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef   GLubyte*  glGetString (GLenum name) with gil:
 *     print "GL glGetString()"             # <<<<<<<<<<<<<<
 *     return cgl.glGetString ( name)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_73)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 360; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":361
 * cdef   GLubyte*  glGetString (GLenum name) with gil:
 *     print "GL glGetString()"
 *     return cgl.glGetString ( name)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  __pyx_r = glGetString(__pyx_v_name);
  goto __pyx_L0;

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":362
 *     print "GL glGetString()"
 *     return cgl.glGetString ( name)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetTexParameterfv (GLenum target, GLenum pname, GLfloat* params) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":363
 *     return cgl.glGetString ( name)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGetTexParameterfv (GLenum target, GLenum pname, GLfloat* params) with gil:
 *     print "GL glGetTexParameterfv()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 363; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 363; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 363; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 363; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 363; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  __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.glGetString");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":364
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetTexParameterfv (GLenum target, GLenum pname, GLfloat* params) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetTexParameterfv()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetTexParameterfv");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":365
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetTexParameterfv (GLenum target, GLenum pname, GLfloat* params) with gil:
 *     print "GL glGetTexParameterfv()"             # <<<<<<<<<<<<<<
 *     cgl.glGetTexParameterfv ( target, pname, params)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_74)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":366
 * cdef void   glGetTexParameterfv (GLenum target, GLenum pname, GLfloat* params) with gil:
 *     print "GL glGetTexParameterfv()"
 *     cgl.glGetTexParameterfv ( target, pname, params)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glGetTexParameterfv(__pyx_v_target, __pyx_v_pname, __pyx_v_params);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":367
 *     print "GL glGetTexParameterfv()"
 *     cgl.glGetTexParameterfv ( target, pname, params)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetTexParameteriv (GLenum target, GLenum pname, GLint* params) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":368
 *     cgl.glGetTexParameterfv ( target, pname, params)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGetTexParameteriv (GLenum target, GLenum pname, GLint* params) with gil:
 *     print "GL glGetTexParameteriv()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 368; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 368; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 368; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 368; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 368; __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.glGetTexParameterfv");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":369
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetTexParameteriv (GLenum target, GLenum pname, GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetTexParameteriv()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetTexParameteriv");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":370
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetTexParameteriv (GLenum target, GLenum pname, GLint* params) with gil:
 *     print "GL glGetTexParameteriv()"             # <<<<<<<<<<<<<<
 *     cgl.glGetTexParameteriv ( target, pname, params)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_75)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":371
 * cdef void   glGetTexParameteriv (GLenum target, GLenum pname, GLint* params) with gil:
 *     print "GL glGetTexParameteriv()"
 *     cgl.glGetTexParameteriv ( target, pname, params)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glGetTexParameteriv(__pyx_v_target, __pyx_v_pname, __pyx_v_params);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":372
 *     print "GL glGetTexParameteriv()"
 *     cgl.glGetTexParameteriv ( target, pname, params)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetUniformfv (GLuint program, GLint location, GLfloat* params) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":373
 *     cgl.glGetTexParameteriv ( target, pname, params)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGetUniformfv (GLuint program, GLint location, GLfloat* params) with gil:
 *     print "GL glGetUniformfv()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 373; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 373; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 373; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 373; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 373; __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.glGetTexParameteriv");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":374
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetUniformfv (GLuint program, GLint location, GLfloat* params) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetUniformfv()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetUniformfv");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":375
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetUniformfv (GLuint program, GLint location, GLfloat* params) with gil:
 *     print "GL glGetUniformfv()"             # <<<<<<<<<<<<<<
 *     cgl.glGetUniformfv ( program, location, params)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_76)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 375; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":376
 * cdef void   glGetUniformfv (GLuint program, GLint location, GLfloat* params) with gil:
 *     print "GL glGetUniformfv()"
 *     cgl.glGetUniformfv ( program, location, params)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glGetUniformfv(__pyx_v_program, __pyx_v_location, __pyx_v_params);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":377
 *     print "GL glGetUniformfv()"
 *     cgl.glGetUniformfv ( program, location, params)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetUniformiv (GLuint program, GLint location, GLint* params) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":378
 *     cgl.glGetUniformfv ( program, location, params)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGetUniformiv (GLuint program, GLint location, GLint* params) with gil:
 *     print "GL glGetUniformiv()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; __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.glGetUniformfv");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":379
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetUniformiv (GLuint program, GLint location, GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetUniformiv()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetUniformiv");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":380
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetUniformiv (GLuint program, GLint location, GLint* params) with gil:
 *     print "GL glGetUniformiv()"             # <<<<<<<<<<<<<<
 *     cgl.glGetUniformiv ( program, location, params)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_77)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":381
 * cdef void   glGetUniformiv (GLuint program, GLint location, GLint* params) with gil:
 *     print "GL glGetUniformiv()"
 *     cgl.glGetUniformiv ( program, location, params)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glGetUniformiv(__pyx_v_program, __pyx_v_location, __pyx_v_params);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":382
 *     print "GL glGetUniformiv()"
 *     cgl.glGetUniformiv ( program, location, params)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef int    glGetUniformLocation (GLuint program,  GLchar* name) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":383
 *     cgl.glGetUniformiv ( program, location, params)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef int    glGetUniformLocation (GLuint program,  GLchar* name) with gil:
 *     print "GL glGetUniformLocation()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 383; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 383; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 383; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 383; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 383; __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.glGetUniformiv");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":384
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef int    glGetUniformLocation (GLuint program,  GLchar* name) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetUniformLocation()"
 *     return cgl.glGetUniformLocation ( program, name)
 */

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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  int __pyx_r;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetUniformLocation");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":385
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef int    glGetUniformLocation (GLuint program,  GLchar* name) with gil:
 *     print "GL glGetUniformLocation()"             # <<<<<<<<<<<<<<
 *     return cgl.glGetUniformLocation ( program, name)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_78)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 385; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":386
 * cdef int    glGetUniformLocation (GLuint program,  GLchar* name) with gil:
 *     print "GL glGetUniformLocation()"
 *     return cgl.glGetUniformLocation ( program, name)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  __pyx_r = glGetUniformLocation(__pyx_v_program, __pyx_v_name);
  goto __pyx_L0;

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":387
 *     print "GL glGetUniformLocation()"
 *     return cgl.glGetUniformLocation ( program, name)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat* params) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":388
 *     return cgl.glGetUniformLocation ( program, name)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat* params) with gil:
 *     print "GL glGetVertexAttribfv()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 388; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 388; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 388; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 388; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 388; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_DECREF(((PyObject *)__pyx_t_2)); __pyx_t_2 = 0;
    goto __pyx_L3;
  }
  __pyx_L3:;

  __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_r = 0;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":389
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat* params) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetVertexAttribfv()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetVertexAttribfv");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":390
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat* params) with gil:
 *     print "GL glGetVertexAttribfv()"             # <<<<<<<<<<<<<<
 *     cgl.glGetVertexAttribfv ( index, pname, params)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_79)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 390; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":391
 * cdef void   glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat* params) with gil:
 *     print "GL glGetVertexAttribfv()"
 *     cgl.glGetVertexAttribfv ( index, pname, params)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glGetVertexAttribfv(__pyx_v_index, __pyx_v_pname, __pyx_v_params);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":392
 *     print "GL glGetVertexAttribfv()"
 *     cgl.glGetVertexAttribfv ( index, pname, params)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetVertexAttribiv (GLuint index, GLenum pname, GLint* params) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":393
 *     cgl.glGetVertexAttribfv ( index, pname, params)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGetVertexAttribiv (GLuint index, GLenum pname, GLint* params) with gil:
 *     print "GL glGetVertexAttribiv()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 393; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 393; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 393; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 393; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 393; __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.glGetVertexAttribfv");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":394
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetVertexAttribiv (GLuint index, GLenum pname, GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetVertexAttribiv()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetVertexAttribiv");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":395
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetVertexAttribiv (GLuint index, GLenum pname, GLint* params) with gil:
 *     print "GL glGetVertexAttribiv()"             # <<<<<<<<<<<<<<
 *     cgl.glGetVertexAttribiv ( index, pname, params)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_80)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 395; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":396
 * cdef void   glGetVertexAttribiv (GLuint index, GLenum pname, GLint* params) with gil:
 *     print "GL glGetVertexAttribiv()"
 *     cgl.glGetVertexAttribiv ( index, pname, params)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glGetVertexAttribiv(__pyx_v_index, __pyx_v_pname, __pyx_v_params);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":397
 *     print "GL glGetVertexAttribiv()"
 *     cgl.glGetVertexAttribiv ( index, pname, params)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetVertexAttribPointerv (GLuint index, GLenum pname, GLvoid** pointer) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":398
 *     cgl.glGetVertexAttribiv ( index, pname, params)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glGetVertexAttribPointerv (GLuint index, GLenum pname, GLvoid** pointer) with gil:
 *     print "GL glGetVertexAttribPointerv()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 398; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 398; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 398; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 398; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 398; __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.glGetVertexAttribiv");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":399
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetVertexAttribPointerv (GLuint index, GLenum pname, GLvoid** pointer) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glGetVertexAttribPointerv()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glGetVertexAttribPointerv");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":400
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glGetVertexAttribPointerv (GLuint index, GLenum pname, GLvoid** pointer) with gil:
 *     print "GL glGetVertexAttribPointerv()"             # <<<<<<<<<<<<<<
 *     cgl.glGetVertexAttribPointerv ( index, pname, pointer)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_81)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":401
 * cdef void   glGetVertexAttribPointerv (GLuint index, GLenum pname, GLvoid** pointer) with gil:
 *     print "GL glGetVertexAttribPointerv()"
 *     cgl.glGetVertexAttribPointerv ( index, pname, pointer)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glGetVertexAttribPointerv(__pyx_v_index, __pyx_v_pname, __pyx_v_pointer);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":402
 *     print "GL glGetVertexAttribPointerv()"
 *     cgl.glGetVertexAttribPointerv ( index, pname, pointer)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glHint (GLenum target, GLenum mode) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":403
 *     cgl.glGetVertexAttribPointerv ( index, pname, pointer)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void   glHint (GLenum target, GLenum mode) with gil:
 *     print "GL glHint()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 403; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 403; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 403; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 403; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 403; __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.glGetVertexAttribPointerv");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":404
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glHint (GLenum target, GLenum mode) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glHint()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glHint");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":405
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void   glHint (GLenum target, GLenum mode) with gil:
 *     print "GL glHint()"             # <<<<<<<<<<<<<<
 *     cgl.glHint ( target, mode)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_82)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 405; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":406
 * cdef void   glHint (GLenum target, GLenum mode) with gil:
 *     print "GL glHint()"
 *     cgl.glHint ( target, mode)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glHint(__pyx_v_target, __pyx_v_mode);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":407
 *     print "GL glHint()"
 *     cgl.glHint ( target, mode)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef GLboolean  glIsBuffer (GLuint buffer) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":408
 *     cgl.glHint ( target, mode)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef GLboolean  glIsBuffer (GLuint buffer) with gil:
 *     print "GL glIsBuffer()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 408; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 408; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 408; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 408; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 408; __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_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":409
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef GLboolean  glIsBuffer (GLuint buffer) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glIsBuffer()"
 *     return cgl.glIsBuffer ( buffer)
 */

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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean __pyx_r;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glIsBuffer");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":410
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef GLboolean  glIsBuffer (GLuint buffer) with gil:
 *     print "GL glIsBuffer()"             # <<<<<<<<<<<<<<
 *     return cgl.glIsBuffer ( buffer)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_83)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 410; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":411
 * cdef GLboolean  glIsBuffer (GLuint buffer) with gil:
 *     print "GL glIsBuffer()"
 *     return cgl.glIsBuffer ( buffer)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  __pyx_r = glIsBuffer(__pyx_v_buffer);
  goto __pyx_L0;

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":412
 *     print "GL glIsBuffer()"
 *     return cgl.glIsBuffer ( buffer)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef GLboolean  glIsEnabled (GLenum cap) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

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

  __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.glIsBuffer");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":414
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef GLboolean  glIsEnabled (GLenum cap) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glIsEnabled()"
 *     return cgl.glIsEnabled ( cap)
 */

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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean __pyx_r;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glIsEnabled");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":415
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef GLboolean  glIsEnabled (GLenum cap) with gil:
 *     print "GL glIsEnabled()"             # <<<<<<<<<<<<<<
 *     return cgl.glIsEnabled ( cap)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_84)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 415; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":416
 * cdef GLboolean  glIsEnabled (GLenum cap) with gil:
 *     print "GL glIsEnabled()"
 *     return cgl.glIsEnabled ( cap)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  __pyx_r = glIsEnabled(__pyx_v_cap);
  goto __pyx_L0;

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":417
 *     print "GL glIsEnabled()"
 *     return cgl.glIsEnabled ( cap)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef GLboolean  glIsFramebuffer (GLuint framebuffer) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

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

  __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.glIsEnabled");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":419
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef GLboolean  glIsFramebuffer (GLuint framebuffer) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glIsFramebuffer()"
 *     return cgl.glIsFramebuffer ( framebuffer)
 */

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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean __pyx_r;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glIsFramebuffer");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":420
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef GLboolean  glIsFramebuffer (GLuint framebuffer) with gil:
 *     print "GL glIsFramebuffer()"             # <<<<<<<<<<<<<<
 *     return cgl.glIsFramebuffer ( framebuffer)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_85)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 420; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":421
 * cdef GLboolean  glIsFramebuffer (GLuint framebuffer) with gil:
 *     print "GL glIsFramebuffer()"
 *     return cgl.glIsFramebuffer ( framebuffer)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  __pyx_r = glIsFramebuffer(__pyx_v_framebuffer);
  goto __pyx_L0;

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":422
 *     print "GL glIsFramebuffer()"
 *     return cgl.glIsFramebuffer ( framebuffer)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef GLboolean  glIsProgram (GLuint program) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

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

  __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.glIsFramebuffer");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":424
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef GLboolean  glIsProgram (GLuint program) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glIsProgram()"
 *     return cgl.glIsProgram ( program)
 */

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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean __pyx_r;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glIsProgram");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":425
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef GLboolean  glIsProgram (GLuint program) with gil:
 *     print "GL glIsProgram()"             # <<<<<<<<<<<<<<
 *     return cgl.glIsProgram ( program)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_86)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 425; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":426
 * cdef GLboolean  glIsProgram (GLuint program) with gil:
 *     print "GL glIsProgram()"
 *     return cgl.glIsProgram ( program)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  __pyx_r = glIsProgram(__pyx_v_program);
  goto __pyx_L0;

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":427
 *     print "GL glIsProgram()"
 *     return cgl.glIsProgram ( program)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef GLboolean  glIsRenderbuffer (GLuint renderbuffer) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

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

  __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.glIsProgram");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":429
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef GLboolean  glIsRenderbuffer (GLuint renderbuffer) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glIsRenderbuffer()"
 *     return cgl.glIsRenderbuffer ( renderbuffer)
 */

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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean __pyx_r;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glIsRenderbuffer");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":430
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef GLboolean  glIsRenderbuffer (GLuint renderbuffer) with gil:
 *     print "GL glIsRenderbuffer()"             # <<<<<<<<<<<<<<
 *     return cgl.glIsRenderbuffer ( renderbuffer)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_87)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 430; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":431
 * cdef GLboolean  glIsRenderbuffer (GLuint renderbuffer) with gil:
 *     print "GL glIsRenderbuffer()"
 *     return cgl.glIsRenderbuffer ( renderbuffer)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  __pyx_r = glIsRenderbuffer(__pyx_v_renderbuffer);
  goto __pyx_L0;

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":432
 *     print "GL glIsRenderbuffer()"
 *     return cgl.glIsRenderbuffer ( renderbuffer)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef GLboolean  glIsShader (GLuint shader) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

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

  __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.glIsRenderbuffer");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":434
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef GLboolean  glIsShader (GLuint shader) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glIsShader()"
 *     return cgl.glIsShader ( shader)
 */

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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean __pyx_r;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glIsShader");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":435
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef GLboolean  glIsShader (GLuint shader) with gil:
 *     print "GL glIsShader()"             # <<<<<<<<<<<<<<
 *     return cgl.glIsShader ( shader)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_88)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 435; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":436
 * cdef GLboolean  glIsShader (GLuint shader) with gil:
 *     print "GL glIsShader()"
 *     return cgl.glIsShader ( shader)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  __pyx_r = glIsShader(__pyx_v_shader);
  goto __pyx_L0;

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":437
 *     print "GL glIsShader()"
 *     return cgl.glIsShader ( shader)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef GLboolean  glIsTexture (GLuint texture) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

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

  __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.glIsShader");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":439
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef GLboolean  glIsTexture (GLuint texture) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glIsTexture()"
 *     return cgl.glIsTexture ( texture)
 */

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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLboolean __pyx_r;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glIsTexture");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":440
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef GLboolean  glIsTexture (GLuint texture) with gil:
 *     print "GL glIsTexture()"             # <<<<<<<<<<<<<<
 *     return cgl.glIsTexture ( texture)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_89)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 440; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":441
 * cdef GLboolean  glIsTexture (GLuint texture) with gil:
 *     print "GL glIsTexture()"
 *     return cgl.glIsTexture ( texture)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  __pyx_r = glIsTexture(__pyx_v_texture);
  goto __pyx_L0;

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":442
 *     print "GL glIsTexture()"
 *     return cgl.glIsTexture ( texture)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glLineWidth (GLfloat width) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

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

  __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.glIsTexture");
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
  return __pyx_r;
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":444
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glLineWidth (GLfloat width) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glLineWidth()"
 *     cgl.glLineWidth ( width)
 */

static  void __pyx_f_4kivy_8graphics_14c_opengl_debug_glLineWidth(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLfloat __pyx_v_width) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glLineWidth");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":445
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glLineWidth (GLfloat width) with gil:
 *     print "GL glLineWidth()"             # <<<<<<<<<<<<<<
 *     cgl.glLineWidth ( width)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_90)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 445; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":446
 * cdef void  glLineWidth (GLfloat width) with gil:
 *     print "GL glLineWidth()"
 *     cgl.glLineWidth ( width)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glLineWidth(__pyx_v_width);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":447
 *     print "GL glLineWidth()"
 *     cgl.glLineWidth ( width)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glLinkProgram (GLuint program) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":448
 *     cgl.glLineWidth ( width)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glLinkProgram (GLuint program) with gil:
 *     print "GL glLinkProgram()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 448; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 448; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 448; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 448; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 448; __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.glLineWidth");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":449
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glLinkProgram (GLuint program) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glLinkProgram()"
 *     cgl.glLinkProgram ( program)
 */

static  void __pyx_f_4kivy_8graphics_14c_opengl_debug_glLinkProgram(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_program) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glLinkProgram");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":450
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glLinkProgram (GLuint program) with gil:
 *     print "GL glLinkProgram()"             # <<<<<<<<<<<<<<
 *     cgl.glLinkProgram ( program)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_91)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 450; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":451
 * cdef void  glLinkProgram (GLuint program) with gil:
 *     print "GL glLinkProgram()"
 *     cgl.glLinkProgram ( program)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glLinkProgram(__pyx_v_program);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":452
 *     print "GL glLinkProgram()"
 *     cgl.glLinkProgram ( program)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glPixelStorei (GLenum pname, GLint param) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":453
 *     cgl.glLinkProgram ( program)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glPixelStorei (GLenum pname, GLint param) with gil:
 *     print "GL glPixelStorei()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 453; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 453; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 453; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 453; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 453; __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.glLinkProgram");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":454
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glPixelStorei (GLenum pname, GLint param) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glPixelStorei()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glPixelStorei");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":455
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glPixelStorei (GLenum pname, GLint param) with gil:
 *     print "GL glPixelStorei()"             # <<<<<<<<<<<<<<
 *     cgl.glPixelStorei ( pname, param)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_92)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 455; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

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

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":457
 *     print "GL glPixelStorei()"
 *     cgl.glPixelStorei ( pname, param)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glPolygonOffset (GLfloat factor, GLfloat units) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":458
 *     cgl.glPixelStorei ( pname, param)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glPolygonOffset (GLfloat factor, GLfloat units) with gil:
 *     print "GL glPolygonOffset()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 458; __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_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":459
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glPolygonOffset (GLfloat factor, GLfloat units) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glPolygonOffset()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glPolygonOffset");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":460
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glPolygonOffset (GLfloat factor, GLfloat units) with gil:
 *     print "GL glPolygonOffset()"             # <<<<<<<<<<<<<<
 *     cgl.glPolygonOffset ( factor, units)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_93)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 460; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":461
 * cdef void  glPolygonOffset (GLfloat factor, GLfloat units) with gil:
 *     print "GL glPolygonOffset()"
 *     cgl.glPolygonOffset ( factor, units)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glPolygonOffset(__pyx_v_factor, __pyx_v_units);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":462
 *     print "GL glPolygonOffset()"
 *     cgl.glPolygonOffset ( factor, units)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %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 = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":463
 *     cgl.glPolygonOffset ( factor, units)
 *     ret = glGetError()
 *     if ret: print "ERR %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()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 463; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 463; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 463; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 463; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 463; __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_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":464
 *     ret = glGetError()
 *     if ret: print "ERR %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()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glReadPixels");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":465
 *     if ret: print "ERR %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()"             # <<<<<<<<<<<<<<
 *     cgl.glReadPixels ( x, y, width, height, format, type, pixels)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_94)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 465; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":466
 * cdef void  glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels) with gil:
 *     print "GL glReadPixels()"
 *     cgl.glReadPixels ( x, y, width, height, format, type, pixels)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %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);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":467
 *     print "GL glReadPixels()"
 *     cgl.glReadPixels ( x, y, width, height, format, type, pixels)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * # XXX This one is commented out because a) it's not necessary and
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":468
 *     cgl.glReadPixels ( x, y, width, height, format, type, pixels)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * # XXX This one is commented out because a) it's not necessary and
 * #	    				b) it's breaking on OSX for some reason
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); 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_ret); 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 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 468; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 468; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 468; __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.glReadPixels");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":476
 * #    ret = glGetError()
 * #    if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glRenderbufferStorage()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glRenderbufferStorage");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":477
 * #    if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height) with gil:
 *     print "GL glRenderbufferStorage()"             # <<<<<<<<<<<<<<
 *     cgl.glRenderbufferStorage ( target, internalformat, width, height)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_95)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 477; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

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

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

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":480
 *     cgl.glRenderbufferStorage ( target, internalformat, width, height)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glSampleCoverage (GLclampf value, GLboolean invert) with gil:
 *     print "GL glSampleCoverage()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 480; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 480; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 480; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 480; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 480; __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.glRenderbufferStorage");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":481
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glSampleCoverage (GLclampf value, GLboolean invert) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glSampleCoverage()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glSampleCoverage");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":482
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glSampleCoverage (GLclampf value, GLboolean invert) with gil:
 *     print "GL glSampleCoverage()"             # <<<<<<<<<<<<<<
 *     cgl.glSampleCoverage ( value, invert)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_96)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 482; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

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

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":484
 *     print "GL glSampleCoverage()"
 *     cgl.glSampleCoverage ( value, invert)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glScissor (GLint x, GLint y, GLsizei width, GLsizei height) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":485
 *     cgl.glSampleCoverage ( value, invert)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glScissor (GLint x, GLint y, GLsizei width, GLsizei height) with gil:
 *     print "GL glScissor()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 485; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 485; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 485; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 485; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 485; __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_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":486
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glScissor (GLint x, GLint y, GLsizei width, GLsizei height) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glScissor()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glScissor");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":487
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glScissor (GLint x, GLint y, GLsizei width, GLsizei height) with gil:
 *     print "GL glScissor()"             # <<<<<<<<<<<<<<
 *     cgl.glScissor ( x, y, width, height)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_97)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 487; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

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

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":489
 *     print "GL glScissor()"
 *     cgl.glScissor ( x, y, width, height)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glShaderBinary (GLsizei n,  GLuint* shaders, GLenum binaryformat,  GLvoid* binary, GLsizei length) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":490
 *     cgl.glScissor ( x, y, width, height)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glShaderBinary (GLsizei n,  GLuint* shaders, GLenum binaryformat,  GLvoid* binary, GLsizei length) with gil:
 *     print "GL glShaderBinary()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 490; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 490; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 490; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 490; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 490; __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.glScissor");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":491
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glShaderBinary (GLsizei n,  GLuint* shaders, GLenum binaryformat,  GLvoid* binary, GLsizei length) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glShaderBinary()"
 *     cgl.glShaderBinary ( n, shaders, binaryformat, binary, length)
 */

static  void __pyx_f_4kivy_8graphics_14c_opengl_debug_glShaderBinary(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_n, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint *__pyx_v_shaders, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_binaryformat, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLvoid *__pyx_v_binary, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei __pyx_v_length) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glShaderBinary");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":492
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glShaderBinary (GLsizei n,  GLuint* shaders, GLenum binaryformat,  GLvoid* binary, GLsizei length) with gil:
 *     print "GL glShaderBinary()"             # <<<<<<<<<<<<<<
 *     cgl.glShaderBinary ( n, shaders, binaryformat, binary, length)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_98)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 492; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":493
 * cdef void  glShaderBinary (GLsizei n,  GLuint* shaders, GLenum binaryformat,  GLvoid* binary, GLsizei length) with gil:
 *     print "GL glShaderBinary()"
 *     cgl.glShaderBinary ( n, shaders, binaryformat, binary, length)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glShaderBinary(__pyx_v_n, __pyx_v_shaders, __pyx_v_binaryformat, __pyx_v_binary, __pyx_v_length);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":494
 *     print "GL glShaderBinary()"
 *     cgl.glShaderBinary ( n, shaders, binaryformat, binary, length)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glShaderSource (GLuint shader, GLsizei count,  GLchar** string,  GLint* length) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":495
 *     cgl.glShaderBinary ( n, shaders, binaryformat, binary, length)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glShaderSource (GLuint shader, GLsizei count,  GLchar** string,  GLint* length) with gil:
 *     print "GL glShaderSource()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 495; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 495; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 495; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 495; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 495; __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.glShaderBinary");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":496
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glShaderSource (GLuint shader, GLsizei count,  GLchar** string,  GLint* length) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glShaderSource()"
 *     cgl.glShaderSource ( shader, count, 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;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glShaderSource");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":497
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glShaderSource (GLuint shader, GLsizei count,  GLchar** string,  GLint* length) with gil:
 *     print "GL glShaderSource()"             # <<<<<<<<<<<<<<
 *     cgl.glShaderSource ( shader, count, string, length)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_99)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 497; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":498
 * cdef void  glShaderSource (GLuint shader, GLsizei count,  GLchar** string,  GLint* length) with gil:
 *     print "GL glShaderSource()"
 *     cgl.glShaderSource ( shader, count, string, length)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glShaderSource(__pyx_v_shader, __pyx_v_count, __pyx_v_string, __pyx_v_length);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":499
 *     print "GL glShaderSource()"
 *     cgl.glShaderSource ( shader, count, 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();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":500
 *     cgl.glShaderSource ( shader, count, 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()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 500; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 500; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 500; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 500; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 500; __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.glShaderSource");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":501
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glStencilFunc (GLenum func, GLint ref, GLuint mask) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glStencilFunc()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glStencilFunc");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":502
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glStencilFunc (GLenum func, GLint ref, GLuint mask) with gil:
 *     print "GL glStencilFunc()"             # <<<<<<<<<<<<<<
 *     cgl.glStencilFunc ( func, ref, mask)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_100)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 502; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

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

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":504
 *     print "GL glStencilFunc()"
 *     cgl.glStencilFunc ( func, ref, mask)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":505
 *     cgl.glStencilFunc ( func, ref, mask)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask) with gil:
 *     print "GL glStencilFuncSeparate()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 505; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 505; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 505; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 505; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 505; __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.glStencilFunc");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":506
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glStencilFuncSeparate()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glStencilFuncSeparate");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":507
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask) with gil:
 *     print "GL glStencilFuncSeparate()"             # <<<<<<<<<<<<<<
 *     cgl.glStencilFuncSeparate ( face, func, ref, mask)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_101)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 507; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

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

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":509
 *     print "GL glStencilFuncSeparate()"
 *     cgl.glStencilFuncSeparate ( face, func, ref, mask)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glStencilMask (GLuint mask) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":510
 *     cgl.glStencilFuncSeparate ( face, func, ref, mask)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glStencilMask (GLuint mask) with gil:
 *     print "GL glStencilMask()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 510; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 510; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 510; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 510; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 510; __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.glStencilFuncSeparate");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":511
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glStencilMask (GLuint mask) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glStencilMask()"
 *     cgl.glStencilMask ( mask)
 */

static  void __pyx_f_4kivy_8graphics_14c_opengl_debug_glStencilMask(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_mask) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glStencilMask");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":512
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glStencilMask (GLuint mask) with gil:
 *     print "GL glStencilMask()"             # <<<<<<<<<<<<<<
 *     cgl.glStencilMask ( mask)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_102)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 512; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":513
 * cdef void  glStencilMask (GLuint mask) with gil:
 *     print "GL glStencilMask()"
 *     cgl.glStencilMask ( mask)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glStencilMask(__pyx_v_mask);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":514
 *     print "GL glStencilMask()"
 *     cgl.glStencilMask ( mask)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glStencilMaskSeparate (GLenum face, GLuint mask) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":515
 *     cgl.glStencilMask ( mask)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glStencilMaskSeparate (GLenum face, GLuint mask) with gil:
 *     print "GL glStencilMaskSeparate()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 515; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 515; __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.glStencilMask");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":516
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glStencilMaskSeparate (GLenum face, GLuint mask) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glStencilMaskSeparate()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glStencilMaskSeparate");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":517
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glStencilMaskSeparate (GLenum face, GLuint mask) with gil:
 *     print "GL glStencilMaskSeparate()"             # <<<<<<<<<<<<<<
 *     cgl.glStencilMaskSeparate ( face, mask)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_103)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 517; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

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

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":519
 *     print "GL glStencilMaskSeparate()"
 *     cgl.glStencilMaskSeparate ( face, mask)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glStencilOp (GLenum fail, GLenum zfail, GLenum zpass) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":520
 *     cgl.glStencilMaskSeparate ( face, mask)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glStencilOp (GLenum fail, GLenum zfail, GLenum zpass) with gil:
 *     print "GL glStencilOp()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 520; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 520; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 520; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 520; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 520; __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_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":521
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glStencilOp (GLenum fail, GLenum zfail, GLenum zpass) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glStencilOp()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glStencilOp");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":522
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glStencilOp (GLenum fail, GLenum zfail, GLenum zpass) with gil:
 *     print "GL glStencilOp()"             # <<<<<<<<<<<<<<
 *     cgl.glStencilOp ( fail, zfail, zpass)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_104)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

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

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":524
 *     print "GL glStencilOp()"
 *     cgl.glStencilOp ( fail, zfail, zpass)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glStencilOpSeparate (GLenum face, GLenum fail, GLenum zfail, GLenum zpass) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":525
 *     cgl.glStencilOp ( fail, zfail, zpass)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glStencilOpSeparate (GLenum face, GLenum fail, GLenum zfail, GLenum zpass) with gil:
 *     print "GL glStencilOpSeparate()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; __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.glStencilOp");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":526
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glStencilOpSeparate (GLenum face, GLenum fail, GLenum zfail, GLenum zpass) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glStencilOpSeparate()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glStencilOpSeparate");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":527
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glStencilOpSeparate (GLenum face, GLenum fail, GLenum zfail, GLenum zpass) with gil:
 *     print "GL glStencilOpSeparate()"             # <<<<<<<<<<<<<<
 *     cgl.glStencilOpSeparate ( face, fail, zfail, zpass)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_105)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 527; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

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

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":529
 *     print "GL glStencilOpSeparate()"
 *     cgl.glStencilOpSeparate ( face, fail, zfail, zpass)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %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 = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":530
 *     cgl.glStencilOpSeparate ( face, fail, zfail, zpass)
 *     ret = glGetError()
 *     if ret: print "ERR %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()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 530; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 530; __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.glStencilOpSeparate");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":531
 *     ret = glGetError()
 *     if ret: print "ERR %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()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glTexImage2D");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":532
 *     if ret: print "ERR %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()"             # <<<<<<<<<<<<<<
 *     cgl.glTexImage2D ( target, level, internalformat, width, height, border, format, type, pixels)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_106)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 532; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":533
 * 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()"
 *     cgl.glTexImage2D ( target, level, internalformat, width, height, border, format, type, pixels)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %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);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":534
 *     print "GL glTexImage2D()"
 *     cgl.glTexImage2D ( target, level, internalformat, width, height, border, format, type, pixels)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glTexParameterf (GLenum target, GLenum pname, GLfloat param) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":535
 *     cgl.glTexImage2D ( target, level, internalformat, width, height, border, format, type, pixels)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glTexParameterf (GLenum target, GLenum pname, GLfloat param) with gil:
 *     print "GL glTexParameterf()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 535; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 535; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 535; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 535; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 535; __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.glTexImage2D");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":536
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glTexParameterf (GLenum target, GLenum pname, GLfloat param) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glTexParameterf()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glTexParameterf");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":537
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glTexParameterf (GLenum target, GLenum pname, GLfloat param) with gil:
 *     print "GL glTexParameterf()"             # <<<<<<<<<<<<<<
 *     cgl.glTexParameterf ( target, pname, param)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_107)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 537; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

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

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":539
 *     print "GL glTexParameterf()"
 *     cgl.glTexParameterf ( target, pname, param)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glTexParameterfv (GLenum target, GLenum pname,  GLfloat* params) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":540
 *     cgl.glTexParameterf ( target, pname, param)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glTexParameterfv (GLenum target, GLenum pname,  GLfloat* params) with gil:
 *     print "GL glTexParameterfv()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; __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.glTexParameterf");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":541
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glTexParameterfv (GLenum target, GLenum pname,  GLfloat* params) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glTexParameterfv()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glTexParameterfv");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":542
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glTexParameterfv (GLenum target, GLenum pname,  GLfloat* params) with gil:
 *     print "GL glTexParameterfv()"             # <<<<<<<<<<<<<<
 *     cgl.glTexParameterfv ( target, pname, params)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_108)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 542; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":543
 * cdef void  glTexParameterfv (GLenum target, GLenum pname,  GLfloat* params) with gil:
 *     print "GL glTexParameterfv()"
 *     cgl.glTexParameterfv ( target, pname, params)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glTexParameterfv(__pyx_v_target, __pyx_v_pname, __pyx_v_params);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":544
 *     print "GL glTexParameterfv()"
 *     cgl.glTexParameterfv ( target, pname, params)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glTexParameteri (GLenum target, GLenum pname, GLint param) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":545
 *     cgl.glTexParameterfv ( target, pname, params)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glTexParameteri (GLenum target, GLenum pname, GLint param) with gil:
 *     print "GL glTexParameteri()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 545; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 545; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 545; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 545; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 545; __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.glTexParameterfv");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":546
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glTexParameteri (GLenum target, GLenum pname, GLint param) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glTexParameteri()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glTexParameteri");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":547
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glTexParameteri (GLenum target, GLenum pname, GLint param) with gil:
 *     print "GL glTexParameteri()"             # <<<<<<<<<<<<<<
 *     cgl.glTexParameteri ( target, pname, param)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_109)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 547; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

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

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":549
 *     print "GL glTexParameteri()"
 *     cgl.glTexParameteri ( target, pname, param)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glTexParameteriv (GLenum target, GLenum pname,  GLint* params) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":550
 *     cgl.glTexParameteri ( target, pname, param)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glTexParameteriv (GLenum target, GLenum pname,  GLint* params) with gil:
 *     print "GL glTexParameteriv()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 550; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 550; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 550; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 550; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 550; __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.glTexParameteri");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":551
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glTexParameteriv (GLenum target, GLenum pname,  GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glTexParameteriv()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glTexParameteriv");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":552
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glTexParameteriv (GLenum target, GLenum pname,  GLint* params) with gil:
 *     print "GL glTexParameteriv()"             # <<<<<<<<<<<<<<
 *     cgl.glTexParameteriv ( target, pname, params)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_110)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":553
 * cdef void  glTexParameteriv (GLenum target, GLenum pname,  GLint* params) with gil:
 *     print "GL glTexParameteriv()"
 *     cgl.glTexParameteriv ( target, pname, params)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glTexParameteriv(__pyx_v_target, __pyx_v_pname, __pyx_v_params);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":554
 *     print "GL glTexParameteriv()"
 *     cgl.glTexParameteriv ( target, pname, params)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %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 = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":555
 *     cgl.glTexParameteriv ( target, pname, params)
 *     ret = glGetError()
 *     if ret: print "ERR %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()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 555; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 555; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 555; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 555; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 555; __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.glTexParameteriv");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":556
 *     ret = glGetError()
 *     if ret: print "ERR %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()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glTexSubImage2D");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":557
 *     if ret: print "ERR %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()"             # <<<<<<<<<<<<<<
 *     cgl.glTexSubImage2D ( target, level, xoffset, yoffset, width, height, format, type, pixels)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_111)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 557; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":558
 * 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()"
 *     cgl.glTexSubImage2D ( target, level, xoffset, yoffset, width, height, format, type, pixels)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %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);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":559
 *     print "GL glTexSubImage2D()"
 *     cgl.glTexSubImage2D ( target, level, xoffset, yoffset, width, height, format, type, pixels)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform1f (GLint location, GLfloat x) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":560
 *     cgl.glTexSubImage2D ( target, level, xoffset, yoffset, width, height, format, type, pixels)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniform1f (GLint location, GLfloat x) with gil:
 *     print "GL glUniform1f()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 560; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 560; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 560; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 560; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 560; __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.glTexSubImage2D");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":561
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform1f (GLint location, GLfloat x) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniform1f()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniform1f");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":562
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform1f (GLint location, GLfloat x) with gil:
 *     print "GL glUniform1f()"             # <<<<<<<<<<<<<<
 *     cgl.glUniform1f ( location, x)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_112)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 562; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":563
 * cdef void  glUniform1f (GLint location, GLfloat x) with gil:
 *     print "GL glUniform1f()"
 *     cgl.glUniform1f ( location, x)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glUniform1f(__pyx_v_location, __pyx_v_x);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":564
 *     print "GL glUniform1f()"
 *     cgl.glUniform1f ( location, x)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform1fv (GLint location, GLsizei count,  GLfloat* v) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":565
 *     cgl.glUniform1f ( location, x)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniform1fv (GLint location, GLsizei count,  GLfloat* v) with gil:
 *     print "GL glUniform1fv()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 565; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 565; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 565; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 565; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 565; __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_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":566
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform1fv (GLint location, GLsizei count,  GLfloat* v) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniform1fv()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniform1fv");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":567
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform1fv (GLint location, GLsizei count,  GLfloat* v) with gil:
 *     print "GL glUniform1fv()"             # <<<<<<<<<<<<<<
 *     cgl.glUniform1fv ( location, count, v)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_113)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 567; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":568
 * cdef void  glUniform1fv (GLint location, GLsizei count,  GLfloat* v) with gil:
 *     print "GL glUniform1fv()"
 *     cgl.glUniform1fv ( location, count, v)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glUniform1fv(__pyx_v_location, __pyx_v_count, __pyx_v_v);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":569
 *     print "GL glUniform1fv()"
 *     cgl.glUniform1fv ( location, count, v)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform1i (GLint location, GLint x) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":570
 *     cgl.glUniform1fv ( location, count, v)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniform1i (GLint location, GLint x) with gil:
 *     print "GL glUniform1i()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 570; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 570; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 570; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 570; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 570; __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.glUniform1fv");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":571
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform1i (GLint location, GLint x) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniform1i()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniform1i");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":572
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform1i (GLint location, GLint x) with gil:
 *     print "GL glUniform1i()"             # <<<<<<<<<<<<<<
 *     cgl.glUniform1i ( location, x)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_114)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 572; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":573
 * cdef void  glUniform1i (GLint location, GLint x) with gil:
 *     print "GL glUniform1i()"
 *     cgl.glUniform1i ( location, x)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glUniform1i(__pyx_v_location, __pyx_v_x);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":574
 *     print "GL glUniform1i()"
 *     cgl.glUniform1i ( location, x)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform1iv (GLint location, GLsizei count,  GLint* v) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":575
 *     cgl.glUniform1i ( location, x)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniform1iv (GLint location, GLsizei count,  GLint* v) with gil:
 *     print "GL glUniform1iv()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 575; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 575; __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_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":576
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform1iv (GLint location, GLsizei count,  GLint* v) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniform1iv()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniform1iv");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":577
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform1iv (GLint location, GLsizei count,  GLint* v) with gil:
 *     print "GL glUniform1iv()"             # <<<<<<<<<<<<<<
 *     cgl.glUniform1iv ( location, count, v)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_115)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 577; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":578
 * cdef void  glUniform1iv (GLint location, GLsizei count,  GLint* v) with gil:
 *     print "GL glUniform1iv()"
 *     cgl.glUniform1iv ( location, count, v)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glUniform1iv(__pyx_v_location, __pyx_v_count, __pyx_v_v);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":579
 *     print "GL glUniform1iv()"
 *     cgl.glUniform1iv ( location, count, v)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform2f (GLint location, GLfloat x, GLfloat y) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":580
 *     cgl.glUniform1iv ( location, count, v)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniform2f (GLint location, GLfloat x, GLfloat y) with gil:
 *     print "GL glUniform2f()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 580; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 580; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 580; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 580; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 580; __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.glUniform1iv");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":581
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform2f (GLint location, GLfloat x, GLfloat y) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniform2f()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniform2f");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":582
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform2f (GLint location, GLfloat x, GLfloat y) with gil:
 *     print "GL glUniform2f()"             # <<<<<<<<<<<<<<
 *     cgl.glUniform2f ( location, x, y)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_116)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 582; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":583
 * cdef void  glUniform2f (GLint location, GLfloat x, GLfloat y) with gil:
 *     print "GL glUniform2f()"
 *     cgl.glUniform2f ( location, x, y)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glUniform2f(__pyx_v_location, __pyx_v_x, __pyx_v_y);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":584
 *     print "GL glUniform2f()"
 *     cgl.glUniform2f ( location, x, y)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform2fv (GLint location, GLsizei count,  GLfloat* v) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":585
 *     cgl.glUniform2f ( location, x, y)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniform2fv (GLint location, GLsizei count,  GLfloat* v) with gil:
 *     print "GL glUniform2fv()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __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.glUniform2f");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":586
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform2fv (GLint location, GLsizei count,  GLfloat* v) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniform2fv()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniform2fv");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":587
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform2fv (GLint location, GLsizei count,  GLfloat* v) with gil:
 *     print "GL glUniform2fv()"             # <<<<<<<<<<<<<<
 *     cgl.glUniform2fv ( location, count, v)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_117)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 587; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":588
 * cdef void  glUniform2fv (GLint location, GLsizei count,  GLfloat* v) with gil:
 *     print "GL glUniform2fv()"
 *     cgl.glUniform2fv ( location, count, v)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glUniform2fv(__pyx_v_location, __pyx_v_count, __pyx_v_v);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":589
 *     print "GL glUniform2fv()"
 *     cgl.glUniform2fv ( location, count, v)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform2i (GLint location, GLint x, GLint y) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":590
 *     cgl.glUniform2fv ( location, count, v)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniform2i (GLint location, GLint x, GLint y) with gil:
 *     print "GL glUniform2i()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 590; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 590; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 590; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 590; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 590; __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.glUniform2fv");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":591
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform2i (GLint location, GLint x, GLint y) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniform2i()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniform2i");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":592
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform2i (GLint location, GLint x, GLint y) with gil:
 *     print "GL glUniform2i()"             # <<<<<<<<<<<<<<
 *     cgl.glUniform2i ( location, x, y)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_118)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 592; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":593
 * cdef void  glUniform2i (GLint location, GLint x, GLint y) with gil:
 *     print "GL glUniform2i()"
 *     cgl.glUniform2i ( location, x, y)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glUniform2i(__pyx_v_location, __pyx_v_x, __pyx_v_y);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":594
 *     print "GL glUniform2i()"
 *     cgl.glUniform2i ( location, x, y)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform2iv (GLint location, GLsizei count,  GLint* v) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":595
 *     cgl.glUniform2i ( location, x, y)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniform2iv (GLint location, GLsizei count,  GLint* v) with gil:
 *     print "GL glUniform2iv()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 595; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 595; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 595; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 595; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 595; __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.glUniform2i");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":596
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform2iv (GLint location, GLsizei count,  GLint* v) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniform2iv()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniform2iv");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":597
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform2iv (GLint location, GLsizei count,  GLint* v) with gil:
 *     print "GL glUniform2iv()"             # <<<<<<<<<<<<<<
 *     cgl.glUniform2iv ( location, count, v)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_119)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 597; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":598
 * cdef void  glUniform2iv (GLint location, GLsizei count,  GLint* v) with gil:
 *     print "GL glUniform2iv()"
 *     cgl.glUniform2iv ( location, count, v)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glUniform2iv(__pyx_v_location, __pyx_v_count, __pyx_v_v);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":599
 *     print "GL glUniform2iv()"
 *     cgl.glUniform2iv ( location, count, v)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform3f (GLint location, GLfloat x, GLfloat y, GLfloat z) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":600
 *     cgl.glUniform2iv ( location, count, v)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniform3f (GLint location, GLfloat x, GLfloat y, GLfloat z) with gil:
 *     print "GL glUniform3f()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 600; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 600; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 600; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 600; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 600; __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.glUniform2iv");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":601
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform3f (GLint location, GLfloat x, GLfloat y, GLfloat z) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniform3f()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniform3f");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":602
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform3f (GLint location, GLfloat x, GLfloat y, GLfloat z) with gil:
 *     print "GL glUniform3f()"             # <<<<<<<<<<<<<<
 *     cgl.glUniform3f ( location, x, y, z)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_120)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 602; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":603
 * cdef void  glUniform3f (GLint location, GLfloat x, GLfloat y, GLfloat z) with gil:
 *     print "GL glUniform3f()"
 *     cgl.glUniform3f ( location, x, y, z)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glUniform3f(__pyx_v_location, __pyx_v_x, __pyx_v_y, __pyx_v_z);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":604
 *     print "GL glUniform3f()"
 *     cgl.glUniform3f ( location, x, y, z)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform3fv (GLint location, GLsizei count,  GLfloat* v) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":605
 *     cgl.glUniform3f ( location, x, y, z)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniform3fv (GLint location, GLsizei count,  GLfloat* v) with gil:
 *     print "GL glUniform3fv()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __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.glUniform3f");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":606
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform3fv (GLint location, GLsizei count,  GLfloat* v) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniform3fv()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniform3fv");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":607
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform3fv (GLint location, GLsizei count,  GLfloat* v) with gil:
 *     print "GL glUniform3fv()"             # <<<<<<<<<<<<<<
 *     cgl.glUniform3fv ( location, count, v)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_121)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 607; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":608
 * cdef void  glUniform3fv (GLint location, GLsizei count,  GLfloat* v) with gil:
 *     print "GL glUniform3fv()"
 *     cgl.glUniform3fv ( location, count, v)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glUniform3fv(__pyx_v_location, __pyx_v_count, __pyx_v_v);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":609
 *     print "GL glUniform3fv()"
 *     cgl.glUniform3fv ( location, count, v)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform3i (GLint location, GLint x, GLint y, GLint z) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":610
 *     cgl.glUniform3fv ( location, count, v)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniform3i (GLint location, GLint x, GLint y, GLint z) with gil:
 *     print "GL glUniform3i()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 610; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 610; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 610; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 610; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 610; __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.glUniform3fv");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":611
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform3i (GLint location, GLint x, GLint y, GLint z) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniform3i()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniform3i");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":612
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform3i (GLint location, GLint x, GLint y, GLint z) with gil:
 *     print "GL glUniform3i()"             # <<<<<<<<<<<<<<
 *     cgl.glUniform3i ( location, x, y, z)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_122)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 612; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":613
 * cdef void  glUniform3i (GLint location, GLint x, GLint y, GLint z) with gil:
 *     print "GL glUniform3i()"
 *     cgl.glUniform3i ( location, x, y, z)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glUniform3i(__pyx_v_location, __pyx_v_x, __pyx_v_y, __pyx_v_z);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":614
 *     print "GL glUniform3i()"
 *     cgl.glUniform3i ( location, x, y, z)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform3iv (GLint location, GLsizei count,  GLint* v) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":615
 *     cgl.glUniform3i ( location, x, y, z)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniform3iv (GLint location, GLsizei count,  GLint* v) with gil:
 *     print "GL glUniform3iv()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 615; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 615; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 615; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 615; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 615; __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.glUniform3i");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":616
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform3iv (GLint location, GLsizei count,  GLint* v) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniform3iv()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniform3iv");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":617
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform3iv (GLint location, GLsizei count,  GLint* v) with gil:
 *     print "GL glUniform3iv()"             # <<<<<<<<<<<<<<
 *     cgl.glUniform3iv ( location, count, v)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_123)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 617; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":618
 * cdef void  glUniform3iv (GLint location, GLsizei count,  GLint* v) with gil:
 *     print "GL glUniform3iv()"
 *     cgl.glUniform3iv ( location, count, v)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glUniform3iv(__pyx_v_location, __pyx_v_count, __pyx_v_v);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":619
 *     print "GL glUniform3iv()"
 *     cgl.glUniform3iv ( location, count, v)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform4f (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":620
 *     cgl.glUniform3iv ( location, count, v)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniform4f (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) with gil:
 *     print "GL glUniform4f()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 620; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 620; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 620; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 620; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 620; __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.glUniform3iv");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":621
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform4f (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniform4f()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniform4f");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":622
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform4f (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) with gil:
 *     print "GL glUniform4f()"             # <<<<<<<<<<<<<<
 *     cgl.glUniform4f ( location, x, y, z, w)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_124)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 622; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":623
 * cdef void  glUniform4f (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) with gil:
 *     print "GL glUniform4f()"
 *     cgl.glUniform4f ( location, x, y, z, w)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glUniform4f(__pyx_v_location, __pyx_v_x, __pyx_v_y, __pyx_v_z, __pyx_v_w);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":624
 *     print "GL glUniform4f()"
 *     cgl.glUniform4f ( location, x, y, z, w)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform4fv (GLint location, GLsizei count,  GLfloat* v) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":625
 *     cgl.glUniform4f ( location, x, y, z, w)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniform4fv (GLint location, GLsizei count,  GLfloat* v) with gil:
 *     print "GL glUniform4fv()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 625; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 625; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 625; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 625; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 625; __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.glUniform4f");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":626
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform4fv (GLint location, GLsizei count,  GLfloat* v) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniform4fv()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniform4fv");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":627
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform4fv (GLint location, GLsizei count,  GLfloat* v) with gil:
 *     print "GL glUniform4fv()"             # <<<<<<<<<<<<<<
 *     cgl.glUniform4fv ( location, count, v)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_125)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":628
 * cdef void  glUniform4fv (GLint location, GLsizei count,  GLfloat* v) with gil:
 *     print "GL glUniform4fv()"
 *     cgl.glUniform4fv ( location, count, v)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glUniform4fv(__pyx_v_location, __pyx_v_count, __pyx_v_v);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":629
 *     print "GL glUniform4fv()"
 *     cgl.glUniform4fv ( location, count, v)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform4i (GLint location, GLint x, GLint y, GLint z, GLint w) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":630
 *     cgl.glUniform4fv ( location, count, v)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniform4i (GLint location, GLint x, GLint y, GLint z, GLint w) with gil:
 *     print "GL glUniform4i()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 630; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 630; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 630; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 630; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 630; __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.glUniform4fv");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":631
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform4i (GLint location, GLint x, GLint y, GLint z, GLint w) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniform4i()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniform4i");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":632
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform4i (GLint location, GLint x, GLint y, GLint z, GLint w) with gil:
 *     print "GL glUniform4i()"             # <<<<<<<<<<<<<<
 *     cgl.glUniform4i ( location, x, y, z, w)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_126)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 632; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":633
 * cdef void  glUniform4i (GLint location, GLint x, GLint y, GLint z, GLint w) with gil:
 *     print "GL glUniform4i()"
 *     cgl.glUniform4i ( location, x, y, z, w)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glUniform4i(__pyx_v_location, __pyx_v_x, __pyx_v_y, __pyx_v_z, __pyx_v_w);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":634
 *     print "GL glUniform4i()"
 *     cgl.glUniform4i ( location, x, y, z, w)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform4iv (GLint location, GLsizei count,  GLint* v) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":635
 *     cgl.glUniform4i ( location, x, y, z, w)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniform4iv (GLint location, GLsizei count,  GLint* v) with gil:
 *     print "GL glUniform4iv()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 635; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 635; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 635; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 635; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 635; __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.glUniform4i");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":636
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform4iv (GLint location, GLsizei count,  GLint* v) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniform4iv()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniform4iv");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":637
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniform4iv (GLint location, GLsizei count,  GLint* v) with gil:
 *     print "GL glUniform4iv()"             # <<<<<<<<<<<<<<
 *     cgl.glUniform4iv ( location, count, v)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_127)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":638
 * cdef void  glUniform4iv (GLint location, GLsizei count,  GLint* v) with gil:
 *     print "GL glUniform4iv()"
 *     cgl.glUniform4iv ( location, count, v)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glUniform4iv(__pyx_v_location, __pyx_v_count, __pyx_v_v);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":639
 *     print "GL glUniform4iv()"
 *     cgl.glUniform4iv ( location, count, v)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose,  GLfloat* value) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":640
 *     cgl.glUniform4iv ( location, count, v)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose,  GLfloat* value) with gil:
 *     print "GL glUniformMatrix2fv()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 640; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 640; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 640; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 640; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 640; __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.glUniform4iv");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":641
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose,  GLfloat* value) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniformMatrix2fv()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniformMatrix2fv");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":642
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose,  GLfloat* value) with gil:
 *     print "GL glUniformMatrix2fv()"             # <<<<<<<<<<<<<<
 *     cgl.glUniformMatrix2fv ( location, count, transpose, value)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_128)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 642; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":643
 * cdef void  glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose,  GLfloat* value) with gil:
 *     print "GL glUniformMatrix2fv()"
 *     cgl.glUniformMatrix2fv ( location, count, transpose, value)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glUniformMatrix2fv(__pyx_v_location, __pyx_v_count, __pyx_v_transpose, __pyx_v_value);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":644
 *     print "GL glUniformMatrix2fv()"
 *     cgl.glUniformMatrix2fv ( location, count, transpose, value)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose,  GLfloat* value) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":645
 *     cgl.glUniformMatrix2fv ( location, count, transpose, value)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose,  GLfloat* value) with gil:
 *     print "GL glUniformMatrix3fv()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 645; __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.glUniformMatrix2fv");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":646
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose,  GLfloat* value) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniformMatrix3fv()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniformMatrix3fv");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":647
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose,  GLfloat* value) with gil:
 *     print "GL glUniformMatrix3fv()"             # <<<<<<<<<<<<<<
 *     cgl.glUniformMatrix3fv ( location, count, transpose, value)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_129)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 647; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":648
 * cdef void  glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose,  GLfloat* value) with gil:
 *     print "GL glUniformMatrix3fv()"
 *     cgl.glUniformMatrix3fv ( location, count, transpose, value)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glUniformMatrix3fv(__pyx_v_location, __pyx_v_count, __pyx_v_transpose, __pyx_v_value);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":649
 *     print "GL glUniformMatrix3fv()"
 *     cgl.glUniformMatrix3fv ( location, count, transpose, value)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose,  GLfloat* value) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":650
 *     cgl.glUniformMatrix3fv ( location, count, transpose, value)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose,  GLfloat* value) with gil:
 *     print "GL glUniformMatrix4fv()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 650; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 650; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 650; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 650; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 650; __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.glUniformMatrix3fv");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":651
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose,  GLfloat* value) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUniformMatrix4fv()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUniformMatrix4fv");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":652
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose,  GLfloat* value) with gil:
 *     print "GL glUniformMatrix4fv()"             # <<<<<<<<<<<<<<
 *     cgl.glUniformMatrix4fv ( location, count, transpose, value)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_130)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 652; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":653
 * cdef void  glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose,  GLfloat* value) with gil:
 *     print "GL glUniformMatrix4fv()"
 *     cgl.glUniformMatrix4fv ( location, count, transpose, value)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glUniformMatrix4fv(__pyx_v_location, __pyx_v_count, __pyx_v_transpose, __pyx_v_value);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":654
 *     print "GL glUniformMatrix4fv()"
 *     cgl.glUniformMatrix4fv ( location, count, transpose, value)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUseProgram (GLuint program) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":655
 *     cgl.glUniformMatrix4fv ( location, count, transpose, value)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glUseProgram (GLuint program) with gil:
 *     print "GL glUseProgram()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 655; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 655; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 655; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 655; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 655; __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.glUniformMatrix4fv");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":656
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUseProgram (GLuint program) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glUseProgram()"
 *     cgl.glUseProgram ( program)
 */

static  void __pyx_f_4kivy_8graphics_14c_opengl_debug_glUseProgram(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_program) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glUseProgram");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":657
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glUseProgram (GLuint program) with gil:
 *     print "GL glUseProgram()"             # <<<<<<<<<<<<<<
 *     cgl.glUseProgram ( program)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_131)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 657; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":658
 * cdef void  glUseProgram (GLuint program) with gil:
 *     print "GL glUseProgram()"
 *     cgl.glUseProgram ( program)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glUseProgram(__pyx_v_program);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":659
 *     print "GL glUseProgram()"
 *     cgl.glUseProgram ( program)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glValidateProgram (GLuint program) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":660
 *     cgl.glUseProgram ( program)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glValidateProgram (GLuint program) with gil:
 *     print "GL glValidateProgram()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 660; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 660; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 660; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 660; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 660; __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.glUseProgram");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":661
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glValidateProgram (GLuint program) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glValidateProgram()"
 *     cgl.glValidateProgram ( program)
 */

static  void __pyx_f_4kivy_8graphics_14c_opengl_debug_glValidateProgram(__pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint __pyx_v_program) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glValidateProgram");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":662
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glValidateProgram (GLuint program) with gil:
 *     print "GL glValidateProgram()"             # <<<<<<<<<<<<<<
 *     cgl.glValidateProgram ( program)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_132)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 662; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":663
 * cdef void  glValidateProgram (GLuint program) with gil:
 *     print "GL glValidateProgram()"
 *     cgl.glValidateProgram ( program)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glValidateProgram(__pyx_v_program);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":664
 *     print "GL glValidateProgram()"
 *     cgl.glValidateProgram ( program)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib1f (GLuint indx, GLfloat x) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":665
 *     cgl.glValidateProgram ( program)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glVertexAttrib1f (GLuint indx, GLfloat x) with gil:
 *     print "GL glVertexAttrib1f()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 665; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 665; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 665; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 665; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 665; __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.glValidateProgram");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":666
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib1f (GLuint indx, GLfloat x) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glVertexAttrib1f()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glVertexAttrib1f");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":667
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib1f (GLuint indx, GLfloat x) with gil:
 *     print "GL glVertexAttrib1f()"             # <<<<<<<<<<<<<<
 *     cgl.glVertexAttrib1f ( indx, x)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_133)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 667; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":668
 * cdef void  glVertexAttrib1f (GLuint indx, GLfloat x) with gil:
 *     print "GL glVertexAttrib1f()"
 *     cgl.glVertexAttrib1f ( indx, x)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glVertexAttrib1f(__pyx_v_indx, __pyx_v_x);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":669
 *     print "GL glVertexAttrib1f()"
 *     cgl.glVertexAttrib1f ( indx, x)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib1fv (GLuint indx,  GLfloat* values) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":670
 *     cgl.glVertexAttrib1f ( indx, x)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glVertexAttrib1fv (GLuint indx,  GLfloat* values) with gil:
 *     print "GL glVertexAttrib1fv()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 670; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 670; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 670; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 670; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 670; __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_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":671
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib1fv (GLuint indx,  GLfloat* values) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glVertexAttrib1fv()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glVertexAttrib1fv");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":672
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib1fv (GLuint indx,  GLfloat* values) with gil:
 *     print "GL glVertexAttrib1fv()"             # <<<<<<<<<<<<<<
 *     cgl.glVertexAttrib1fv ( indx, values)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_134)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 672; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":673
 * cdef void  glVertexAttrib1fv (GLuint indx,  GLfloat* values) with gil:
 *     print "GL glVertexAttrib1fv()"
 *     cgl.glVertexAttrib1fv ( indx, values)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glVertexAttrib1fv(__pyx_v_indx, __pyx_v_values);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":674
 *     print "GL glVertexAttrib1fv()"
 *     cgl.glVertexAttrib1fv ( indx, values)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib2f (GLuint indx, GLfloat x, GLfloat y) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":675
 *     cgl.glVertexAttrib1fv ( indx, values)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glVertexAttrib2f (GLuint indx, GLfloat x, GLfloat y) with gil:
 *     print "GL glVertexAttrib2f()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 675; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 675; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 675; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 675; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 675; __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.glVertexAttrib1fv");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":676
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib2f (GLuint indx, GLfloat x, GLfloat y) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glVertexAttrib2f()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glVertexAttrib2f");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":677
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib2f (GLuint indx, GLfloat x, GLfloat y) with gil:
 *     print "GL glVertexAttrib2f()"             # <<<<<<<<<<<<<<
 *     cgl.glVertexAttrib2f ( indx, x, y)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_135)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 677; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":678
 * cdef void  glVertexAttrib2f (GLuint indx, GLfloat x, GLfloat y) with gil:
 *     print "GL glVertexAttrib2f()"
 *     cgl.glVertexAttrib2f ( indx, x, y)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glVertexAttrib2f(__pyx_v_indx, __pyx_v_x, __pyx_v_y);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":679
 *     print "GL glVertexAttrib2f()"
 *     cgl.glVertexAttrib2f ( indx, x, y)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib2fv (GLuint indx,  GLfloat* values) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":680
 *     cgl.glVertexAttrib2f ( indx, x, y)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glVertexAttrib2fv (GLuint indx,  GLfloat* values) with gil:
 *     print "GL glVertexAttrib2fv()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 680; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 680; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 680; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 680; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 680; __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.glVertexAttrib2f");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":681
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib2fv (GLuint indx,  GLfloat* values) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glVertexAttrib2fv()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glVertexAttrib2fv");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":682
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib2fv (GLuint indx,  GLfloat* values) with gil:
 *     print "GL glVertexAttrib2fv()"             # <<<<<<<<<<<<<<
 *     cgl.glVertexAttrib2fv ( indx, values)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_136)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 682; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":683
 * cdef void  glVertexAttrib2fv (GLuint indx,  GLfloat* values) with gil:
 *     print "GL glVertexAttrib2fv()"
 *     cgl.glVertexAttrib2fv ( indx, values)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glVertexAttrib2fv(__pyx_v_indx, __pyx_v_values);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":684
 *     print "GL glVertexAttrib2fv()"
 *     cgl.glVertexAttrib2fv ( indx, values)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib3f (GLuint indx, GLfloat x, GLfloat y, GLfloat z) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":685
 *     cgl.glVertexAttrib2fv ( indx, values)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glVertexAttrib3f (GLuint indx, GLfloat x, GLfloat y, GLfloat z) with gil:
 *     print "GL glVertexAttrib3f()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 685; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 685; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 685; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 685; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 685; __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.glVertexAttrib2fv");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":686
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib3f (GLuint indx, GLfloat x, GLfloat y, GLfloat z) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glVertexAttrib3f()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glVertexAttrib3f");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":687
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib3f (GLuint indx, GLfloat x, GLfloat y, GLfloat z) with gil:
 *     print "GL glVertexAttrib3f()"             # <<<<<<<<<<<<<<
 *     cgl.glVertexAttrib3f ( indx, x, y, z)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_137)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 687; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":688
 * cdef void  glVertexAttrib3f (GLuint indx, GLfloat x, GLfloat y, GLfloat z) with gil:
 *     print "GL glVertexAttrib3f()"
 *     cgl.glVertexAttrib3f ( indx, x, y, z)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glVertexAttrib3f(__pyx_v_indx, __pyx_v_x, __pyx_v_y, __pyx_v_z);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":689
 *     print "GL glVertexAttrib3f()"
 *     cgl.glVertexAttrib3f ( indx, x, y, z)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib3fv (GLuint indx,  GLfloat* values) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":690
 *     cgl.glVertexAttrib3f ( indx, x, y, z)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glVertexAttrib3fv (GLuint indx,  GLfloat* values) with gil:
 *     print "GL glVertexAttrib3fv()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 690; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 690; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 690; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 690; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 690; __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.glVertexAttrib3f");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":691
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib3fv (GLuint indx,  GLfloat* values) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glVertexAttrib3fv()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glVertexAttrib3fv");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":692
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib3fv (GLuint indx,  GLfloat* values) with gil:
 *     print "GL glVertexAttrib3fv()"             # <<<<<<<<<<<<<<
 *     cgl.glVertexAttrib3fv ( indx, values)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_138)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 692; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":693
 * cdef void  glVertexAttrib3fv (GLuint indx,  GLfloat* values) with gil:
 *     print "GL glVertexAttrib3fv()"
 *     cgl.glVertexAttrib3fv ( indx, values)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glVertexAttrib3fv(__pyx_v_indx, __pyx_v_values);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":694
 *     print "GL glVertexAttrib3fv()"
 *     cgl.glVertexAttrib3fv ( indx, values)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib4f (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":695
 *     cgl.glVertexAttrib3fv ( indx, values)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glVertexAttrib4f (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) with gil:
 *     print "GL glVertexAttrib4f()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 695; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 695; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 695; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 695; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 695; __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.glVertexAttrib3fv");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":696
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib4f (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glVertexAttrib4f()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glVertexAttrib4f");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":697
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib4f (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) with gil:
 *     print "GL glVertexAttrib4f()"             # <<<<<<<<<<<<<<
 *     cgl.glVertexAttrib4f ( indx, x, y, z, w)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_139)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 697; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":698
 * cdef void  glVertexAttrib4f (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) with gil:
 *     print "GL glVertexAttrib4f()"
 *     cgl.glVertexAttrib4f ( indx, x, y, z, w)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glVertexAttrib4f(__pyx_v_indx, __pyx_v_x, __pyx_v_y, __pyx_v_z, __pyx_v_w);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":699
 *     print "GL glVertexAttrib4f()"
 *     cgl.glVertexAttrib4f ( indx, x, y, z, w)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib4fv (GLuint indx,  GLfloat* values) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":700
 *     cgl.glVertexAttrib4f ( indx, x, y, z, w)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glVertexAttrib4fv (GLuint indx,  GLfloat* values) with gil:
 *     print "GL glVertexAttrib4fv()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 700; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 700; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 700; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 700; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 700; __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.glVertexAttrib4f");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":701
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib4fv (GLuint indx,  GLfloat* values) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glVertexAttrib4fv()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glVertexAttrib4fv");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":702
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glVertexAttrib4fv (GLuint indx,  GLfloat* values) with gil:
 *     print "GL glVertexAttrib4fv()"             # <<<<<<<<<<<<<<
 *     cgl.glVertexAttrib4fv ( indx, values)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_140)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 702; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":703
 * cdef void  glVertexAttrib4fv (GLuint indx,  GLfloat* values) with gil:
 *     print "GL glVertexAttrib4fv()"
 *     cgl.glVertexAttrib4fv ( indx, values)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glVertexAttrib4fv(__pyx_v_indx, __pyx_v_values);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":704
 *     print "GL glVertexAttrib4fv()"
 *     cgl.glVertexAttrib4fv ( indx, values)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glVertexAttribPointer (GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride,  GLvoid* ptr) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":705
 *     cgl.glVertexAttrib4fv ( indx, values)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glVertexAttribPointer (GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride,  GLvoid* ptr) with gil:
 *     print "GL glVertexAttribPointer()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 705; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 705; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 705; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 705; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 705; __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.glVertexAttrib4fv");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":706
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glVertexAttribPointer (GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride,  GLvoid* ptr) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glVertexAttribPointer()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glVertexAttribPointer");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":707
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glVertexAttribPointer (GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride,  GLvoid* ptr) with gil:
 *     print "GL glVertexAttribPointer()"             # <<<<<<<<<<<<<<
 *     cgl.glVertexAttribPointer ( indx, size, type, normalized, stride, ptr)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_141)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 707; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":708
 * cdef void  glVertexAttribPointer (GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride,  GLvoid* ptr) with gil:
 *     print "GL glVertexAttribPointer()"
 *     cgl.glVertexAttribPointer ( indx, size, type, normalized, stride, ptr)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glVertexAttribPointer(__pyx_v_indx, __pyx_v_size, __pyx_v_type, __pyx_v_normalized, __pyx_v_stride, __pyx_v_ptr);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":709
 *     print "GL glVertexAttribPointer()"
 *     cgl.glVertexAttribPointer ( indx, size, type, normalized, stride, ptr)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glViewport (GLint x, GLint y, GLsizei width, GLsizei height) with gil:
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":710
 *     cgl.glVertexAttribPointer ( indx, size, type, normalized, stride, ptr)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 * cdef void  glViewport (GLint x, GLint y, GLsizei width, GLsizei height) with gil:
 *     print "GL glViewport()"
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 710; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 710; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 710; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 710; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 710; __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.glVertexAttribPointer");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

/* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":711
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glViewport (GLint x, GLint y, GLsizei width, GLsizei height) with gil:             # <<<<<<<<<<<<<<
 *     print "GL glViewport()"
 *     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) {
  __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum __pyx_v_ret;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  #ifdef WITH_THREAD
  PyGILState_STATE _save = PyGILState_Ensure();
  #endif
  __Pyx_RefNannySetupContext("glViewport");

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":712
 *     if ret: print "ERR %d / %x" % (ret, ret)
 * cdef void  glViewport (GLint x, GLint y, GLsizei width, GLsizei height) with gil:
 *     print "GL glViewport()"             # <<<<<<<<<<<<<<
 *     cgl.glViewport ( x, y, width, height)
 *     ret = glGetError()
 */
  if (__Pyx_PrintOne(0, ((PyObject *)__pyx_kp_s_142)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 712; __pyx_clineno = __LINE__; goto __pyx_L1_error;}

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":713
 * cdef void  glViewport (GLint x, GLint y, GLsizei width, GLsizei height) with gil:
 *     print "GL glViewport()"
 *     cgl.glViewport ( x, y, width, height)             # <<<<<<<<<<<<<<
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  glViewport(__pyx_v_x, __pyx_v_y, __pyx_v_width, __pyx_v_height);

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":714
 *     print "GL glViewport()"
 *     cgl.glViewport ( x, y, width, height)
 *     ret = glGetError()             # <<<<<<<<<<<<<<
 *     if ret: print "ERR %d / %x" % (ret, ret)
 */
  __pyx_v_ret = __pyx_f_4kivy_8graphics_14c_opengl_debug_glGetError();

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":715
 *     cgl.glViewport ( x, y, width, height)
 *     ret = glGetError()
 *     if ret: print "ERR %d / %x" % (ret, ret)             # <<<<<<<<<<<<<<
 */
  if (__pyx_v_ret) {
    __pyx_t_1 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 715; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_1);
    __pyx_t_2 = PyLong_FromUnsignedLong(__pyx_v_ret); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 715; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(__pyx_t_2);
    __pyx_t_3 = PyTuple_New(2); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 715; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_3));
    PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_1);
    __Pyx_GIVEREF(__pyx_t_1);
    PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2);
    __Pyx_GIVEREF(__pyx_t_2);
    __pyx_t_1 = 0;
    __pyx_t_2 = 0;
    __pyx_t_2 = PyNumber_Remainder(((PyObject *)__pyx_kp_s_2), ((PyObject *)__pyx_t_3)); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 715; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
    __Pyx_GOTREF(((PyObject *)__pyx_t_2));
    __Pyx_DECREF(((PyObject *)__pyx_t_3)); __pyx_t_3 = 0;
    if (__Pyx_PrintOne(0, ((PyObject *)__pyx_t_2)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 715; __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.glViewport");
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #ifdef WITH_THREAD
  PyGILState_Release(_save);
  #endif
}

static PyMethodDef __pyx_methods[] = {
  {0, 0, 0, 0}
};

#if PY_MAJOR_VERSION >= 3
static struct PyModuleDef __pyx_moduledef = {
    PyModuleDef_HEAD_INIT,
    __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_15, __pyx_k_15, sizeof(__pyx_k_15), 0, 0, 1, 0},
  {&__pyx_kp_s_16, __pyx_k_16, sizeof(__pyx_k_16), 0, 0, 1, 0},
  {&__pyx_kp_s_17, __pyx_k_17, sizeof(__pyx_k_17), 0, 0, 1, 0},
  {&__pyx_kp_s_18, __pyx_k_18, sizeof(__pyx_k_18), 0, 0, 1, 0},
  {&__pyx_kp_s_19, __pyx_k_19, sizeof(__pyx_k_19), 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_21, __pyx_k_21, sizeof(__pyx_k_21), 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},
  {0, 0, 0, 0, 0, 0, 0}
};
static int __Pyx_InitCachedBuiltins(void) {
  return 0;
}

static int __Pyx_InitCachedConstants(void) {
  __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants");
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_InitGlobals(void) {
  if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __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;
  #if CYTHON_REFNANNY
  void* __pyx_refnanny = NULL;
  __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");
  }
  __pyx_refnanny = __Pyx_RefNanny->SetupContext("PyMODINIT_FUNC PyInit_c_opengl_debug(void)", __LINE__, __FILE__);
  #endif
  __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __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 = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  #ifdef __pyx_binding_PyCFunctionType_USED
  if (__pyx_binding_PyCFunctionType_init() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __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);
  #else
  __pyx_m = PyModule_Create(&__pyx_moduledef);
  #endif
  if (!__pyx_m) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
  #if PY_MAJOR_VERSION < 3
  Py_INCREF(__pyx_m);
  #endif
  __pyx_b = PyImport_AddModule(__Pyx_NAMESTR(__Pyx_BUILTIN_MODULE_NAME));
  if (!__pyx_b) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
  if (__Pyx_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
  /*--- Initialize various global constants etc. ---*/
  if (unlikely(__Pyx_InitGlobals() < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  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 = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;};
  }
  /*--- Builtin init code ---*/
  if (unlikely(__Pyx_InitCachedBuiltins() < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  /*--- Constants init code ---*/
  if (unlikely(__Pyx_InitCachedConstants() < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  /*--- Global init 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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glClearDepthf", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glClearDepthf, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLclampf)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glDepthRangef", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glDepthRangef, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLclampf, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLclampf)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glGetShaderPrecisionFormat", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glGetShaderPrecisionFormat, "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_GLint *)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  if (__Pyx_ExportFunction("glShaderBinary", (void (*)(void))__pyx_f_4kivy_8graphics_14c_opengl_debug_glShaderBinary, "void (__pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLuint *, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLenum, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLvoid *, __pyx_t_4kivy_8graphics_14c_opengl_debug_GLsizei)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __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 = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  /*--- Type init code ---*/
  /*--- Type import code ---*/
  /*--- Function import code ---*/
  /*--- Execution code ---*/

  /* "/home/tito/code/kivy/kivy/graphics/c_opengl_debug.pyx":1
 * cimport c_opengl as cgl             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}
  __Pyx_GOTREF(((PyObject *)__pyx_t_1));
  if (PyObject_SetAttr(__pyx_m, __pyx_n_s____test__, ((PyObject *)__pyx_t_1)) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __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");
    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 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) {
    PyObject* v;
    int i;

    if (!f) {
        if (!(f = __Pyx_GetStdout()))
            return -1;
    }
    for (i=0; i < PyTuple_GET_SIZE(arg_tuple); i++) {
        if (PyFile_SoftSpace(f, 1)) {
            if (PyFile_WriteString(" ", f) < 0)
                return -1;
        }
        v = PyTuple_GET_ITEM(arg_tuple, i);
        if (PyFile_WriteObject(v, f, Py_PRINT_RAW) < 0)
            return -1;
        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)
            return -1;
        PyFile_SoftSpace(f, 0);
    }
    return 0;
}

#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 = __Pyx_GetAttrString(__pyx_b, "print");
        if (!__pyx_print)
            return -1;
    }
    if (stream) {
        kwargs = PyDict_New();
        if (unlikely(!kwargs))
            return -1;
        if (unlikely(PyDict_SetItemString(kwargs, "file", stream) < 0))
            goto bad;
        if (!newline) {
            end_string = PyUnicode_FromStringAndSize(" ", 1);
            if (unlikely(!end_string))
                goto bad;
            if (PyDict_SetItemString(kwargs, "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_SetItemString(__pyx_print_kwargs, "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

#if PY_MAJOR_VERSION < 3

static int __Pyx_PrintOne(PyObject* f, PyObject *o) {
    if (!f) {
        if (!(f = __Pyx_GetStdout()))
            return -1;
    }
    if (PyFile_SoftSpace(f, 0)) {
        if (PyFile_WriteString(" ", f) < 0)
            return -1;
    }
    if (PyFile_WriteObject(o, f, Py_PRINT_RAW) < 0)
        return -1;
    if (PyFile_WriteString("\n", f) < 0)
        return -1;
    return 0;
    /* the line below is just to avoid compiler
     * 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_New(1);
    if (unlikely(!arg_tuple))
        return -1;
    Py_INCREF(o);
    PyTuple_SET_ITEM(arg_tuple, 0, o);
    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);
}

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_VERSION_HEX < 0x03000000
    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 (unlikely(Py_SIZE(x) < 0)) {
                PyErr_SetString(PyExc_OverflowError,
                                "can't convert negative value to unsigned long");
                return (unsigned long)-1;
            }
            return PyLong_AsUnsignedLong(x);
        } else {
            return 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;
    }
}

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_VERSION_HEX < 0x03000000
    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 (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 PyLong_AsUnsignedLongLong(x);
        } else {
            return 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;
    }
}

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_VERSION_HEX < 0x03000000
    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 (unlikely(Py_SIZE(x) < 0)) {
                PyErr_SetString(PyExc_OverflowError,
                                "can't convert negative value to long");
                return (long)-1;
            }
            return PyLong_AsUnsignedLong(x);
        } else {
            return 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;
    }
}

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_VERSION_HEX < 0x03000000
    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 (unlikely(Py_SIZE(x) < 0)) {
                PyErr_SetString(PyExc_OverflowError,
                                "can't convert negative value to PY_LONG_LONG");
                return (PY_LONG_LONG)-1;
            }
            return PyLong_AsUnsignedLongLong(x);
        } else {
            return 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;
    }
}

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_VERSION_HEX < 0x03000000
    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 (unlikely(Py_SIZE(x) < 0)) {
                PyErr_SetString(PyExc_OverflowError,
                                "can't convert negative value to signed long");
                return (signed long)-1;
            }
            return PyLong_AsUnsignedLong(x);
        } else {
            return 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;
    }
}

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_VERSION_HEX < 0x03000000
    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 (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 PyLong_AsUnsignedLongLong(x);
        } else {
            return 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 CYTHON_INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb) {
    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);
}

static CYTHON_INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb) {
    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;
}


static void __Pyx_WriteUnraisable(const char *name) {
    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);
    }
}

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;
}

#include "compile.h"
#include "frameobject.h"
#include "traceback.h"

static void __Pyx_AddTraceback(const char *funcname) {
    PyObject *py_srcfile = 0;
    PyObject *py_funcname = 0;
    PyObject *py_globals = 0;
    PyCodeObject *py_code = 0;
    PyFrameObject *py_frame = 0;

    #if PY_MAJOR_VERSION < 3
    py_srcfile = PyString_FromString(__pyx_filename);
    #else
    py_srcfile = PyUnicode_FromString(__pyx_filename);
    #endif
    if (!py_srcfile) goto bad;
    if (__pyx_clineno) {
        #if PY_MAJOR_VERSION < 3
        py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, __pyx_clineno);
        #else
        py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, __pyx_clineno);
        #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_globals = PyModule_GetDict(__pyx_m);
    if (!py_globals) goto bad;
    py_code = PyCode_New(
        0,            /*int argcount,*/
        #if PY_MAJOR_VERSION >= 3
        0,            /*int kwonlyargcount,*/
        #endif
        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,*/
        __pyx_lineno,   /*int firstlineno,*/
        __pyx_empty_bytes  /*PyObject *lnotab*/
    );
    if (!py_code) 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 = __pyx_lineno;
    PyTraceBack_Here(py_frame);
bad:
    Py_XDECREF(py_srcfile);
    Py_XDECREF(py_funcname);
    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;
}

/* Type Conversion Functions */

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_VERSION_HEX < 0x03000000
  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_VERSION_HEX < 0x03000000
  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_VERSION_HEX < 0x03000000
    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)-1 && PyErr_Occurred())) {
       return (size_t)-1;
   } else if (unlikely(val != (unsigned PY_LONG_LONG)(size_t)val)) {
       PyErr_SetString(PyExc_OverflowError,
                       "value too large to convert to size_t");
       return (size_t)-1;
   }
   return (size_t)val;
}


#endif /* Py_PYTHON_H */
