/* Generated by Cython 3.2.3 */

/* BEGIN: Cython Metadata
{
    "distutils": {
        "depends": [
            "/build/python-kivy/src/kivy/kivy/include/gl_redirect.h"
        ],
        "extra_link_args": [
            "-lm"
        ],
        "include_dirs": [
            "/build/python-kivy/src/kivy/kivy/include",
            "/build/python-kivy/src/kivy/kivy/include"
        ],
        "name": "kivy.graphics.cgl_backend.cgl_debug",
        "sources": [
            "/build/python-kivy/src/kivy/kivy/graphics/cgl_backend/cgl_debug.pyx"
        ]
    },
    "module_name": "kivy.graphics.cgl_backend.cgl_debug"
}
END: Cython Metadata */

#ifndef PY_SSIZE_T_CLEAN
#define PY_SSIZE_T_CLEAN
#endif /* PY_SSIZE_T_CLEAN */
/* InitLimitedAPI */
#if defined(Py_LIMITED_API)
  #if !defined(CYTHON_LIMITED_API)
  #define CYTHON_LIMITED_API 1
  #endif
#elif defined(CYTHON_LIMITED_API)
  #ifdef _MSC_VER
  #pragma message ("Limited API usage is enabled with 'CYTHON_LIMITED_API' but 'Py_LIMITED_API' does not define a Python target version. Consider setting 'Py_LIMITED_API' instead.")
  #else
  #warning Limited API usage is enabled with 'CYTHON_LIMITED_API' but 'Py_LIMITED_API' does not define a Python target version. Consider setting 'Py_LIMITED_API' instead.
  #endif
#endif

#include "Python.h"
#ifndef Py_PYTHON_H
    #error Python headers needed to compile C extensions, please install development version of Python.
#elif PY_VERSION_HEX < 0x03080000
    #error Cython requires Python 3.8+.
#else
#define __PYX_ABI_VERSION "3_2_3"
#define CYTHON_HEX_VERSION 0x030203F0
#define CYTHON_FUTURE_DIVISION 1
/* CModulePreamble */
#include <stddef.h>
#ifndef offsetof
  #define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
#endif
#if !defined(_WIN32) && !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
#define __PYX_COMMA ,
#ifndef PY_LONG_LONG
  #define PY_LONG_LONG LONG_LONG
#endif
#ifndef Py_HUGE_VAL
  #define Py_HUGE_VAL HUGE_VAL
#endif
#define __PYX_LIMITED_VERSION_HEX PY_VERSION_HEX
#if defined(GRAALVM_PYTHON)
  /* For very preliminary testing purposes. Most variables are set the same as PyPy.
     The existence of this section does not imply that anything works or is even tested */
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #define CYTHON_COMPILING_IN_LIMITED_API 0
  #define CYTHON_COMPILING_IN_GRAAL 1
  #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 0
  #undef CYTHON_USE_TYPE_SLOTS
  #define CYTHON_USE_TYPE_SLOTS 0
  #undef CYTHON_USE_TYPE_SPECS
  #define CYTHON_USE_TYPE_SPECS 0
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #undef CYTHON_USE_UNICODE_INTERNALS
  #define CYTHON_USE_UNICODE_INTERNALS 0
  #undef CYTHON_USE_UNICODE_WRITER
  #define CYTHON_USE_UNICODE_WRITER 0
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #undef CYTHON_AVOID_BORROWED_REFS
  #define CYTHON_AVOID_BORROWED_REFS 1
  #undef CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
  #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 0
  #undef CYTHON_ASSUME_SAFE_MACROS
  #define CYTHON_ASSUME_SAFE_MACROS 0
  #undef CYTHON_ASSUME_SAFE_SIZE
  #define CYTHON_ASSUME_SAFE_SIZE 0
  #undef CYTHON_UNPACK_METHODS
  #define CYTHON_UNPACK_METHODS 0
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_GIL
  #define CYTHON_FAST_GIL 0
  #undef CYTHON_METH_FASTCALL
  #define CYTHON_METH_FASTCALL 0
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #undef CYTHON_PEP489_MULTI_PHASE_INIT
  #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #undef CYTHON_USE_MODULE_STATE
  #define CYTHON_USE_MODULE_STATE 0
  #undef CYTHON_USE_SYS_MONITORING
  #define CYTHON_USE_SYS_MONITORING 0
  #undef CYTHON_USE_TP_FINALIZE
  #define CYTHON_USE_TP_FINALIZE 0
  #undef CYTHON_USE_AM_SEND
  #define CYTHON_USE_AM_SEND 0
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 1
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC 0
  #endif
  #undef CYTHON_USE_FREELISTS
  #define CYTHON_USE_FREELISTS 0
  #undef CYTHON_IMMORTAL_CONSTANTS
  #define CYTHON_IMMORTAL_CONSTANTS 0
#elif defined(PYPY_VERSION)
  #define CYTHON_COMPILING_IN_PYPY 1
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #define CYTHON_COMPILING_IN_LIMITED_API 0
  #define CYTHON_COMPILING_IN_GRAAL 0
  #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 0
  #undef CYTHON_USE_TYPE_SLOTS
  #define CYTHON_USE_TYPE_SLOTS 1
  #ifndef CYTHON_USE_TYPE_SPECS
    #define CYTHON_USE_TYPE_SPECS 0
  #endif
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #undef CYTHON_USE_UNICODE_INTERNALS
  #define CYTHON_USE_UNICODE_INTERNALS 0
  #undef CYTHON_USE_UNICODE_WRITER
  #define CYTHON_USE_UNICODE_WRITER 0
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #undef CYTHON_AVOID_BORROWED_REFS
  #define CYTHON_AVOID_BORROWED_REFS 1
  #undef CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
  #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 1
  #undef CYTHON_ASSUME_SAFE_MACROS
  #define CYTHON_ASSUME_SAFE_MACROS 0
  #ifndef CYTHON_ASSUME_SAFE_SIZE
    #define CYTHON_ASSUME_SAFE_SIZE 1
  #endif
  #undef CYTHON_UNPACK_METHODS
  #define CYTHON_UNPACK_METHODS 0
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_GIL
  #define CYTHON_FAST_GIL 0
  #undef CYTHON_METH_FASTCALL
  #define CYTHON_METH_FASTCALL 0
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #if PY_VERSION_HEX < 0x03090000
    #undef CYTHON_PEP489_MULTI_PHASE_INIT
    #define CYTHON_PEP489_MULTI_PHASE_INIT 0
  #elif !defined(CYTHON_PEP489_MULTI_PHASE_INIT)
    #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #endif
  #undef CYTHON_USE_MODULE_STATE
  #define CYTHON_USE_MODULE_STATE 0
  #undef CYTHON_USE_SYS_MONITORING
  #define CYTHON_USE_SYS_MONITORING 0
  #ifndef CYTHON_USE_TP_FINALIZE
    #define CYTHON_USE_TP_FINALIZE (PYPY_VERSION_NUM >= 0x07030C00)
  #endif
  #undef CYTHON_USE_AM_SEND
  #define CYTHON_USE_AM_SEND 0
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 0
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC (PYPY_VERSION_NUM >= 0x07031100)
  #endif
  #undef CYTHON_USE_FREELISTS
  #define CYTHON_USE_FREELISTS 0
  #undef CYTHON_IMMORTAL_CONSTANTS
  #define CYTHON_IMMORTAL_CONSTANTS 0
#elif defined(CYTHON_LIMITED_API)
  #ifdef Py_LIMITED_API
    #undef __PYX_LIMITED_VERSION_HEX
    #define __PYX_LIMITED_VERSION_HEX Py_LIMITED_API
  #endif
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_CPYTHON 0
  #define CYTHON_COMPILING_IN_LIMITED_API 1
  #define CYTHON_COMPILING_IN_GRAAL 0
  #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 0
  #undef CYTHON_USE_TYPE_SLOTS
  #define CYTHON_USE_TYPE_SLOTS 0
  #undef CYTHON_USE_TYPE_SPECS
  #define CYTHON_USE_TYPE_SPECS 1
  #undef CYTHON_USE_PYTYPE_LOOKUP
  #define CYTHON_USE_PYTYPE_LOOKUP 0
  #undef CYTHON_USE_PYLIST_INTERNALS
  #define CYTHON_USE_PYLIST_INTERNALS 0
  #undef CYTHON_USE_UNICODE_INTERNALS
  #define CYTHON_USE_UNICODE_INTERNALS 0
  #ifndef CYTHON_USE_UNICODE_WRITER
    #define CYTHON_USE_UNICODE_WRITER 0
  #endif
  #undef CYTHON_USE_PYLONG_INTERNALS
  #define CYTHON_USE_PYLONG_INTERNALS 0
  #ifndef CYTHON_AVOID_BORROWED_REFS
    #define CYTHON_AVOID_BORROWED_REFS 0
  #endif
  #ifndef CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
    #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 0
  #endif
  #undef CYTHON_ASSUME_SAFE_MACROS
  #define CYTHON_ASSUME_SAFE_MACROS 0
  #undef CYTHON_ASSUME_SAFE_SIZE
  #define CYTHON_ASSUME_SAFE_SIZE 0
  #undef CYTHON_UNPACK_METHODS
  #define CYTHON_UNPACK_METHODS 0
  #undef CYTHON_FAST_THREAD_STATE
  #define CYTHON_FAST_THREAD_STATE 0
  #undef CYTHON_FAST_GIL
  #define CYTHON_FAST_GIL 0
  #undef CYTHON_METH_FASTCALL
  #define CYTHON_METH_FASTCALL (__PYX_LIMITED_VERSION_HEX >= 0x030C0000)
  #undef CYTHON_FAST_PYCALL
  #define CYTHON_FAST_PYCALL 0
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #ifndef CYTHON_PEP489_MULTI_PHASE_INIT
    #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #endif
  #ifndef CYTHON_USE_MODULE_STATE
    #define CYTHON_USE_MODULE_STATE 0
  #endif
  #undef CYTHON_USE_SYS_MONITORING
  #define CYTHON_USE_SYS_MONITORING 0
  #ifndef CYTHON_USE_TP_FINALIZE
    #define CYTHON_USE_TP_FINALIZE 0
  #endif
  #ifndef CYTHON_USE_AM_SEND
    #define CYTHON_USE_AM_SEND (__PYX_LIMITED_VERSION_HEX >= 0x030A0000)
  #endif
  #undef CYTHON_USE_DICT_VERSIONS
  #define CYTHON_USE_DICT_VERSIONS 0
  #undef CYTHON_USE_EXC_INFO_STACK
  #define CYTHON_USE_EXC_INFO_STACK 0
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC 0
  #endif
  #ifndef CYTHON_USE_FREELISTS
  #define CYTHON_USE_FREELISTS 1
  #endif
  #undef CYTHON_IMMORTAL_CONSTANTS
  #define CYTHON_IMMORTAL_CONSTANTS 0
#else
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_CPYTHON 1
  #define CYTHON_COMPILING_IN_LIMITED_API 0
  #define CYTHON_COMPILING_IN_GRAAL 0
  #ifdef Py_GIL_DISABLED
    #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 1
  #else
    #define CYTHON_COMPILING_IN_CPYTHON_FREETHREADING 0
  #endif
  #if PY_VERSION_HEX < 0x030A0000
    #undef CYTHON_USE_TYPE_SLOTS
    #define CYTHON_USE_TYPE_SLOTS 1
  #elif !defined(CYTHON_USE_TYPE_SLOTS)
    #define CYTHON_USE_TYPE_SLOTS 1
  #endif
  #ifndef CYTHON_USE_TYPE_SPECS
    #define CYTHON_USE_TYPE_SPECS 0
  #endif
  #ifndef CYTHON_USE_PYTYPE_LOOKUP
    #define CYTHON_USE_PYTYPE_LOOKUP 1
  #endif
  #ifndef CYTHON_USE_PYLONG_INTERNALS
    #define CYTHON_USE_PYLONG_INTERNALS 1
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    #undef CYTHON_USE_PYLIST_INTERNALS
    #define CYTHON_USE_PYLIST_INTERNALS 0
  #elif !defined(CYTHON_USE_PYLIST_INTERNALS)
    #define CYTHON_USE_PYLIST_INTERNALS 1
  #endif
  #ifndef CYTHON_USE_UNICODE_INTERNALS
    #define CYTHON_USE_UNICODE_INTERNALS 1
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING || PY_VERSION_HEX >= 0x030B00A2
    #undef CYTHON_USE_UNICODE_WRITER
    #define CYTHON_USE_UNICODE_WRITER 0
  #elif !defined(CYTHON_USE_UNICODE_WRITER)
    #define CYTHON_USE_UNICODE_WRITER 1
  #endif
  #ifndef CYTHON_AVOID_BORROWED_REFS
    #define CYTHON_AVOID_BORROWED_REFS 0
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    #undef CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
    #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 1
  #elif !defined(CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS)
    #define CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS 0
  #endif
  #ifndef CYTHON_ASSUME_SAFE_MACROS
    #define CYTHON_ASSUME_SAFE_MACROS 1
  #endif
  #ifndef CYTHON_ASSUME_SAFE_SIZE
    #define CYTHON_ASSUME_SAFE_SIZE 1
  #endif
  #ifndef CYTHON_UNPACK_METHODS
    #define CYTHON_UNPACK_METHODS 1
  #endif
  #ifndef CYTHON_FAST_THREAD_STATE
    #define CYTHON_FAST_THREAD_STATE 1
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    #undef CYTHON_FAST_GIL
    #define CYTHON_FAST_GIL 0
  #elif !defined(CYTHON_FAST_GIL)
    #define CYTHON_FAST_GIL (PY_VERSION_HEX < 0x030C00A6)
  #endif
  #ifndef CYTHON_METH_FASTCALL
    #define CYTHON_METH_FASTCALL 1
  #endif
  #ifndef CYTHON_FAST_PYCALL
    #define CYTHON_FAST_PYCALL 1
  #endif
  #ifndef CYTHON_PEP487_INIT_SUBCLASS
    #define CYTHON_PEP487_INIT_SUBCLASS 1
  #endif
  #ifndef CYTHON_PEP489_MULTI_PHASE_INIT
    #define CYTHON_PEP489_MULTI_PHASE_INIT 1
  #endif
  #ifndef CYTHON_USE_MODULE_STATE
    #define CYTHON_USE_MODULE_STATE 0
  #endif
  #ifndef CYTHON_USE_SYS_MONITORING
    #define CYTHON_USE_SYS_MONITORING (PY_VERSION_HEX >= 0x030d00B1)
  #endif
  #ifndef CYTHON_USE_TP_FINALIZE
    #define CYTHON_USE_TP_FINALIZE 1
  #endif
  #ifndef CYTHON_USE_AM_SEND
    #define CYTHON_USE_AM_SEND 1
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    #undef CYTHON_USE_DICT_VERSIONS
    #define CYTHON_USE_DICT_VERSIONS 0
  #elif !defined(CYTHON_USE_DICT_VERSIONS)
    #define CYTHON_USE_DICT_VERSIONS  (PY_VERSION_HEX < 0x030C00A5 && !CYTHON_USE_MODULE_STATE)
  #endif
  #ifndef CYTHON_USE_EXC_INFO_STACK
    #define CYTHON_USE_EXC_INFO_STACK 1
  #endif
  #ifndef CYTHON_UPDATE_DESCRIPTOR_DOC
    #define CYTHON_UPDATE_DESCRIPTOR_DOC 1
  #endif
  #ifndef CYTHON_USE_FREELISTS
    #define CYTHON_USE_FREELISTS (!CYTHON_COMPILING_IN_CPYTHON_FREETHREADING)
  #endif
  #if defined(CYTHON_IMMORTAL_CONSTANTS) && PY_VERSION_HEX < 0x030C0000
    #undef CYTHON_IMMORTAL_CONSTANTS
    #define CYTHON_IMMORTAL_CONSTANTS 0  // definitely won't work
  #elif !defined(CYTHON_IMMORTAL_CONSTANTS)
    #define CYTHON_IMMORTAL_CONSTANTS (PY_VERSION_HEX >= 0x030C0000 && !CYTHON_USE_MODULE_STATE && CYTHON_COMPILING_IN_CPYTHON_FREETHREADING)
  #endif
#endif
#ifndef CYTHON_COMPRESS_STRINGS
  #define CYTHON_COMPRESS_STRINGS 1
#endif
#ifndef CYTHON_FAST_PYCCALL
#define CYTHON_FAST_PYCCALL  CYTHON_FAST_PYCALL
#endif
#ifndef CYTHON_VECTORCALL
#if CYTHON_COMPILING_IN_LIMITED_API
#define CYTHON_VECTORCALL  (__PYX_LIMITED_VERSION_HEX >= 0x030C0000)
#else
#define CYTHON_VECTORCALL  (CYTHON_FAST_PYCCALL)
#endif
#endif
#if CYTHON_USE_PYLONG_INTERNALS
  #undef SHIFT
  #undef BASE
  #undef MASK
  #ifdef SIZEOF_VOID_P
    enum { __pyx_check_sizeof_voidp = 1 / (int)(SIZEOF_VOID_P == sizeof(void*)) };
  #endif
#endif
#ifndef __has_attribute
  #define __has_attribute(x) 0
#endif
#ifndef __has_cpp_attribute
  #define __has_cpp_attribute(x) 0
#endif
#ifndef CYTHON_RESTRICT
  #if defined(__GNUC__)
    #define CYTHON_RESTRICT __restrict__
  #elif defined(_MSC_VER) && _MSC_VER >= 1400
    #define CYTHON_RESTRICT __restrict
  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define CYTHON_RESTRICT restrict
  #else
    #define CYTHON_RESTRICT
  #endif
#endif
#ifndef CYTHON_UNUSED
  #if defined(__cplusplus)
    /* for clang __has_cpp_attribute(maybe_unused) is true even before C++17
     * but leads to warnings with -pedantic, since it is a C++17 feature */
    #if ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L)
      #if __has_cpp_attribute(maybe_unused)
        #define CYTHON_UNUSED [[maybe_unused]]
      #endif
    #endif
  #endif
#endif
#ifndef CYTHON_UNUSED
# if defined(__GNUC__)
#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
#     define CYTHON_UNUSED __attribute__ ((__unused__))
#   else
#     define CYTHON_UNUSED
#   endif
# elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER))
#   define CYTHON_UNUSED __attribute__ ((__unused__))
# else
#   define CYTHON_UNUSED
# endif
#endif
#ifndef CYTHON_UNUSED_VAR
#  if defined(__cplusplus)
     template<class T> void CYTHON_UNUSED_VAR( const T& ) { }
#  else
#    define CYTHON_UNUSED_VAR(x) (void)(x)
#  endif
#endif
#ifndef CYTHON_MAYBE_UNUSED_VAR
  #define CYTHON_MAYBE_UNUSED_VAR(x) CYTHON_UNUSED_VAR(x)
#endif
#ifndef CYTHON_NCP_UNUSED
# if CYTHON_COMPILING_IN_CPYTHON && !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#  define CYTHON_NCP_UNUSED
# else
#  define CYTHON_NCP_UNUSED CYTHON_UNUSED
# endif
#endif
#ifndef CYTHON_USE_CPP_STD_MOVE
  #if defined(__cplusplus) && (\
    __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1600))
    #define CYTHON_USE_CPP_STD_MOVE 1
  #else
    #define CYTHON_USE_CPP_STD_MOVE 0
  #endif
#endif
#define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None)
#include <stdint.h>
typedef uintptr_t  __pyx_uintptr_t;
#ifndef CYTHON_FALLTHROUGH
  #if defined(__cplusplus)
    /* for clang __has_cpp_attribute(fallthrough) is true even before C++17
     * but leads to warnings with -pedantic, since it is a C++17 feature */
    #if ((defined(_MSVC_LANG) && _MSVC_LANG >= 201703L) || __cplusplus >= 201703L)
      #if __has_cpp_attribute(fallthrough)
        #define CYTHON_FALLTHROUGH [[fallthrough]]
      #endif
    #endif
    #ifndef CYTHON_FALLTHROUGH
      #if __has_cpp_attribute(clang::fallthrough)
        #define CYTHON_FALLTHROUGH [[clang::fallthrough]]
      #elif __has_cpp_attribute(gnu::fallthrough)
        #define CYTHON_FALLTHROUGH [[gnu::fallthrough]]
      #endif
    #endif
  #endif
  #ifndef CYTHON_FALLTHROUGH
    #if __has_attribute(fallthrough)
      #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
    #else
      #define CYTHON_FALLTHROUGH
    #endif
  #endif
  #if defined(__clang__) && defined(__apple_build_version__)
    #if __apple_build_version__ < 7000000
      #undef  CYTHON_FALLTHROUGH
      #define CYTHON_FALLTHROUGH
    #endif
  #endif
#endif
#ifndef Py_UNREACHABLE
  #define Py_UNREACHABLE()  assert(0); abort()
#endif
#ifdef __cplusplus
  template <typename T>
  struct __PYX_IS_UNSIGNED_IMPL {static const bool value = T(0) < T(-1);};
  #define __PYX_IS_UNSIGNED(type) (__PYX_IS_UNSIGNED_IMPL<type>::value)
#else
  #define __PYX_IS_UNSIGNED(type) (((type)-1) > 0)
#endif
#if CYTHON_COMPILING_IN_PYPY == 1
  #define __PYX_NEED_TP_PRINT_SLOT  (PY_VERSION_HEX < 0x030A0000)
#else
  #define __PYX_NEED_TP_PRINT_SLOT  (PY_VERSION_HEX < 0x03090000)
#endif
#define __PYX_REINTERPRET_FUNCION(func_pointer, other_pointer) ((func_pointer)(void(*)(void))(other_pointer))

/* CInitCode */
#ifndef CYTHON_INLINE
  #if defined(__clang__)
    #define CYTHON_INLINE __inline__ __attribute__ ((__unused__))
  #elif 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

/* PythonCompatibility */
#define __PYX_BUILD_PY_SSIZE_T "n"
#define CYTHON_FORMAT_SSIZE_T "z"
#define __Pyx_BUILTIN_MODULE_NAME "builtins"
#define __Pyx_DefaultClassType PyType_Type
#if CYTHON_COMPILING_IN_LIMITED_API
    #ifndef CO_OPTIMIZED
    static int CO_OPTIMIZED;
    #endif
    #ifndef CO_NEWLOCALS
    static int CO_NEWLOCALS;
    #endif
    #ifndef CO_VARARGS
    static int CO_VARARGS;
    #endif
    #ifndef CO_VARKEYWORDS
    static int CO_VARKEYWORDS;
    #endif
    #ifndef CO_ASYNC_GENERATOR
    static int CO_ASYNC_GENERATOR;
    #endif
    #ifndef CO_GENERATOR
    static int CO_GENERATOR;
    #endif
    #ifndef CO_COROUTINE
    static int CO_COROUTINE;
    #endif
#else
    #ifndef CO_COROUTINE
      #define CO_COROUTINE 0x80
    #endif
    #ifndef CO_ASYNC_GENERATOR
      #define CO_ASYNC_GENERATOR 0x200
    #endif
#endif
static int __Pyx_init_co_variables(void);
#if PY_VERSION_HEX >= 0x030900A4 || defined(Py_IS_TYPE)
  #define __Pyx_IS_TYPE(ob, type) Py_IS_TYPE(ob, type)
#else
  #define __Pyx_IS_TYPE(ob, type) (((const PyObject*)ob)->ob_type == (type))
#endif
#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_Is)
  #define __Pyx_Py_Is(x, y)  Py_Is(x, y)
#else
  #define __Pyx_Py_Is(x, y) ((x) == (y))
#endif
#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_IsNone)
  #define __Pyx_Py_IsNone(ob) Py_IsNone(ob)
#else
  #define __Pyx_Py_IsNone(ob) __Pyx_Py_Is((ob), Py_None)
#endif
#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_IsTrue)
  #define __Pyx_Py_IsTrue(ob) Py_IsTrue(ob)
#else
  #define __Pyx_Py_IsTrue(ob) __Pyx_Py_Is((ob), Py_True)
#endif
#if PY_VERSION_HEX >= 0x030A00B1 || defined(Py_IsFalse)
  #define __Pyx_Py_IsFalse(ob) Py_IsFalse(ob)
#else
  #define __Pyx_Py_IsFalse(ob) __Pyx_Py_Is((ob), Py_False)
#endif
#define __Pyx_NoneAsNull(obj)  (__Pyx_Py_IsNone(obj) ? NULL : (obj))
#if PY_VERSION_HEX >= 0x030900F0 && !CYTHON_COMPILING_IN_PYPY
  #define __Pyx_PyObject_GC_IsFinalized(o) PyObject_GC_IsFinalized(o)
#else
  #define __Pyx_PyObject_GC_IsFinalized(o) _PyGC_FINALIZED(o)
#endif
#ifndef Py_TPFLAGS_CHECKTYPES
  #define Py_TPFLAGS_CHECKTYPES 0
#endif
#ifndef Py_TPFLAGS_HAVE_INDEX
  #define Py_TPFLAGS_HAVE_INDEX 0
#endif
#ifndef Py_TPFLAGS_HAVE_NEWBUFFER
  #define Py_TPFLAGS_HAVE_NEWBUFFER 0
#endif
#ifndef Py_TPFLAGS_HAVE_FINALIZE
  #define Py_TPFLAGS_HAVE_FINALIZE 0
#endif
#ifndef Py_TPFLAGS_SEQUENCE
  #define Py_TPFLAGS_SEQUENCE 0
#endif
#ifndef Py_TPFLAGS_MAPPING
  #define Py_TPFLAGS_MAPPING 0
#endif
#ifndef Py_TPFLAGS_IMMUTABLETYPE
  #define Py_TPFLAGS_IMMUTABLETYPE (1UL << 8)
#endif
#ifndef Py_TPFLAGS_DISALLOW_INSTANTIATION
  #define Py_TPFLAGS_DISALLOW_INSTANTIATION (1UL << 7)
#endif
#ifndef METH_STACKLESS
  #define METH_STACKLESS 0
#endif
#ifndef METH_FASTCALL
  #ifndef METH_FASTCALL
     #define METH_FASTCALL 0x80
  #endif
  typedef PyObject *(*__Pyx_PyCFunctionFast) (PyObject *self, PyObject *const *args, Py_ssize_t nargs);
  typedef PyObject *(*__Pyx_PyCFunctionFastWithKeywords) (PyObject *self, PyObject *const *args,
                                                          Py_ssize_t nargs, PyObject *kwnames);
#else
  #if PY_VERSION_HEX >= 0x030d00A4
  #  define __Pyx_PyCFunctionFast PyCFunctionFast
  #  define __Pyx_PyCFunctionFastWithKeywords PyCFunctionFastWithKeywords
  #else
  #  define __Pyx_PyCFunctionFast _PyCFunctionFast
  #  define __Pyx_PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords
  #endif
#endif
#if CYTHON_METH_FASTCALL
  #define __Pyx_METH_FASTCALL METH_FASTCALL
  #define __Pyx_PyCFunction_FastCall __Pyx_PyCFunctionFast
  #define __Pyx_PyCFunction_FastCallWithKeywords __Pyx_PyCFunctionFastWithKeywords
#else
  #define __Pyx_METH_FASTCALL METH_VARARGS
  #define __Pyx_PyCFunction_FastCall PyCFunction
  #define __Pyx_PyCFunction_FastCallWithKeywords PyCFunctionWithKeywords
#endif
#if CYTHON_VECTORCALL
  #define __pyx_vectorcallfunc vectorcallfunc
  #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET  PY_VECTORCALL_ARGUMENTS_OFFSET
  #define __Pyx_PyVectorcall_NARGS(n)  PyVectorcall_NARGS((size_t)(n))
#else
  #define __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET  0
  #define __Pyx_PyVectorcall_NARGS(n)  ((Py_ssize_t)(n))
#endif
#if PY_VERSION_HEX >= 0x030900B1
#define __Pyx_PyCFunction_CheckExact(func)  PyCFunction_CheckExact(func)
#else
#define __Pyx_PyCFunction_CheckExact(func)  PyCFunction_Check(func)
#endif
#define __Pyx_CyOrPyCFunction_Check(func)  PyCFunction_Check(func)
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_CyOrPyCFunction_GET_FUNCTION(func)  (((PyCFunctionObject*)(func))->m_ml->ml_meth)
#elif !CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_CyOrPyCFunction_GET_FUNCTION(func)  PyCFunction_GET_FUNCTION(func)
#endif
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_CyOrPyCFunction_GET_FLAGS(func)  (((PyCFunctionObject*)(func))->m_ml->ml_flags)
static CYTHON_INLINE PyObject* __Pyx_CyOrPyCFunction_GET_SELF(PyObject *func) {
    return (__Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_STATIC) ? NULL : ((PyCFunctionObject*)func)->m_self;
}
#endif
static CYTHON_INLINE int __Pyx__IsSameCFunction(PyObject *func, void (*cfunc)(void)) {
#if CYTHON_COMPILING_IN_LIMITED_API
    return PyCFunction_Check(func) && PyCFunction_GetFunction(func) == (PyCFunction) cfunc;
#else
    return PyCFunction_Check(func) && PyCFunction_GET_FUNCTION(func) == (PyCFunction) cfunc;
#endif
}
#define __Pyx_IsSameCFunction(func, cfunc)   __Pyx__IsSameCFunction(func, cfunc)
#if PY_VERSION_HEX < 0x03090000 || (CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000)
  #define __Pyx_PyType_FromModuleAndSpec(m, s, b)  ((void)m, PyType_FromSpecWithBases(s, b))
  typedef PyObject *(*__Pyx_PyCMethod)(PyObject *, PyTypeObject *, PyObject *const *, size_t, PyObject *);
#else
  #define __Pyx_PyType_FromModuleAndSpec(m, s, b)  PyType_FromModuleAndSpec(m, s, b)
  #define __Pyx_PyCMethod  PyCMethod
#endif
#ifndef METH_METHOD
  #define METH_METHOD 0x200
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc)
  #define PyObject_Malloc(s)   PyMem_Malloc(s)
  #define PyObject_Free(p)     PyMem_Free(p)
  #define PyObject_Realloc(p)  PyMem_Realloc(p)
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno)
#elif CYTHON_COMPILING_IN_GRAAL && defined(GRAALPY_VERSION_NUM) && GRAALPY_VERSION_NUM > 0x19000000
  #define __Pyx_PyCode_HasFreeVars(co)  (PyCode_GetNumFree(co) > 0)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno) GraalPyFrame_SetLineNumber((frame), (lineno))
#elif CYTHON_COMPILING_IN_GRAAL
  #define __Pyx_PyCode_HasFreeVars(co)  (PyCode_GetNumFree(co) > 0)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno) _PyFrame_SetLineNumber((frame), (lineno))
#else
  #define __Pyx_PyCode_HasFreeVars(co)  (PyCode_GetNumFree(co) > 0)
  #define __Pyx_PyFrame_SetLineNumber(frame, lineno)  (frame)->f_lineno = (lineno)
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_PyThreadState_Current PyThreadState_Get()
#elif !CYTHON_FAST_THREAD_STATE
  #define __Pyx_PyThreadState_Current PyThreadState_GET()
#elif PY_VERSION_HEX >= 0x030d00A1
  #define __Pyx_PyThreadState_Current PyThreadState_GetUnchecked()
#else
  #define __Pyx_PyThreadState_Current _PyThreadState_UncheckedGet()
#endif
#if CYTHON_USE_MODULE_STATE
static CYTHON_INLINE void *__Pyx__PyModule_GetState(PyObject *op)
{
    void *result;
    result = PyModule_GetState(op);
    if (!result)
        Py_FatalError("Couldn't find the module state");
    return result;
}
#define __Pyx_PyModule_GetState(o) (__pyx_mstatetype *)__Pyx__PyModule_GetState(o)
#else
#define __Pyx_PyModule_GetState(op) ((void)op,__pyx_mstate_global)
#endif
#define __Pyx_PyObject_GetSlot(obj, name, func_ctype)  __Pyx_PyType_GetSlot(Py_TYPE((PyObject *) obj), name, func_ctype)
#define __Pyx_PyObject_TryGetSlot(obj, name, func_ctype) __Pyx_PyType_TryGetSlot(Py_TYPE(obj), name, func_ctype)
#define __Pyx_PyObject_GetSubSlot(obj, sub, name, func_ctype) __Pyx_PyType_GetSubSlot(Py_TYPE(obj), sub, name, func_ctype)
#define __Pyx_PyObject_TryGetSubSlot(obj, sub, name, func_ctype) __Pyx_PyType_TryGetSubSlot(Py_TYPE(obj), sub, name, func_ctype)
#if CYTHON_USE_TYPE_SLOTS
  #define __Pyx_PyType_GetSlot(type, name, func_ctype)  ((type)->name)
  #define __Pyx_PyType_TryGetSlot(type, name, func_ctype) __Pyx_PyType_GetSlot(type, name, func_ctype)
  #define __Pyx_PyType_GetSubSlot(type, sub, name, func_ctype) (((type)->sub) ? ((type)->sub->name) : NULL)
  #define __Pyx_PyType_TryGetSubSlot(type, sub, name, func_ctype) __Pyx_PyType_GetSubSlot(type, sub, name, func_ctype)
#else
  #define __Pyx_PyType_GetSlot(type, name, func_ctype)  ((func_ctype) PyType_GetSlot((type), Py_##name))
  #define __Pyx_PyType_TryGetSlot(type, name, func_ctype)\
    ((__PYX_LIMITED_VERSION_HEX >= 0x030A0000 ||\
     (PyType_GetFlags(type) & Py_TPFLAGS_HEAPTYPE) || __Pyx_get_runtime_version() >= 0x030A0000) ?\
     __Pyx_PyType_GetSlot(type, name, func_ctype) : NULL)
  #define __Pyx_PyType_GetSubSlot(obj, sub, name, func_ctype) __Pyx_PyType_GetSlot(obj, name, func_ctype)
  #define __Pyx_PyType_TryGetSubSlot(obj, sub, name, func_ctype) __Pyx_PyType_TryGetSlot(obj, name, func_ctype)
#endif
#if CYTHON_COMPILING_IN_CPYTHON || defined(_PyDict_NewPresized)
#define __Pyx_PyDict_NewPresized(n)  ((n <= 8) ? PyDict_New() : _PyDict_NewPresized(n))
#else
#define __Pyx_PyDict_NewPresized(n)  PyDict_New()
#endif
#define __Pyx_PyNumber_Divide(x,y)         PyNumber_TrueDivide(x,y)
#define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceTrueDivide(x,y)
#if CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_UNICODE_INTERNALS
#define __Pyx_PyDict_GetItemStrWithError(dict, name)  _PyDict_GetItem_KnownHash(dict, name, ((PyASCIIObject *) name)->hash)
static CYTHON_INLINE PyObject * __Pyx_PyDict_GetItemStr(PyObject *dict, PyObject *name) {
    PyObject *res = __Pyx_PyDict_GetItemStrWithError(dict, name);
    if (res == NULL) PyErr_Clear();
    return res;
}
#elif !CYTHON_COMPILING_IN_PYPY || PYPY_VERSION_NUM >= 0x07020000
#define __Pyx_PyDict_GetItemStrWithError  PyDict_GetItemWithError
#define __Pyx_PyDict_GetItemStr           PyDict_GetItem
#else
static CYTHON_INLINE PyObject * __Pyx_PyDict_GetItemStrWithError(PyObject *dict, PyObject *name) {
#if CYTHON_COMPILING_IN_PYPY
    return PyDict_GetItem(dict, name);
#else
    PyDictEntry *ep;
    PyDictObject *mp = (PyDictObject*) dict;
    long hash = ((PyStringObject *) name)->ob_shash;
    assert(hash != -1);
    ep = (mp->ma_lookup)(mp, name, hash);
    if (ep == NULL) {
        return NULL;
    }
    return ep->me_value;
#endif
}
#define __Pyx_PyDict_GetItemStr           PyDict_GetItem
#endif
#if CYTHON_USE_TYPE_SLOTS
  #define __Pyx_PyType_GetFlags(tp)   (((PyTypeObject *)tp)->tp_flags)
  #define __Pyx_PyType_HasFeature(type, feature)  ((__Pyx_PyType_GetFlags(type) & (feature)) != 0)
#else
  #define __Pyx_PyType_GetFlags(tp)   (PyType_GetFlags((PyTypeObject *)tp))
  #define __Pyx_PyType_HasFeature(type, feature)  PyType_HasFeature(type, feature)
#endif
#define __Pyx_PyObject_GetIterNextFunc(iterator)  __Pyx_PyObject_GetSlot(iterator, tp_iternext, iternextfunc)
#if CYTHON_USE_TYPE_SPECS
#define __Pyx_PyHeapTypeObject_GC_Del(obj)  {\
    PyTypeObject *type = Py_TYPE((PyObject*)obj);\
    assert(__Pyx_PyType_HasFeature(type, Py_TPFLAGS_HEAPTYPE));\
    PyObject_GC_Del(obj);\
    Py_DECREF(type);\
}
#else
#define __Pyx_PyHeapTypeObject_GC_Del(obj)  PyObject_GC_Del(obj)
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_PyUnicode_READY(op)       (0)
  #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_ReadChar(u, i)
  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)   ((void)u, 1114111U)
  #define __Pyx_PyUnicode_KIND(u)         ((void)u, (0))
  #define __Pyx_PyUnicode_DATA(u)         ((void*)u)
  #define __Pyx_PyUnicode_READ(k, d, i)   ((void)k, PyUnicode_ReadChar((PyObject*)(d), i))
  #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != PyUnicode_GetLength(u))
#else
  #if PY_VERSION_HEX >= 0x030C0000
    #define __Pyx_PyUnicode_READY(op)       (0)
  #else
    #define __Pyx_PyUnicode_READY(op)       (likely(PyUnicode_IS_READY(op)) ?\
                                                0 : _PyUnicode_Ready((PyObject *)(op)))
  #endif
  #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)
  #define __Pyx_PyUnicode_MAX_CHAR_VALUE(u)   PyUnicode_MAX_CHAR_VALUE(u)
  #define __Pyx_PyUnicode_KIND(u)         ((int)PyUnicode_KIND(u))
  #define __Pyx_PyUnicode_DATA(u)         PyUnicode_DATA(u)
  #define __Pyx_PyUnicode_READ(k, d, i)   PyUnicode_READ(k, d, i)
  #define __Pyx_PyUnicode_WRITE(k, d, i, ch)  PyUnicode_WRITE(k, d, i, (Py_UCS4) ch)
  #if PY_VERSION_HEX >= 0x030C0000
    #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != PyUnicode_GET_LENGTH(u))
  #else
    #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x03090000
    #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : ((PyCompactUnicodeObject *)(u))->wstr_length))
    #else
    #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u)))
    #endif
  #endif
#endif
#if CYTHON_COMPILING_IN_PYPY
  #define __Pyx_PyUnicode_Concat(a, b)      PyNumber_Add(a, b)
  #define __Pyx_PyUnicode_ConcatSafe(a, b)  PyNumber_Add(a, b)
#else
  #define __Pyx_PyUnicode_Concat(a, b)      PyUnicode_Concat(a, b)
  #define __Pyx_PyUnicode_ConcatSafe(a, b)  ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\
      PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b))
#endif
#if CYTHON_COMPILING_IN_PYPY
  #if !defined(PyUnicode_DecodeUnicodeEscape)
    #define PyUnicode_DecodeUnicodeEscape(s, size, errors)  PyUnicode_Decode(s, size, "unicode_escape", errors)
  #endif
  #if !defined(PyUnicode_Contains)
    #define PyUnicode_Contains(u, s)  PySequence_Contains(u, s)
  #endif
  #if !defined(PyByteArray_Check)
    #define PyByteArray_Check(obj)  PyObject_TypeCheck(obj, &PyByteArray_Type)
  #endif
  #if !defined(PyObject_Format)
    #define PyObject_Format(obj, fmt)  PyObject_CallMethod(obj, "__format__", "O", fmt)
  #endif
#endif
#define __Pyx_PyUnicode_FormatSafe(a, b)  ((unlikely((a) == Py_None || (PyUnicode_Check(b) && !PyUnicode_CheckExact(b)))) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b))
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  #define __Pyx_PySequence_ListKeepNew(obj)\
    (likely(PyList_CheckExact(obj) && PyUnstable_Object_IsUniquelyReferenced(obj)) ? __Pyx_NewRef(obj) : PySequence_List(obj))
#elif CYTHON_COMPILING_IN_CPYTHON
  #define __Pyx_PySequence_ListKeepNew(obj)\
    (likely(PyList_CheckExact(obj) && Py_REFCNT(obj) == 1) ? __Pyx_NewRef(obj) : PySequence_List(obj))
#else
  #define __Pyx_PySequence_ListKeepNew(obj)  PySequence_List(obj)
#endif
#ifndef PySet_CheckExact
  #define PySet_CheckExact(obj)        __Pyx_IS_TYPE(obj, &PySet_Type)
#endif
#if PY_VERSION_HEX >= 0x030900A4
  #define __Pyx_SET_REFCNT(obj, refcnt) Py_SET_REFCNT(obj, refcnt)
  #define __Pyx_SET_SIZE(obj, size) Py_SET_SIZE(obj, size)
#else
  #define __Pyx_SET_REFCNT(obj, refcnt) Py_REFCNT(obj) = (refcnt)
  #define __Pyx_SET_SIZE(obj, size) Py_SIZE(obj) = (size)
#endif
enum __Pyx_ReferenceSharing {
  __Pyx_ReferenceSharing_DefinitelyUnique, // We created it so we know it's unshared - no need to check
  __Pyx_ReferenceSharing_OwnStrongReference,
  __Pyx_ReferenceSharing_FunctionArgument,
  __Pyx_ReferenceSharing_SharedReference, // Never trust it to be unshared because it's a global or similar
};
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && PY_VERSION_HEX >= 0x030E0000
#define __Pyx_IS_UNIQUELY_REFERENCED(o, sharing)\
    (sharing == __Pyx_ReferenceSharing_DefinitelyUnique ? 1 :\
      (sharing == __Pyx_ReferenceSharing_FunctionArgument ? PyUnstable_Object_IsUniqueReferencedTemporary(o) :\
      (sharing == __Pyx_ReferenceSharing_OwnStrongReference ? PyUnstable_Object_IsUniquelyReferenced(o) : 0)))
#elif (CYTHON_COMPILING_IN_CPYTHON && !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING) || CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_IS_UNIQUELY_REFERENCED(o, sharing) (((void)sharing), Py_REFCNT(o) == 1)
#else
#define __Pyx_IS_UNIQUELY_REFERENCED(o, sharing) (((void)o), ((void)sharing), 0)
#endif
#if CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
  #if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
    #define __Pyx_PyList_GetItemRef(o, i) PyList_GetItemRef(o, i)
  #elif CYTHON_COMPILING_IN_LIMITED_API || !CYTHON_ASSUME_SAFE_MACROS
    #define __Pyx_PyList_GetItemRef(o, i) (likely((i) >= 0) ? PySequence_GetItem(o, i) : (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL))
  #else
    #define __Pyx_PyList_GetItemRef(o, i) PySequence_ITEM(o, i)
  #endif
#elif CYTHON_COMPILING_IN_LIMITED_API || !CYTHON_ASSUME_SAFE_MACROS
  #if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
    #define __Pyx_PyList_GetItemRef(o, i) PyList_GetItemRef(o, i)
  #else
    #define __Pyx_PyList_GetItemRef(o, i) __Pyx_XNewRef(PyList_GetItem(o, i))
  #endif
#else
  #define __Pyx_PyList_GetItemRef(o, i) __Pyx_NewRef(PyList_GET_ITEM(o, i))
#endif
#if CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS && !CYTHON_COMPILING_IN_LIMITED_API && CYTHON_ASSUME_SAFE_MACROS
  #define __Pyx_PyList_GetItemRefFast(o, i, unsafe_shared) (__Pyx_IS_UNIQUELY_REFERENCED(o, unsafe_shared) ?\
    __Pyx_NewRef(PyList_GET_ITEM(o, i)) : __Pyx_PyList_GetItemRef(o, i))
#else
  #define __Pyx_PyList_GetItemRefFast(o, i, unsafe_shared) __Pyx_PyList_GetItemRef(o, i)
#endif
#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
#define __Pyx_PyDict_GetItemRef(dict, key, result) PyDict_GetItemRef(dict, key, result)
#elif CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
static CYTHON_INLINE int __Pyx_PyDict_GetItemRef(PyObject *dict, PyObject *key, PyObject **result) {
  *result = PyObject_GetItem(dict, key);
  if (*result == NULL) {
    if (PyErr_ExceptionMatches(PyExc_KeyError)) {
      PyErr_Clear();
      return 0;
    }
    return -1;
  }
  return 1;
}
#else
static CYTHON_INLINE int __Pyx_PyDict_GetItemRef(PyObject *dict, PyObject *key, PyObject **result) {
  *result = PyDict_GetItemWithError(dict, key);
  if (*result == NULL) {
    return PyErr_Occurred() ? -1 : 0;
  }
  Py_INCREF(*result);
  return 1;
}
#endif
#if defined(CYTHON_DEBUG_VISIT_CONST) && CYTHON_DEBUG_VISIT_CONST
  #define __Pyx_VISIT_CONST(obj)  Py_VISIT(obj)
#else
  #define __Pyx_VISIT_CONST(obj)
#endif
#if CYTHON_ASSUME_SAFE_MACROS
  #define __Pyx_PySequence_ITEM(o, i) PySequence_ITEM(o, i)
  #define __Pyx_PySequence_SIZE(seq)  Py_SIZE(seq)
  #define __Pyx_PyTuple_SET_ITEM(o, i, v) (PyTuple_SET_ITEM(o, i, v), (0))
  #define __Pyx_PyTuple_GET_ITEM(o, i) PyTuple_GET_ITEM(o, i)
  #define __Pyx_PyList_SET_ITEM(o, i, v) (PyList_SET_ITEM(o, i, v), (0))
  #define __Pyx_PyList_GET_ITEM(o, i) PyList_GET_ITEM(o, i)
#else
  #define __Pyx_PySequence_ITEM(o, i) PySequence_GetItem(o, i)
  #define __Pyx_PySequence_SIZE(seq)  PySequence_Size(seq)
  #define __Pyx_PyTuple_SET_ITEM(o, i, v) PyTuple_SetItem(o, i, v)
  #define __Pyx_PyTuple_GET_ITEM(o, i) PyTuple_GetItem(o, i)
  #define __Pyx_PyList_SET_ITEM(o, i, v) PyList_SetItem(o, i, v)
  #define __Pyx_PyList_GET_ITEM(o, i) PyList_GetItem(o, i)
#endif
#if CYTHON_ASSUME_SAFE_SIZE
  #define __Pyx_PyTuple_GET_SIZE(o) PyTuple_GET_SIZE(o)
  #define __Pyx_PyList_GET_SIZE(o) PyList_GET_SIZE(o)
  #define __Pyx_PySet_GET_SIZE(o) PySet_GET_SIZE(o)
  #define __Pyx_PyBytes_GET_SIZE(o) PyBytes_GET_SIZE(o)
  #define __Pyx_PyByteArray_GET_SIZE(o) PyByteArray_GET_SIZE(o)
  #define __Pyx_PyUnicode_GET_LENGTH(o) PyUnicode_GET_LENGTH(o)
#else
  #define __Pyx_PyTuple_GET_SIZE(o) PyTuple_Size(o)
  #define __Pyx_PyList_GET_SIZE(o) PyList_Size(o)
  #define __Pyx_PySet_GET_SIZE(o) PySet_Size(o)
  #define __Pyx_PyBytes_GET_SIZE(o) PyBytes_Size(o)
  #define __Pyx_PyByteArray_GET_SIZE(o) PyByteArray_Size(o)
  #define __Pyx_PyUnicode_GET_LENGTH(o) PyUnicode_GetLength(o)
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_InternFromString)
  #define PyUnicode_InternFromString(s) PyUnicode_FromString(s)
#endif
#define __Pyx_PyLong_FromHash_t PyLong_FromSsize_t
#define __Pyx_PyLong_AsHash_t   __Pyx_PyIndex_AsSsize_t
#if __PYX_LIMITED_VERSION_HEX >= 0x030A0000
    #define __Pyx_PySendResult PySendResult
#else
    typedef enum {
        PYGEN_RETURN = 0,
        PYGEN_ERROR = -1,
        PYGEN_NEXT = 1,
    } __Pyx_PySendResult;
#endif
#if CYTHON_COMPILING_IN_LIMITED_API || PY_VERSION_HEX < 0x030A00A3
  typedef __Pyx_PySendResult (*__Pyx_pyiter_sendfunc)(PyObject *iter, PyObject *value, PyObject **result);
#else
  #define __Pyx_pyiter_sendfunc sendfunc
#endif
#if !CYTHON_USE_AM_SEND
#define __PYX_HAS_PY_AM_SEND 0
#elif __PYX_LIMITED_VERSION_HEX >= 0x030A0000
#define __PYX_HAS_PY_AM_SEND 1
#else
#define __PYX_HAS_PY_AM_SEND 2  // our own backported implementation
#endif
#if __PYX_HAS_PY_AM_SEND < 2
    #define __Pyx_PyAsyncMethodsStruct PyAsyncMethods
#else
    typedef struct {
        unaryfunc am_await;
        unaryfunc am_aiter;
        unaryfunc am_anext;
        __Pyx_pyiter_sendfunc am_send;
    } __Pyx_PyAsyncMethodsStruct;
    #define __Pyx_SlotTpAsAsync(s) ((PyAsyncMethods*)(s))
#endif
#if CYTHON_USE_AM_SEND && PY_VERSION_HEX < 0x030A00F0
    #define __Pyx_TPFLAGS_HAVE_AM_SEND (1UL << 21)
#else
    #define __Pyx_TPFLAGS_HAVE_AM_SEND (0)
#endif
#if PY_VERSION_HEX >= 0x03090000
#define __Pyx_PyInterpreterState_Get() PyInterpreterState_Get()
#else
#define __Pyx_PyInterpreterState_Get() PyThreadState_Get()->interp
#endif
#if CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030A0000
#ifdef __cplusplus
extern "C"
#endif
PyAPI_FUNC(void *) PyMem_Calloc(size_t nelem, size_t elsize);
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
static int __Pyx_init_co_variable(PyObject *inspect, const char* name, int *write_to) {
    int value;
    PyObject *py_value = PyObject_GetAttrString(inspect, name);
    if (!py_value) return 0;
    value = (int) PyLong_AsLong(py_value);
    Py_DECREF(py_value);
    *write_to = value;
    return value != -1 || !PyErr_Occurred();
}
static int __Pyx_init_co_variables(void) {
    PyObject *inspect;
    int result;
    inspect = PyImport_ImportModule("inspect");
    result =
#if !defined(CO_OPTIMIZED)
        __Pyx_init_co_variable(inspect, "CO_OPTIMIZED", &CO_OPTIMIZED) &&
#endif
#if !defined(CO_NEWLOCALS)
        __Pyx_init_co_variable(inspect, "CO_NEWLOCALS", &CO_NEWLOCALS) &&
#endif
#if !defined(CO_VARARGS)
        __Pyx_init_co_variable(inspect, "CO_VARARGS", &CO_VARARGS) &&
#endif
#if !defined(CO_VARKEYWORDS)
        __Pyx_init_co_variable(inspect, "CO_VARKEYWORDS", &CO_VARKEYWORDS) &&
#endif
#if !defined(CO_ASYNC_GENERATOR)
        __Pyx_init_co_variable(inspect, "CO_ASYNC_GENERATOR", &CO_ASYNC_GENERATOR) &&
#endif
#if !defined(CO_GENERATOR)
        __Pyx_init_co_variable(inspect, "CO_GENERATOR", &CO_GENERATOR) &&
#endif
#if !defined(CO_COROUTINE)
        __Pyx_init_co_variable(inspect, "CO_COROUTINE", &CO_COROUTINE) &&
#endif
        1;
    Py_DECREF(inspect);
    return result ? 0 : -1;
}
#else
static int __Pyx_init_co_variables(void) {
    return 0;  // It's a limited API-only feature
}
#endif

/* MathInitCode */
#if defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS)
  #ifndef _USE_MATH_DEFINES
    #define _USE_MATH_DEFINES
  #endif
#endif
#include <math.h>
#if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL)
#define __Pyx_truncl trunc
#else
#define __Pyx_truncl truncl
#endif

#ifndef CYTHON_CLINE_IN_TRACEBACK_RUNTIME
#define CYTHON_CLINE_IN_TRACEBACK_RUNTIME 0
#endif
#ifndef CYTHON_CLINE_IN_TRACEBACK
#define CYTHON_CLINE_IN_TRACEBACK CYTHON_CLINE_IN_TRACEBACK_RUNTIME
#endif
#if CYTHON_CLINE_IN_TRACEBACK
#define __PYX_MARK_ERR_POS(f_index, lineno)  { __pyx_filename = __pyx_f[f_index]; (void) __pyx_filename; __pyx_lineno = lineno; (void) __pyx_lineno; __pyx_clineno = __LINE__; (void) __pyx_clineno; }
#else
#define __PYX_MARK_ERR_POS(f_index, lineno)  { __pyx_filename = __pyx_f[f_index]; (void) __pyx_filename; __pyx_lineno = lineno; (void) __pyx_lineno; (void) __pyx_clineno; }
#endif
#define __PYX_ERR(f_index, lineno, Ln_error) \
    { __PYX_MARK_ERR_POS(f_index, lineno) goto Ln_error; }

#ifdef CYTHON_EXTERN_C
    #undef __PYX_EXTERN_C
    #define __PYX_EXTERN_C CYTHON_EXTERN_C
#elif defined(__PYX_EXTERN_C)
    #ifdef _MSC_VER
    #pragma message ("Please do not define the '__PYX_EXTERN_C' macro externally. Use 'CYTHON_EXTERN_C' instead.")
    #else
    #warning Please do not define the '__PYX_EXTERN_C' macro externally. Use 'CYTHON_EXTERN_C' instead.
    #endif
#else
  #ifdef __cplusplus
    #define __PYX_EXTERN_C extern "C"
  #else
    #define __PYX_EXTERN_C extern
  #endif
#endif

#define __PYX_HAVE__kivy__graphics__cgl_backend__cgl_debug
#define __PYX_HAVE_API__kivy__graphics__cgl_backend__cgl_debug
/* Early includes */
#include "math.h"
#include "stdlib.h"
#include "string.h"
#include "gl_redirect.h"
#ifdef _OPENMP
#include <omp.h>
#endif /* _OPENMP */

#if defined(PYREX_WITHOUT_ASSERTIONS) && !defined(CYTHON_WITHOUT_ASSERTIONS)
#define CYTHON_WITHOUT_ASSERTIONS
#endif

#ifdef CYTHON_FREETHREADING_COMPATIBLE
#if CYTHON_FREETHREADING_COMPATIBLE
#define __Pyx_FREETHREADING_COMPATIBLE Py_MOD_GIL_NOT_USED
#else
#define __Pyx_FREETHREADING_COMPATIBLE Py_MOD_GIL_USED
#endif
#else
#define __Pyx_FREETHREADING_COMPATIBLE Py_MOD_GIL_USED
#endif
#define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0
#define __PYX_DEFAULT_STRING_ENCODING_IS_UTF8 0
#define __PYX_DEFAULT_STRING_ENCODING "utf-8"
#define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString
#define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
#define __Pyx_uchar_cast(c) ((unsigned char)c)
#define __Pyx_long_cast(x) ((long)x)
#define __Pyx_fits_Py_ssize_t(v, type, is_signed)  (\
    (sizeof(type) < sizeof(Py_ssize_t))  ||\
    (sizeof(type) > sizeof(Py_ssize_t) &&\
          likely(v < (type)PY_SSIZE_T_MAX ||\
                 v == (type)PY_SSIZE_T_MAX)  &&\
          (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\
                                v == (type)PY_SSIZE_T_MIN)))  ||\
    (sizeof(type) == sizeof(Py_ssize_t) &&\
          (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\
                               v == (type)PY_SSIZE_T_MAX)))  )
static CYTHON_INLINE int __Pyx_is_valid_index(Py_ssize_t i, Py_ssize_t limit) {
    return (size_t) i < (size_t) limit;
}
#if defined (__cplusplus) && __cplusplus >= 201103L
    #include <cstdlib>
    #define __Pyx_sst_abs(value) std::abs(value)
#elif SIZEOF_INT >= SIZEOF_SIZE_T
    #define __Pyx_sst_abs(value) abs(value)
#elif SIZEOF_LONG >= SIZEOF_SIZE_T
    #define __Pyx_sst_abs(value) labs(value)
#elif defined (_MSC_VER)
    #define __Pyx_sst_abs(value) ((Py_ssize_t)_abs64(value))
#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define __Pyx_sst_abs(value) llabs(value)
#elif defined (__GNUC__)
    #define __Pyx_sst_abs(value) __builtin_llabs(value)
#else
    #define __Pyx_sst_abs(value) ((value<0) ? -value : value)
#endif
static CYTHON_INLINE Py_ssize_t __Pyx_ssize_strlen(const char *s);
static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject*);
static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length);
static CYTHON_INLINE PyObject* __Pyx_PyByteArray_FromString(const char*);
#define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l)
#define __Pyx_PyBytes_FromString        PyBytes_FromString
#define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*);
#if CYTHON_ASSUME_SAFE_MACROS
    #define __Pyx_PyBytes_AsWritableString(s)     ((char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyBytes_AsWritableSString(s)    ((signed char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyBytes_AsWritableUString(s)    ((unsigned char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyBytes_AsString(s)     ((const char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyBytes_AsSString(s)    ((const signed char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyBytes_AsUString(s)    ((const unsigned char*) PyBytes_AS_STRING(s))
    #define __Pyx_PyByteArray_AsString(s) PyByteArray_AS_STRING(s)
#else
    #define __Pyx_PyBytes_AsWritableString(s)     ((char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsWritableSString(s)    ((signed char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsWritableUString(s)    ((unsigned char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsString(s)     ((const char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsSString(s)    ((const signed char*) PyBytes_AsString(s))
    #define __Pyx_PyBytes_AsUString(s)    ((const unsigned char*) PyBytes_AsString(s))
    #define __Pyx_PyByteArray_AsString(s) PyByteArray_AsString(s)
#endif
#define __Pyx_PyObject_AsWritableString(s)    ((char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsWritableSString(s)    ((signed char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsWritableUString(s)    ((unsigned char*)(__pyx_uintptr_t) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsSString(s)    ((const signed char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsUString(s)    ((const unsigned char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_FromCString(s)  __Pyx_PyObject_FromString((const char*)s)
#define __Pyx_PyBytes_FromCString(s)   __Pyx_PyBytes_FromString((const char*)s)
#define __Pyx_PyByteArray_FromCString(s)   __Pyx_PyByteArray_FromString((const char*)s)
#define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s)
#define __Pyx_PyUnicode_FromOrdinal(o)       PyUnicode_FromOrdinal((int)o)
#define __Pyx_PyUnicode_AsUnicode            PyUnicode_AsUnicode
static CYTHON_INLINE PyObject *__Pyx_NewRef(PyObject *obj) {
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030a0000 || defined(Py_NewRef)
    return Py_NewRef(obj);
#else
    Py_INCREF(obj);
    return obj;
#endif
}
static CYTHON_INLINE PyObject *__Pyx_XNewRef(PyObject *obj) {
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030a0000 || defined(Py_XNewRef)
    return Py_XNewRef(obj);
#else
    Py_XINCREF(obj);
    return obj;
#endif
}
static CYTHON_INLINE PyObject *__Pyx_Owned_Py_None(int b);
static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b);
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*);
static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject*);
static CYTHON_INLINE PyObject* __Pyx_PyNumber_Long(PyObject* x);
#define __Pyx_PySequence_Tuple(obj)\
    (likely(PyTuple_CheckExact(obj)) ? __Pyx_NewRef(obj) : PySequence_Tuple(obj))
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
static CYTHON_INLINE PyObject * __Pyx_PyLong_FromSize_t(size_t);
static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject*);
#if CYTHON_ASSUME_SAFE_MACROS
#define __Pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
#define __Pyx_PyFloat_AS_DOUBLE(x) PyFloat_AS_DOUBLE(x)
#else
#define __Pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x)
#define __Pyx_PyFloat_AS_DOUBLE(x) PyFloat_AsDouble(x)
#endif
#define __Pyx_PyFloat_AsFloat(x) ((float) __Pyx_PyFloat_AsDouble(x))
#define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x))
#if CYTHON_USE_PYLONG_INTERNALS
  #if PY_VERSION_HEX >= 0x030C00A7
  #ifndef _PyLong_SIGN_MASK
    #define _PyLong_SIGN_MASK 3
  #endif
  #ifndef _PyLong_NON_SIZE_BITS
    #define _PyLong_NON_SIZE_BITS 3
  #endif
  #define __Pyx_PyLong_Sign(x)  (((PyLongObject*)x)->long_value.lv_tag & _PyLong_SIGN_MASK)
  #define __Pyx_PyLong_IsNeg(x)  ((__Pyx_PyLong_Sign(x) & 2) != 0)
  #define __Pyx_PyLong_IsNonNeg(x)  (!__Pyx_PyLong_IsNeg(x))
  #define __Pyx_PyLong_IsZero(x)  (__Pyx_PyLong_Sign(x) & 1)
  #define __Pyx_PyLong_IsPos(x)  (__Pyx_PyLong_Sign(x) == 0)
  #define __Pyx_PyLong_CompactValueUnsigned(x)  (__Pyx_PyLong_Digits(x)[0])
  #define __Pyx_PyLong_DigitCount(x)  ((Py_ssize_t) (((PyLongObject*)x)->long_value.lv_tag >> _PyLong_NON_SIZE_BITS))
  #define __Pyx_PyLong_SignedDigitCount(x)\
        ((1 - (Py_ssize_t) __Pyx_PyLong_Sign(x)) * __Pyx_PyLong_DigitCount(x))
  #if defined(PyUnstable_Long_IsCompact) && defined(PyUnstable_Long_CompactValue)
    #define __Pyx_PyLong_IsCompact(x)     PyUnstable_Long_IsCompact((PyLongObject*) x)
    #define __Pyx_PyLong_CompactValue(x)  PyUnstable_Long_CompactValue((PyLongObject*) x)
  #else
    #define __Pyx_PyLong_IsCompact(x)     (((PyLongObject*)x)->long_value.lv_tag < (2 << _PyLong_NON_SIZE_BITS))
    #define __Pyx_PyLong_CompactValue(x)  ((1 - (Py_ssize_t) __Pyx_PyLong_Sign(x)) * (Py_ssize_t) __Pyx_PyLong_Digits(x)[0])
  #endif
  typedef Py_ssize_t  __Pyx_compact_pylong;
  typedef size_t  __Pyx_compact_upylong;
  #else
  #define __Pyx_PyLong_IsNeg(x)  (Py_SIZE(x) < 0)
  #define __Pyx_PyLong_IsNonNeg(x)  (Py_SIZE(x) >= 0)
  #define __Pyx_PyLong_IsZero(x)  (Py_SIZE(x) == 0)
  #define __Pyx_PyLong_IsPos(x)  (Py_SIZE(x) > 0)
  #define __Pyx_PyLong_CompactValueUnsigned(x)  ((Py_SIZE(x) == 0) ? 0 : __Pyx_PyLong_Digits(x)[0])
  #define __Pyx_PyLong_DigitCount(x)  __Pyx_sst_abs(Py_SIZE(x))
  #define __Pyx_PyLong_SignedDigitCount(x)  Py_SIZE(x)
  #define __Pyx_PyLong_IsCompact(x)  (Py_SIZE(x) == 0 || Py_SIZE(x) == 1 || Py_SIZE(x) == -1)
  #define __Pyx_PyLong_CompactValue(x)\
        ((Py_SIZE(x) == 0) ? (sdigit) 0 : ((Py_SIZE(x) < 0) ? -(sdigit)__Pyx_PyLong_Digits(x)[0] : (sdigit)__Pyx_PyLong_Digits(x)[0]))
  typedef sdigit  __Pyx_compact_pylong;
  typedef digit  __Pyx_compact_upylong;
  #endif
  #if PY_VERSION_HEX >= 0x030C00A5
  #define __Pyx_PyLong_Digits(x)  (((PyLongObject*)x)->long_value.ob_digit)
  #else
  #define __Pyx_PyLong_Digits(x)  (((PyLongObject*)x)->ob_digit)
  #endif
#endif
#if __PYX_DEFAULT_STRING_ENCODING_IS_UTF8
  #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL)
#elif __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
  #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeASCII(c_str, size, NULL)
#else
  #define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL)
#endif


/* Test for GCC > 2.95 */
#if defined(__GNUC__)     && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95)))
  #define likely(x)   __builtin_expect(!!(x), 1)
  #define unlikely(x) __builtin_expect(!!(x), 0)
#else /* !__GNUC__ or GCC < 2.95 */
  #define likely(x)   (x)
  #define unlikely(x) (x)
#endif /* __GNUC__ */
/* PretendToInitialize */
#ifdef __cplusplus
#if __cplusplus > 201103L
#include <type_traits>
#endif
template <typename T>
static void __Pyx_pretend_to_initialize(T* ptr) {
#if __cplusplus > 201103L
    if ((std::is_trivially_default_constructible<T>::value))
#endif
        *ptr = T();
    (void)ptr;
}
#else
static CYTHON_INLINE void __Pyx_pretend_to_initialize(void* ptr) { (void)ptr; }
#endif


#if !CYTHON_USE_MODULE_STATE
static PyObject *__pyx_m = NULL;
#endif
static int __pyx_lineno;
static int __pyx_clineno = 0;
static const char * const __pyx_cfilenm = __FILE__;
static const char *__pyx_filename;

/* #### Code section: filename_table ### */

static const char* const __pyx_f[] = {
  "kivy/graphics/cgl_backend/cgl_debug.pyx",
};
/* #### Code section: utility_code_proto_before_types ### */
/* Atomics.proto (used by UnpackUnboundCMethod) */
#include <pythread.h>
#ifndef CYTHON_ATOMICS
    #define CYTHON_ATOMICS 1
#endif
#define __PYX_CYTHON_ATOMICS_ENABLED() CYTHON_ATOMICS
#define __PYX_GET_CYTHON_COMPILING_IN_CPYTHON_FREETHREADING() CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#define __pyx_atomic_int_type int
#define __pyx_nonatomic_int_type int
#if CYTHON_ATOMICS && (defined(__STDC_VERSION__) &&\
                        (__STDC_VERSION__ >= 201112L) &&\
                        !defined(__STDC_NO_ATOMICS__))
    #include <stdatomic.h>
#elif CYTHON_ATOMICS && (defined(__cplusplus) && (\
                    (__cplusplus >= 201103L) ||\
                    (defined(_MSC_VER) && _MSC_VER >= 1700)))
    #include <atomic>
#endif
#if CYTHON_ATOMICS && (defined(__STDC_VERSION__) &&\
                        (__STDC_VERSION__ >= 201112L) &&\
                        !defined(__STDC_NO_ATOMICS__) &&\
                       ATOMIC_INT_LOCK_FREE == 2)
    #undef __pyx_atomic_int_type
    #define __pyx_atomic_int_type atomic_int
    #define __pyx_atomic_ptr_type atomic_uintptr_t
    #define __pyx_nonatomic_ptr_type uintptr_t
    #define __pyx_atomic_incr_relaxed(value) atomic_fetch_add_explicit(value, 1, memory_order_relaxed)
    #define __pyx_atomic_incr_acq_rel(value) atomic_fetch_add_explicit(value, 1, memory_order_acq_rel)
    #define __pyx_atomic_decr_acq_rel(value) atomic_fetch_sub_explicit(value, 1, memory_order_acq_rel)
    #define __pyx_atomic_sub(value, arg) atomic_fetch_sub(value, arg)
    #define __pyx_atomic_int_cmp_exchange(value, expected, desired) atomic_compare_exchange_strong(value, expected, desired)
    #define __pyx_atomic_load(value) atomic_load(value)
    #define __pyx_atomic_store(value, new_value) atomic_store(value, new_value)
    #define __pyx_atomic_pointer_load_relaxed(value) atomic_load_explicit(value, memory_order_relaxed)
    #define __pyx_atomic_pointer_load_acquire(value) atomic_load_explicit(value, memory_order_acquire)
    #define __pyx_atomic_pointer_exchange(value, new_value) atomic_exchange(value, (__pyx_nonatomic_ptr_type)new_value)
    #define __pyx_atomic_pointer_cmp_exchange(value, expected, desired) atomic_compare_exchange_strong(value, expected, desired)
    #if defined(__PYX_DEBUG_ATOMICS) && defined(_MSC_VER)
        #pragma message ("Using standard C atomics")
    #elif defined(__PYX_DEBUG_ATOMICS)
        #warning "Using standard C atomics"
    #endif
#elif CYTHON_ATOMICS && (defined(__cplusplus) && (\
                    (__cplusplus >= 201103L) ||\
\
                    (defined(_MSC_VER) && _MSC_VER >= 1700)) &&\
                    ATOMIC_INT_LOCK_FREE == 2)
    #undef __pyx_atomic_int_type
    #define __pyx_atomic_int_type std::atomic_int
    #define __pyx_atomic_ptr_type std::atomic_uintptr_t
    #define __pyx_nonatomic_ptr_type uintptr_t
    #define __pyx_atomic_incr_relaxed(value) std::atomic_fetch_add_explicit(value, 1, std::memory_order_relaxed)
    #define __pyx_atomic_incr_acq_rel(value) std::atomic_fetch_add_explicit(value, 1, std::memory_order_acq_rel)
    #define __pyx_atomic_decr_acq_rel(value) std::atomic_fetch_sub_explicit(value, 1, std::memory_order_acq_rel)
    #define __pyx_atomic_sub(value, arg) std::atomic_fetch_sub(value, arg)
    #define __pyx_atomic_int_cmp_exchange(value, expected, desired) std::atomic_compare_exchange_strong(value, expected, desired)
    #define __pyx_atomic_load(value) std::atomic_load(value)
    #define __pyx_atomic_store(value, new_value) std::atomic_store(value, new_value)
    #define __pyx_atomic_pointer_load_relaxed(value) std::atomic_load_explicit(value, std::memory_order_relaxed)
    #define __pyx_atomic_pointer_load_acquire(value) std::atomic_load_explicit(value, std::memory_order_acquire)
    #define __pyx_atomic_pointer_exchange(value, new_value) std::atomic_exchange(value, (__pyx_nonatomic_ptr_type)new_value)
    #define __pyx_atomic_pointer_cmp_exchange(value, expected, desired) std::atomic_compare_exchange_strong(value, expected, desired)
    #if defined(__PYX_DEBUG_ATOMICS) && defined(_MSC_VER)
        #pragma message ("Using standard C++ atomics")
    #elif defined(__PYX_DEBUG_ATOMICS)
        #warning "Using standard C++ atomics"
    #endif
#elif CYTHON_ATOMICS && (__GNUC__ >= 5 || (__GNUC__ == 4 &&\
                    (__GNUC_MINOR__ > 1 ||\
                    (__GNUC_MINOR__ == 1 && __GNUC_PATCHLEVEL__ >= 2))))
    #define __pyx_atomic_ptr_type void*
    #define __pyx_nonatomic_ptr_type void*
    #define __pyx_atomic_incr_relaxed(value) __sync_fetch_and_add(value, 1)
    #define __pyx_atomic_incr_acq_rel(value) __sync_fetch_and_add(value, 1)
    #define __pyx_atomic_decr_acq_rel(value) __sync_fetch_and_sub(value, 1)
    #define __pyx_atomic_sub(value, arg) __sync_fetch_and_sub(value, arg)
    static CYTHON_INLINE int __pyx_atomic_int_cmp_exchange(__pyx_atomic_int_type* value, __pyx_nonatomic_int_type* expected, __pyx_nonatomic_int_type desired) {
        __pyx_nonatomic_int_type old = __sync_val_compare_and_swap(value, *expected, desired);
        int result = old == *expected;
        *expected = old;
        return result;
    }
    #define __pyx_atomic_load(value) __sync_fetch_and_add(value, 0)
    #define __pyx_atomic_store(value, new_value) __sync_lock_test_and_set(value, new_value)
    #define __pyx_atomic_pointer_load_relaxed(value) __sync_fetch_and_add(value, 0)
    #define __pyx_atomic_pointer_load_acquire(value) __sync_fetch_and_add(value, 0)
    #define __pyx_atomic_pointer_exchange(value, new_value) __sync_lock_test_and_set(value, (__pyx_atomic_ptr_type)new_value)
    static CYTHON_INLINE int __pyx_atomic_pointer_cmp_exchange(__pyx_atomic_ptr_type* value, __pyx_nonatomic_ptr_type* expected, __pyx_nonatomic_ptr_type desired) {
        __pyx_nonatomic_ptr_type old = __sync_val_compare_and_swap(value, *expected, desired);
        int result = old == *expected;
        *expected = old;
        return result;
    }
    #ifdef __PYX_DEBUG_ATOMICS
        #warning "Using GNU atomics"
    #endif
#elif CYTHON_ATOMICS && defined(_MSC_VER)
    #include <intrin.h>
    #undef __pyx_atomic_int_type
    #define __pyx_atomic_int_type long
    #define __pyx_atomic_ptr_type void*
    #undef __pyx_nonatomic_int_type
    #define __pyx_nonatomic_int_type long
    #define __pyx_nonatomic_ptr_type void*
    #pragma intrinsic (_InterlockedExchangeAdd, _InterlockedExchange, _InterlockedCompareExchange, _InterlockedCompareExchangePointer, _InterlockedExchangePointer)
    #define __pyx_atomic_incr_relaxed(value) _InterlockedExchangeAdd(value, 1)
    #define __pyx_atomic_incr_acq_rel(value) _InterlockedExchangeAdd(value, 1)
    #define __pyx_atomic_decr_acq_rel(value) _InterlockedExchangeAdd(value, -1)
    #define __pyx_atomic_sub(value, arg) _InterlockedExchangeAdd(value, -arg)
    static CYTHON_INLINE int __pyx_atomic_int_cmp_exchange(__pyx_atomic_int_type* value, __pyx_nonatomic_int_type* expected, __pyx_nonatomic_int_type desired) {
        __pyx_nonatomic_int_type old = _InterlockedCompareExchange(value, desired, *expected);
        int result = old == *expected;
        *expected = old;
        return result;
    }
    #define __pyx_atomic_load(value) _InterlockedExchangeAdd(value, 0)
    #define __pyx_atomic_store(value, new_value) _InterlockedExchange(value, new_value)
    #define __pyx_atomic_pointer_load_relaxed(value) *(void * volatile *)value
    #define __pyx_atomic_pointer_load_acquire(value) _InterlockedCompareExchangePointer(value, 0, 0)
    #define __pyx_atomic_pointer_exchange(value, new_value) _InterlockedExchangePointer(value, (__pyx_atomic_ptr_type)new_value)
    static CYTHON_INLINE int __pyx_atomic_pointer_cmp_exchange(__pyx_atomic_ptr_type* value, __pyx_nonatomic_ptr_type* expected, __pyx_nonatomic_ptr_type desired) {
        __pyx_atomic_ptr_type old = _InterlockedCompareExchangePointer(value, desired, *expected);
        int result = old == *expected;
        *expected = old;
        return result;
    }
    #ifdef __PYX_DEBUG_ATOMICS
        #pragma message ("Using MSVC atomics")
    #endif
#else
    #undef CYTHON_ATOMICS
    #define CYTHON_ATOMICS 0
    #ifdef __PYX_DEBUG_ATOMICS
        #warning "Not using atomics"
    #endif
#endif

/* ForceInitThreads.proto */
#ifndef __PYX_FORCE_INIT_THREADS
  #define __PYX_FORCE_INIT_THREADS 0
#endif

/* NoFastGil.proto */
#define __Pyx_PyGILState_Ensure PyGILState_Ensure
#define __Pyx_PyGILState_Release PyGILState_Release
#define __Pyx_FastGIL_Remember()
#define __Pyx_FastGIL_Forget()
#define __Pyx_FastGilFuncInit()

/* IncludeStructmemberH.proto (used by FixUpExtensionType) */
#include <structmember.h>

/* CriticalSectionsDefinition.proto (used by CriticalSections) */
#if !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#define __Pyx_PyCriticalSection void*
#define __Pyx_PyCriticalSection2 void*
#define __Pyx_PyCriticalSection_End(cs)
#define __Pyx_PyCriticalSection2_End(cs)
#else
#define __Pyx_PyCriticalSection PyCriticalSection
#define __Pyx_PyCriticalSection2 PyCriticalSection2
#define __Pyx_PyCriticalSection_End PyCriticalSection_End
#define __Pyx_PyCriticalSection2_End PyCriticalSection2_End
#endif

/* CriticalSections.proto (used by CythonFunctionShared) */
#if !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#define __Pyx_PyCriticalSection_Begin(cs, arg) (void)(cs)
#define __Pyx_PyCriticalSection2_Begin(cs, arg1, arg2) (void)(cs)
#else
#define __Pyx_PyCriticalSection_Begin PyCriticalSection_Begin
#define __Pyx_PyCriticalSection2_Begin PyCriticalSection2_Begin
#endif
#if PY_VERSION_HEX < 0x030d0000 || CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_BEGIN_CRITICAL_SECTION(o) {
#define __Pyx_END_CRITICAL_SECTION() }
#else
#define __Pyx_BEGIN_CRITICAL_SECTION Py_BEGIN_CRITICAL_SECTION
#define __Pyx_END_CRITICAL_SECTION Py_END_CRITICAL_SECTION
#endif

/* #### Code section: numeric_typedefs ### */
/* #### Code section: complex_type_declarations ### */
/* #### Code section: type_declarations ### */

/*--- Type declarations ---*/
struct __pyx_t_4kivy_8graphics_3cgl_GLES2_Context;
typedef struct __pyx_t_4kivy_8graphics_3cgl_GLES2_Context __pyx_t_4kivy_8graphics_3cgl_GLES2_Context;
struct __pyx_opt_args_4kivy_8graphics_3cgl_cgl_init;
struct __pyx_opt_args_4kivy_8graphics_3cgl_cgl_get_backend_name;

/* "kivy/graphics/cgl.pxd":381
 *     int GL_FRAMEBUFFER_UNDEFINED_OES
 * 
 * ctypedef const GLubyte* (__stdcall *GLGETSTRINGPTR)(GLenum) nogil             # <<<<<<<<<<<<<<
 * ctypedef GLboolean (__stdcall *GLISBUFFERPTR)(GLuint buffer) nogil
 * ctypedef GLboolean (__stdcall *GLISENABLEDPTR)(GLenum cap) nogil
*/
typedef GLubyte const *(__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETSTRINGPTR)(GLenum);

/* "kivy/graphics/cgl.pxd":382
 * 
 * ctypedef const GLubyte* (__stdcall *GLGETSTRINGPTR)(GLenum) nogil
 * ctypedef GLboolean (__stdcall *GLISBUFFERPTR)(GLuint buffer) nogil             # <<<<<<<<<<<<<<
 * ctypedef GLboolean (__stdcall *GLISENABLEDPTR)(GLenum cap) nogil
 * ctypedef GLboolean (__stdcall *GLISFRAMEBUFFERPTR)(GLuint framebuffer) nogil
*/
typedef GLboolean (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLISBUFFERPTR)(GLuint);

/* "kivy/graphics/cgl.pxd":383
 * ctypedef const GLubyte* (__stdcall *GLGETSTRINGPTR)(GLenum) nogil
 * ctypedef GLboolean (__stdcall *GLISBUFFERPTR)(GLuint buffer) nogil
 * ctypedef GLboolean (__stdcall *GLISENABLEDPTR)(GLenum cap) nogil             # <<<<<<<<<<<<<<
 * ctypedef GLboolean (__stdcall *GLISFRAMEBUFFERPTR)(GLuint framebuffer) nogil
 * ctypedef GLboolean (__stdcall *GLISPROGRAMPTR)(GLuint program) nogil
*/
typedef GLboolean (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLISENABLEDPTR)(GLenum);

/* "kivy/graphics/cgl.pxd":384
 * ctypedef GLboolean (__stdcall *GLISBUFFERPTR)(GLuint buffer) nogil
 * ctypedef GLboolean (__stdcall *GLISENABLEDPTR)(GLenum cap) nogil
 * ctypedef GLboolean (__stdcall *GLISFRAMEBUFFERPTR)(GLuint framebuffer) nogil             # <<<<<<<<<<<<<<
 * ctypedef GLboolean (__stdcall *GLISPROGRAMPTR)(GLuint program) nogil
 * ctypedef GLboolean (__stdcall *GLISRENDERBUFFERPTR)(GLuint renderbuffer) nogil
*/
typedef GLboolean (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLISFRAMEBUFFERPTR)(GLuint);

/* "kivy/graphics/cgl.pxd":385
 * ctypedef GLboolean (__stdcall *GLISENABLEDPTR)(GLenum cap) nogil
 * ctypedef GLboolean (__stdcall *GLISFRAMEBUFFERPTR)(GLuint framebuffer) nogil
 * ctypedef GLboolean (__stdcall *GLISPROGRAMPTR)(GLuint program) nogil             # <<<<<<<<<<<<<<
 * ctypedef GLboolean (__stdcall *GLISRENDERBUFFERPTR)(GLuint renderbuffer) nogil
 * ctypedef GLboolean (__stdcall *GLISSHADERPTR)(GLuint shader) nogil
*/
typedef GLboolean (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLISPROGRAMPTR)(GLuint);

/* "kivy/graphics/cgl.pxd":386
 * ctypedef GLboolean (__stdcall *GLISFRAMEBUFFERPTR)(GLuint framebuffer) nogil
 * ctypedef GLboolean (__stdcall *GLISPROGRAMPTR)(GLuint program) nogil
 * ctypedef GLboolean (__stdcall *GLISRENDERBUFFERPTR)(GLuint renderbuffer) nogil             # <<<<<<<<<<<<<<
 * ctypedef GLboolean (__stdcall *GLISSHADERPTR)(GLuint shader) nogil
 * ctypedef GLboolean (__stdcall *GLISTEXTUREPTR)(GLuint texture) nogil
*/
typedef GLboolean (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLISRENDERBUFFERPTR)(GLuint);

/* "kivy/graphics/cgl.pxd":387
 * ctypedef GLboolean (__stdcall *GLISPROGRAMPTR)(GLuint program) nogil
 * ctypedef GLboolean (__stdcall *GLISRENDERBUFFERPTR)(GLuint renderbuffer) nogil
 * ctypedef GLboolean (__stdcall *GLISSHADERPTR)(GLuint shader) nogil             # <<<<<<<<<<<<<<
 * ctypedef GLboolean (__stdcall *GLISTEXTUREPTR)(GLuint texture) nogil
 * ctypedef GLenum (__stdcall *GLCHECKFRAMEBUFFERSTATUSPTR)(GLenum) nogil
*/
typedef GLboolean (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLISSHADERPTR)(GLuint);

/* "kivy/graphics/cgl.pxd":388
 * ctypedef GLboolean (__stdcall *GLISRENDERBUFFERPTR)(GLuint renderbuffer) nogil
 * ctypedef GLboolean (__stdcall *GLISSHADERPTR)(GLuint shader) nogil
 * ctypedef GLboolean (__stdcall *GLISTEXTUREPTR)(GLuint texture) nogil             # <<<<<<<<<<<<<<
 * ctypedef GLenum (__stdcall *GLCHECKFRAMEBUFFERSTATUSPTR)(GLenum) nogil
 * ctypedef GLenum (__stdcall *GLGETERRORPTR)() nogil
*/
typedef GLboolean (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLISTEXTUREPTR)(GLuint);

/* "kivy/graphics/cgl.pxd":389
 * ctypedef GLboolean (__stdcall *GLISSHADERPTR)(GLuint shader) nogil
 * ctypedef GLboolean (__stdcall *GLISTEXTUREPTR)(GLuint texture) nogil
 * ctypedef GLenum (__stdcall *GLCHECKFRAMEBUFFERSTATUSPTR)(GLenum) nogil             # <<<<<<<<<<<<<<
 * ctypedef GLenum (__stdcall *GLGETERRORPTR)() nogil
 * ctypedef GLint (__stdcall *GLGETATTRIBLOCATIONPTR)(GLuint, const GLchar *) nogil
*/
typedef GLenum (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLCHECKFRAMEBUFFERSTATUSPTR)(GLenum);

/* "kivy/graphics/cgl.pxd":390
 * ctypedef GLboolean (__stdcall *GLISTEXTUREPTR)(GLuint texture) nogil
 * ctypedef GLenum (__stdcall *GLCHECKFRAMEBUFFERSTATUSPTR)(GLenum) nogil
 * ctypedef GLenum (__stdcall *GLGETERRORPTR)() nogil             # <<<<<<<<<<<<<<
 * ctypedef GLint (__stdcall *GLGETATTRIBLOCATIONPTR)(GLuint, const GLchar *) nogil
 * ctypedef GLint (__stdcall *GLGETUNIFORMLOCATIONPTR)(GLuint, const char *) nogil
*/
typedef GLenum (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETERRORPTR)(void);

/* "kivy/graphics/cgl.pxd":391
 * ctypedef GLenum (__stdcall *GLCHECKFRAMEBUFFERSTATUSPTR)(GLenum) nogil
 * ctypedef GLenum (__stdcall *GLGETERRORPTR)() nogil
 * ctypedef GLint (__stdcall *GLGETATTRIBLOCATIONPTR)(GLuint, const GLchar *) nogil             # <<<<<<<<<<<<<<
 * ctypedef GLint (__stdcall *GLGETUNIFORMLOCATIONPTR)(GLuint, const char *) nogil
 * ctypedef GLuint (__stdcall *GLCREATEPROGRAMPTR)() nogil
*/
typedef GLint (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETATTRIBLOCATIONPTR)(GLuint, GLchar const *);

/* "kivy/graphics/cgl.pxd":392
 * ctypedef GLenum (__stdcall *GLGETERRORPTR)() nogil
 * ctypedef GLint (__stdcall *GLGETATTRIBLOCATIONPTR)(GLuint, const GLchar *) nogil
 * ctypedef GLint (__stdcall *GLGETUNIFORMLOCATIONPTR)(GLuint, const char *) nogil             # <<<<<<<<<<<<<<
 * ctypedef GLuint (__stdcall *GLCREATEPROGRAMPTR)() nogil
 * ctypedef GLuint (__stdcall *GLCREATESHADERPTR)(GLenum) nogil
*/
typedef GLint (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETUNIFORMLOCATIONPTR)(GLuint, char const *);

/* "kivy/graphics/cgl.pxd":393
 * ctypedef GLint (__stdcall *GLGETATTRIBLOCATIONPTR)(GLuint, const GLchar *) nogil
 * ctypedef GLint (__stdcall *GLGETUNIFORMLOCATIONPTR)(GLuint, const char *) nogil
 * ctypedef GLuint (__stdcall *GLCREATEPROGRAMPTR)() nogil             # <<<<<<<<<<<<<<
 * ctypedef GLuint (__stdcall *GLCREATESHADERPTR)(GLenum) nogil
 * ctypedef void (__stdcall *GLACTIVETEXTUREPTR)(GLenum) nogil
*/
typedef GLuint (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLCREATEPROGRAMPTR)(void);

/* "kivy/graphics/cgl.pxd":394
 * ctypedef GLint (__stdcall *GLGETUNIFORMLOCATIONPTR)(GLuint, const char *) nogil
 * ctypedef GLuint (__stdcall *GLCREATEPROGRAMPTR)() nogil
 * ctypedef GLuint (__stdcall *GLCREATESHADERPTR)(GLenum) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLACTIVETEXTUREPTR)(GLenum) nogil
 * ctypedef void (__stdcall *GLATTACHSHADERPTR)(GLuint, GLuint) nogil
*/
typedef GLuint (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLCREATESHADERPTR)(GLenum);

/* "kivy/graphics/cgl.pxd":395
 * ctypedef GLuint (__stdcall *GLCREATEPROGRAMPTR)() nogil
 * ctypedef GLuint (__stdcall *GLCREATESHADERPTR)(GLenum) nogil
 * ctypedef void (__stdcall *GLACTIVETEXTUREPTR)(GLenum) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLATTACHSHADERPTR)(GLuint, GLuint) nogil
 * ctypedef void (__stdcall *GLBINDATTRIBLOCATIONPTR)(GLuint, GLuint, const char *) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLACTIVETEXTUREPTR)(GLenum);

/* "kivy/graphics/cgl.pxd":396
 * ctypedef GLuint (__stdcall *GLCREATESHADERPTR)(GLenum) nogil
 * ctypedef void (__stdcall *GLACTIVETEXTUREPTR)(GLenum) nogil
 * ctypedef void (__stdcall *GLATTACHSHADERPTR)(GLuint, GLuint) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLBINDATTRIBLOCATIONPTR)(GLuint, GLuint, const char *) nogil
 * ctypedef void (__stdcall *GLBINDBUFFERPTR)(GLenum, GLuint) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLATTACHSHADERPTR)(GLuint, GLuint);

/* "kivy/graphics/cgl.pxd":397
 * ctypedef void (__stdcall *GLACTIVETEXTUREPTR)(GLenum) nogil
 * ctypedef void (__stdcall *GLATTACHSHADERPTR)(GLuint, GLuint) nogil
 * ctypedef void (__stdcall *GLBINDATTRIBLOCATIONPTR)(GLuint, GLuint, const char *) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLBINDBUFFERPTR)(GLenum, GLuint) nogil
 * ctypedef void (__stdcall *GLBINDFRAMEBUFFERPTR)(GLenum, GLuint) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLBINDATTRIBLOCATIONPTR)(GLuint, GLuint, char const *);

/* "kivy/graphics/cgl.pxd":398
 * ctypedef void (__stdcall *GLATTACHSHADERPTR)(GLuint, GLuint) nogil
 * ctypedef void (__stdcall *GLBINDATTRIBLOCATIONPTR)(GLuint, GLuint, const char *) nogil
 * ctypedef void (__stdcall *GLBINDBUFFERPTR)(GLenum, GLuint) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLBINDFRAMEBUFFERPTR)(GLenum, GLuint) nogil
 * ctypedef void (__stdcall *GLBINDRENDERBUFFERPTR)(GLenum target, GLuint renderbuffer) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLBINDBUFFERPTR)(GLenum, GLuint);

/* "kivy/graphics/cgl.pxd":399
 * ctypedef void (__stdcall *GLBINDATTRIBLOCATIONPTR)(GLuint, GLuint, const char *) nogil
 * ctypedef void (__stdcall *GLBINDBUFFERPTR)(GLenum, GLuint) nogil
 * ctypedef void (__stdcall *GLBINDFRAMEBUFFERPTR)(GLenum, GLuint) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLBINDRENDERBUFFERPTR)(GLenum target, GLuint renderbuffer) nogil
 * ctypedef void (__stdcall *GLBINDTEXTUREPTR)(GLenum, GLuint) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLBINDFRAMEBUFFERPTR)(GLenum, GLuint);

/* "kivy/graphics/cgl.pxd":400
 * ctypedef void (__stdcall *GLBINDBUFFERPTR)(GLenum, GLuint) nogil
 * ctypedef void (__stdcall *GLBINDFRAMEBUFFERPTR)(GLenum, GLuint) nogil
 * ctypedef void (__stdcall *GLBINDRENDERBUFFERPTR)(GLenum target, GLuint renderbuffer) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLBINDTEXTUREPTR)(GLenum, GLuint) nogil
 * ctypedef void (__stdcall *GLBLENDCOLORPTR)(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLBINDRENDERBUFFERPTR)(GLenum, GLuint);

/* "kivy/graphics/cgl.pxd":401
 * ctypedef void (__stdcall *GLBINDFRAMEBUFFERPTR)(GLenum, GLuint) nogil
 * ctypedef void (__stdcall *GLBINDRENDERBUFFERPTR)(GLenum target, GLuint renderbuffer) nogil
 * ctypedef void (__stdcall *GLBINDTEXTUREPTR)(GLenum, GLuint) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLBLENDCOLORPTR)(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) nogil
 * ctypedef void (__stdcall *GLBLENDEQUATIONPTR)( GLenum mode ) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLBINDTEXTUREPTR)(GLenum, GLuint);

/* "kivy/graphics/cgl.pxd":402
 * ctypedef void (__stdcall *GLBINDRENDERBUFFERPTR)(GLenum target, GLuint renderbuffer) nogil
 * ctypedef void (__stdcall *GLBINDTEXTUREPTR)(GLenum, GLuint) nogil
 * ctypedef void (__stdcall *GLBLENDCOLORPTR)(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLBLENDEQUATIONPTR)( GLenum mode ) nogil
 * ctypedef void (__stdcall *GLBLENDEQUATIONSEPARATEPTR)(GLenum modeRGB, GLenum modeAlpha) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLBLENDCOLORPTR)(GLclampf, GLclampf, GLclampf, GLclampf);

/* "kivy/graphics/cgl.pxd":403
 * ctypedef void (__stdcall *GLBINDTEXTUREPTR)(GLenum, GLuint) nogil
 * ctypedef void (__stdcall *GLBLENDCOLORPTR)(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) nogil
 * ctypedef void (__stdcall *GLBLENDEQUATIONPTR)( GLenum mode ) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLBLENDEQUATIONSEPARATEPTR)(GLenum modeRGB, GLenum modeAlpha) nogil
 * ctypedef void (__stdcall *GLBLENDFUNCPTR)(GLenum sfactor, GLenum dfactor) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLBLENDEQUATIONPTR)(GLenum);

/* "kivy/graphics/cgl.pxd":404
 * ctypedef void (__stdcall *GLBLENDCOLORPTR)(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) nogil
 * ctypedef void (__stdcall *GLBLENDEQUATIONPTR)( GLenum mode ) nogil
 * ctypedef void (__stdcall *GLBLENDEQUATIONSEPARATEPTR)(GLenum modeRGB, GLenum modeAlpha) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLBLENDFUNCPTR)(GLenum sfactor, GLenum dfactor) nogil
 * ctypedef void (__stdcall *GLBLENDFUNCSEPARATEPTR)(GLenum, GLenum, GLenum, GLenum) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLBLENDEQUATIONSEPARATEPTR)(GLenum, GLenum);

/* "kivy/graphics/cgl.pxd":405
 * ctypedef void (__stdcall *GLBLENDEQUATIONPTR)( GLenum mode ) nogil
 * ctypedef void (__stdcall *GLBLENDEQUATIONSEPARATEPTR)(GLenum modeRGB, GLenum modeAlpha) nogil
 * ctypedef void (__stdcall *GLBLENDFUNCPTR)(GLenum sfactor, GLenum dfactor) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLBLENDFUNCSEPARATEPTR)(GLenum, GLenum, GLenum, GLenum) nogil
 * ctypedef void (__stdcall *GLBUFFERDATAPTR)(GLenum, GLsizeiptr, const GLvoid *, GLenum) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLBLENDFUNCPTR)(GLenum, GLenum);

/* "kivy/graphics/cgl.pxd":406
 * ctypedef void (__stdcall *GLBLENDEQUATIONSEPARATEPTR)(GLenum modeRGB, GLenum modeAlpha) nogil
 * ctypedef void (__stdcall *GLBLENDFUNCPTR)(GLenum sfactor, GLenum dfactor) nogil
 * ctypedef void (__stdcall *GLBLENDFUNCSEPARATEPTR)(GLenum, GLenum, GLenum, GLenum) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLBUFFERDATAPTR)(GLenum, GLsizeiptr, const GLvoid *, GLenum) nogil
 * ctypedef void (__stdcall *GLBUFFERSUBDATAPTR)(GLenum, GLintptr, GLsizeiptr, const GLvoid *) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLBLENDFUNCSEPARATEPTR)(GLenum, GLenum, GLenum, GLenum);

/* "kivy/graphics/cgl.pxd":407
 * ctypedef void (__stdcall *GLBLENDFUNCPTR)(GLenum sfactor, GLenum dfactor) nogil
 * ctypedef void (__stdcall *GLBLENDFUNCSEPARATEPTR)(GLenum, GLenum, GLenum, GLenum) nogil
 * ctypedef void (__stdcall *GLBUFFERDATAPTR)(GLenum, GLsizeiptr, const GLvoid *, GLenum) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLBUFFERSUBDATAPTR)(GLenum, GLintptr, GLsizeiptr, const GLvoid *) nogil
 * ctypedef void (__stdcall *GLCLEARCOLORPTR)(GLclampf, GLclampf, GLclampf, GLclampf) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLBUFFERDATAPTR)(GLenum, GLsizeiptr, GLvoid const *, GLenum);

/* "kivy/graphics/cgl.pxd":408
 * ctypedef void (__stdcall *GLBLENDFUNCSEPARATEPTR)(GLenum, GLenum, GLenum, GLenum) nogil
 * ctypedef void (__stdcall *GLBUFFERDATAPTR)(GLenum, GLsizeiptr, const GLvoid *, GLenum) nogil
 * ctypedef void (__stdcall *GLBUFFERSUBDATAPTR)(GLenum, GLintptr, GLsizeiptr, const GLvoid *) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLCLEARCOLORPTR)(GLclampf, GLclampf, GLclampf, GLclampf) nogil
 * ctypedef void (__stdcall *GLCLEARPTR)(GLbitfield) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLBUFFERSUBDATAPTR)(GLenum, GLintptr, GLsizeiptr, GLvoid const *);

/* "kivy/graphics/cgl.pxd":409
 * ctypedef void (__stdcall *GLBUFFERDATAPTR)(GLenum, GLsizeiptr, const GLvoid *, GLenum) nogil
 * ctypedef void (__stdcall *GLBUFFERSUBDATAPTR)(GLenum, GLintptr, GLsizeiptr, const GLvoid *) nogil
 * ctypedef void (__stdcall *GLCLEARCOLORPTR)(GLclampf, GLclampf, GLclampf, GLclampf) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLCLEARPTR)(GLbitfield) nogil
 * ctypedef void (__stdcall *GLCLEARSTENCILPTR)(GLint s) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLCLEARCOLORPTR)(GLclampf, GLclampf, GLclampf, GLclampf);

/* "kivy/graphics/cgl.pxd":410
 * ctypedef void (__stdcall *GLBUFFERSUBDATAPTR)(GLenum, GLintptr, GLsizeiptr, const GLvoid *) nogil
 * ctypedef void (__stdcall *GLCLEARCOLORPTR)(GLclampf, GLclampf, GLclampf, GLclampf) nogil
 * ctypedef void (__stdcall *GLCLEARPTR)(GLbitfield) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLCLEARSTENCILPTR)(GLint s) nogil
 * ctypedef void (__stdcall *GLCOLORMASKPTR)(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLCLEARPTR)(GLbitfield);

/* "kivy/graphics/cgl.pxd":411
 * ctypedef void (__stdcall *GLCLEARCOLORPTR)(GLclampf, GLclampf, GLclampf, GLclampf) nogil
 * ctypedef void (__stdcall *GLCLEARPTR)(GLbitfield) nogil
 * ctypedef void (__stdcall *GLCLEARSTENCILPTR)(GLint s) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLCOLORMASKPTR)(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) nogil
 * ctypedef void (__stdcall *GLCOMPILESHADERPTR)(GLuint) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLCLEARSTENCILPTR)(GLint);

/* "kivy/graphics/cgl.pxd":412
 * ctypedef void (__stdcall *GLCLEARPTR)(GLbitfield) nogil
 * ctypedef void (__stdcall *GLCLEARSTENCILPTR)(GLint s) nogil
 * ctypedef void (__stdcall *GLCOLORMASKPTR)(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLCOMPILESHADERPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLCOMPRESSEDTEXIMAGE2DPTR)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLCOLORMASKPTR)(GLboolean, GLboolean, GLboolean, GLboolean);

/* "kivy/graphics/cgl.pxd":413
 * ctypedef void (__stdcall *GLCLEARSTENCILPTR)(GLint s) nogil
 * ctypedef void (__stdcall *GLCOLORMASKPTR)(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) nogil
 * ctypedef void (__stdcall *GLCOMPILESHADERPTR)(GLuint) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLCOMPRESSEDTEXIMAGE2DPTR)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data) nogil
 * ctypedef void (__stdcall *GLCOMPRESSEDTEXSUBIMAGE2DPTR)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLCOMPILESHADERPTR)(GLuint);

/* "kivy/graphics/cgl.pxd":414
 * ctypedef void (__stdcall *GLCOLORMASKPTR)(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) nogil
 * ctypedef void (__stdcall *GLCOMPILESHADERPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLCOMPRESSEDTEXIMAGE2DPTR)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLCOMPRESSEDTEXSUBIMAGE2DPTR)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data) nogil
 * ctypedef void (__stdcall *GLCOPYTEXIMAGE2DPTR)(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLCOMPRESSEDTEXIMAGE2DPTR)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, GLvoid const *);

/* "kivy/graphics/cgl.pxd":415
 * ctypedef void (__stdcall *GLCOMPILESHADERPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLCOMPRESSEDTEXIMAGE2DPTR)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data) nogil
 * ctypedef void (__stdcall *GLCOMPRESSEDTEXSUBIMAGE2DPTR)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLCOPYTEXIMAGE2DPTR)(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) nogil
 * ctypedef void (__stdcall *GLCOPYTEXSUBIMAGE2DPTR)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLCOMPRESSEDTEXSUBIMAGE2DPTR)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, GLvoid const *);

/* "kivy/graphics/cgl.pxd":416
 * ctypedef void (__stdcall *GLCOMPRESSEDTEXIMAGE2DPTR)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data) nogil
 * ctypedef void (__stdcall *GLCOMPRESSEDTEXSUBIMAGE2DPTR)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data) nogil
 * ctypedef void (__stdcall *GLCOPYTEXIMAGE2DPTR)(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLCOPYTEXSUBIMAGE2DPTR)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) nogil
 * ctypedef void (__stdcall *GLCULLFACEPTR)(GLenum mode) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLCOPYTEXIMAGE2DPTR)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint);

/* "kivy/graphics/cgl.pxd":417
 * ctypedef void (__stdcall *GLCOMPRESSEDTEXSUBIMAGE2DPTR)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data) nogil
 * ctypedef void (__stdcall *GLCOPYTEXIMAGE2DPTR)(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) nogil
 * ctypedef void (__stdcall *GLCOPYTEXSUBIMAGE2DPTR)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLCULLFACEPTR)(GLenum mode) nogil
 * ctypedef void (__stdcall *GLDELETEBUFFERSPTR)(GLsizei n, const GLuint* buffers) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLCOPYTEXSUBIMAGE2DPTR)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei);

/* "kivy/graphics/cgl.pxd":418
 * ctypedef void (__stdcall *GLCOPYTEXIMAGE2DPTR)(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) nogil
 * ctypedef void (__stdcall *GLCOPYTEXSUBIMAGE2DPTR)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) nogil
 * ctypedef void (__stdcall *GLCULLFACEPTR)(GLenum mode) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLDELETEBUFFERSPTR)(GLsizei n, const GLuint* buffers) nogil
 * ctypedef void (__stdcall *GLDELETEFRAMEBUFFERSPTR)(GLsizei, const GLuint *) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLCULLFACEPTR)(GLenum);

/* "kivy/graphics/cgl.pxd":419
 * ctypedef void (__stdcall *GLCOPYTEXSUBIMAGE2DPTR)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) nogil
 * ctypedef void (__stdcall *GLCULLFACEPTR)(GLenum mode) nogil
 * ctypedef void (__stdcall *GLDELETEBUFFERSPTR)(GLsizei n, const GLuint* buffers) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLDELETEFRAMEBUFFERSPTR)(GLsizei, const GLuint *) nogil
 * ctypedef void (__stdcall *GLDELETEPROGRAMPTR)(GLuint) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLDELETEBUFFERSPTR)(GLsizei, GLuint const *);

/* "kivy/graphics/cgl.pxd":420
 * ctypedef void (__stdcall *GLCULLFACEPTR)(GLenum mode) nogil
 * ctypedef void (__stdcall *GLDELETEBUFFERSPTR)(GLsizei n, const GLuint* buffers) nogil
 * ctypedef void (__stdcall *GLDELETEFRAMEBUFFERSPTR)(GLsizei, const GLuint *) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLDELETEPROGRAMPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLDELETERENDERBUFFERSPTR)(GLsizei n, const GLuint* renderbuffers) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLDELETEFRAMEBUFFERSPTR)(GLsizei, GLuint const *);

/* "kivy/graphics/cgl.pxd":421
 * ctypedef void (__stdcall *GLDELETEBUFFERSPTR)(GLsizei n, const GLuint* buffers) nogil
 * ctypedef void (__stdcall *GLDELETEFRAMEBUFFERSPTR)(GLsizei, const GLuint *) nogil
 * ctypedef void (__stdcall *GLDELETEPROGRAMPTR)(GLuint) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLDELETERENDERBUFFERSPTR)(GLsizei n, const GLuint* renderbuffers) nogil
 * ctypedef void (__stdcall *GLDELETESHADERPTR)(GLuint) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLDELETEPROGRAMPTR)(GLuint);

/* "kivy/graphics/cgl.pxd":422
 * ctypedef void (__stdcall *GLDELETEFRAMEBUFFERSPTR)(GLsizei, const GLuint *) nogil
 * ctypedef void (__stdcall *GLDELETEPROGRAMPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLDELETERENDERBUFFERSPTR)(GLsizei n, const GLuint* renderbuffers) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLDELETESHADERPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLDELETETEXTURESPTR)(GLsizei, const GLuint *) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLDELETERENDERBUFFERSPTR)(GLsizei, GLuint const *);

/* "kivy/graphics/cgl.pxd":423
 * ctypedef void (__stdcall *GLDELETEPROGRAMPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLDELETERENDERBUFFERSPTR)(GLsizei n, const GLuint* renderbuffers) nogil
 * ctypedef void (__stdcall *GLDELETESHADERPTR)(GLuint) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLDELETETEXTURESPTR)(GLsizei, const GLuint *) nogil
 * ctypedef void (__stdcall *GLDEPTHFUNCPTR)(GLenum func) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLDELETESHADERPTR)(GLuint);

/* "kivy/graphics/cgl.pxd":424
 * ctypedef void (__stdcall *GLDELETERENDERBUFFERSPTR)(GLsizei n, const GLuint* renderbuffers) nogil
 * ctypedef void (__stdcall *GLDELETESHADERPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLDELETETEXTURESPTR)(GLsizei, const GLuint *) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLDEPTHFUNCPTR)(GLenum func) nogil
 * ctypedef void (__stdcall *GLDEPTHMASKPTR)(GLboolean flag) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLDELETETEXTURESPTR)(GLsizei, GLuint const *);

/* "kivy/graphics/cgl.pxd":425
 * ctypedef void (__stdcall *GLDELETESHADERPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLDELETETEXTURESPTR)(GLsizei, const GLuint *) nogil
 * ctypedef void (__stdcall *GLDEPTHFUNCPTR)(GLenum func) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLDEPTHMASKPTR)(GLboolean flag) nogil
 * ctypedef void (__stdcall *GLDETACHSHADERPTR)(GLuint program, GLuint shader) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLDEPTHFUNCPTR)(GLenum);

/* "kivy/graphics/cgl.pxd":426
 * ctypedef void (__stdcall *GLDELETETEXTURESPTR)(GLsizei, const GLuint *) nogil
 * ctypedef void (__stdcall *GLDEPTHFUNCPTR)(GLenum func) nogil
 * ctypedef void (__stdcall *GLDEPTHMASKPTR)(GLboolean flag) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLDETACHSHADERPTR)(GLuint program, GLuint shader) nogil
 * ctypedef void (__stdcall *GLDISABLEPTR)(GLenum) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLDEPTHMASKPTR)(GLboolean);

/* "kivy/graphics/cgl.pxd":427
 * ctypedef void (__stdcall *GLDEPTHFUNCPTR)(GLenum func) nogil
 * ctypedef void (__stdcall *GLDEPTHMASKPTR)(GLboolean flag) nogil
 * ctypedef void (__stdcall *GLDETACHSHADERPTR)(GLuint program, GLuint shader) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLDISABLEPTR)(GLenum) nogil
 * ctypedef void (__stdcall *GLDISABLEVERTEXATTRIBARRAYPTR)(GLuint) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLDETACHSHADERPTR)(GLuint, GLuint);

/* "kivy/graphics/cgl.pxd":428
 * ctypedef void (__stdcall *GLDEPTHMASKPTR)(GLboolean flag) nogil
 * ctypedef void (__stdcall *GLDETACHSHADERPTR)(GLuint program, GLuint shader) nogil
 * ctypedef void (__stdcall *GLDISABLEPTR)(GLenum) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLDISABLEVERTEXATTRIBARRAYPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLDRAWARRAYSPTR)(GLenum, GLint, GLsizei) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLDISABLEPTR)(GLenum);

/* "kivy/graphics/cgl.pxd":429
 * ctypedef void (__stdcall *GLDETACHSHADERPTR)(GLuint program, GLuint shader) nogil
 * ctypedef void (__stdcall *GLDISABLEPTR)(GLenum) nogil
 * ctypedef void (__stdcall *GLDISABLEVERTEXATTRIBARRAYPTR)(GLuint) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLDRAWARRAYSPTR)(GLenum, GLint, GLsizei) nogil
 * ctypedef void (__stdcall *GLDRAWELEMENTSPTR)(GLenum mode, GLsizei count, GLenum type, const GLvoid* indices) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLDISABLEVERTEXATTRIBARRAYPTR)(GLuint);

/* "kivy/graphics/cgl.pxd":430
 * ctypedef void (__stdcall *GLDISABLEPTR)(GLenum) nogil
 * ctypedef void (__stdcall *GLDISABLEVERTEXATTRIBARRAYPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLDRAWARRAYSPTR)(GLenum, GLint, GLsizei) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLDRAWELEMENTSPTR)(GLenum mode, GLsizei count, GLenum type, const GLvoid* indices) nogil
 * ctypedef void (__stdcall *GLENABLEPTR)(GLenum) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLDRAWARRAYSPTR)(GLenum, GLint, GLsizei);

/* "kivy/graphics/cgl.pxd":431
 * ctypedef void (__stdcall *GLDISABLEVERTEXATTRIBARRAYPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLDRAWARRAYSPTR)(GLenum, GLint, GLsizei) nogil
 * ctypedef void (__stdcall *GLDRAWELEMENTSPTR)(GLenum mode, GLsizei count, GLenum type, const GLvoid* indices) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLENABLEPTR)(GLenum) nogil
 * ctypedef void (__stdcall *GLENABLEVERTEXATTRIBARRAYPTR)(GLuint) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLDRAWELEMENTSPTR)(GLenum, GLsizei, GLenum, GLvoid const *);

/* "kivy/graphics/cgl.pxd":432
 * ctypedef void (__stdcall *GLDRAWARRAYSPTR)(GLenum, GLint, GLsizei) nogil
 * ctypedef void (__stdcall *GLDRAWELEMENTSPTR)(GLenum mode, GLsizei count, GLenum type, const GLvoid* indices) nogil
 * ctypedef void (__stdcall *GLENABLEPTR)(GLenum) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLENABLEVERTEXATTRIBARRAYPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLFINISHPTR)() nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLENABLEPTR)(GLenum);

/* "kivy/graphics/cgl.pxd":433
 * ctypedef void (__stdcall *GLDRAWELEMENTSPTR)(GLenum mode, GLsizei count, GLenum type, const GLvoid* indices) nogil
 * ctypedef void (__stdcall *GLENABLEPTR)(GLenum) nogil
 * ctypedef void (__stdcall *GLENABLEVERTEXATTRIBARRAYPTR)(GLuint) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLFINISHPTR)() nogil
 * ctypedef void (__stdcall *GLFLUSHPTR)() nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLENABLEVERTEXATTRIBARRAYPTR)(GLuint);

/* "kivy/graphics/cgl.pxd":434
 * ctypedef void (__stdcall *GLENABLEPTR)(GLenum) nogil
 * ctypedef void (__stdcall *GLENABLEVERTEXATTRIBARRAYPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLFINISHPTR)() nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLFLUSHPTR)() nogil
 * ctypedef void (__stdcall *GLFRAMEBUFFERRENDERBUFFERPTR)(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLFINISHPTR)(void);

/* "kivy/graphics/cgl.pxd":435
 * ctypedef void (__stdcall *GLENABLEVERTEXATTRIBARRAYPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLFINISHPTR)() nogil
 * ctypedef void (__stdcall *GLFLUSHPTR)() nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLFRAMEBUFFERRENDERBUFFERPTR)(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) nogil
 * ctypedef void (__stdcall *GLFRAMEBUFFERTEXTURE2DPTR)(GLenum, GLenum, GLenum, GLuint, GLint) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLFLUSHPTR)(void);

/* "kivy/graphics/cgl.pxd":436
 * ctypedef void (__stdcall *GLFINISHPTR)() nogil
 * ctypedef void (__stdcall *GLFLUSHPTR)() nogil
 * ctypedef void (__stdcall *GLFRAMEBUFFERRENDERBUFFERPTR)(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLFRAMEBUFFERTEXTURE2DPTR)(GLenum, GLenum, GLenum, GLuint, GLint) nogil
 * ctypedef void (__stdcall *GLFRONTFACEPTR)(GLenum mode) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLFRAMEBUFFERRENDERBUFFERPTR)(GLenum, GLenum, GLenum, GLuint);

/* "kivy/graphics/cgl.pxd":437
 * ctypedef void (__stdcall *GLFLUSHPTR)() nogil
 * ctypedef void (__stdcall *GLFRAMEBUFFERRENDERBUFFERPTR)(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) nogil
 * ctypedef void (__stdcall *GLFRAMEBUFFERTEXTURE2DPTR)(GLenum, GLenum, GLenum, GLuint, GLint) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLFRONTFACEPTR)(GLenum mode) nogil
 * ctypedef void (__stdcall *GLGENBUFFERSPTR)(GLsizei, GLuint *) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLFRAMEBUFFERTEXTURE2DPTR)(GLenum, GLenum, GLenum, GLuint, GLint);

/* "kivy/graphics/cgl.pxd":438
 * ctypedef void (__stdcall *GLFRAMEBUFFERRENDERBUFFERPTR)(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) nogil
 * ctypedef void (__stdcall *GLFRAMEBUFFERTEXTURE2DPTR)(GLenum, GLenum, GLenum, GLuint, GLint) nogil
 * ctypedef void (__stdcall *GLFRONTFACEPTR)(GLenum mode) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGENBUFFERSPTR)(GLsizei, GLuint *) nogil
 * ctypedef void (__stdcall *GLGENERATEMIPMAPPTR)(GLenum target) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLFRONTFACEPTR)(GLenum);

/* "kivy/graphics/cgl.pxd":439
 * ctypedef void (__stdcall *GLFRAMEBUFFERTEXTURE2DPTR)(GLenum, GLenum, GLenum, GLuint, GLint) nogil
 * ctypedef void (__stdcall *GLFRONTFACEPTR)(GLenum mode) nogil
 * ctypedef void (__stdcall *GLGENBUFFERSPTR)(GLsizei, GLuint *) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGENERATEMIPMAPPTR)(GLenum target) nogil
 * ctypedef void (__stdcall *GLGENFRAMEBUFFERSPTR)(GLsizei, GLuint *) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGENBUFFERSPTR)(GLsizei, GLuint *);

/* "kivy/graphics/cgl.pxd":440
 * ctypedef void (__stdcall *GLFRONTFACEPTR)(GLenum mode) nogil
 * ctypedef void (__stdcall *GLGENBUFFERSPTR)(GLsizei, GLuint *) nogil
 * ctypedef void (__stdcall *GLGENERATEMIPMAPPTR)(GLenum target) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGENFRAMEBUFFERSPTR)(GLsizei, GLuint *) nogil
 * ctypedef void (__stdcall *GLGENRENDERBUFFERSPTR)(GLsizei n, GLuint* renderbuffers) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGENERATEMIPMAPPTR)(GLenum);

/* "kivy/graphics/cgl.pxd":441
 * ctypedef void (__stdcall *GLGENBUFFERSPTR)(GLsizei, GLuint *) nogil
 * ctypedef void (__stdcall *GLGENERATEMIPMAPPTR)(GLenum target) nogil
 * ctypedef void (__stdcall *GLGENFRAMEBUFFERSPTR)(GLsizei, GLuint *) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGENRENDERBUFFERSPTR)(GLsizei n, GLuint* renderbuffers) nogil
 * ctypedef void (__stdcall *GLGENTEXTURESPTR)(GLsizei, GLuint *) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGENFRAMEBUFFERSPTR)(GLsizei, GLuint *);

/* "kivy/graphics/cgl.pxd":442
 * ctypedef void (__stdcall *GLGENERATEMIPMAPPTR)(GLenum target) nogil
 * ctypedef void (__stdcall *GLGENFRAMEBUFFERSPTR)(GLsizei, GLuint *) nogil
 * ctypedef void (__stdcall *GLGENRENDERBUFFERSPTR)(GLsizei n, GLuint* renderbuffers) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGENTEXTURESPTR)(GLsizei, GLuint *) nogil
 * ctypedef void (__stdcall *GLGETACTIVEATTRIBPTR)(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGENRENDERBUFFERSPTR)(GLsizei, GLuint *);

/* "kivy/graphics/cgl.pxd":443
 * ctypedef void (__stdcall *GLGENFRAMEBUFFERSPTR)(GLsizei, GLuint *) nogil
 * ctypedef void (__stdcall *GLGENRENDERBUFFERSPTR)(GLsizei n, GLuint* renderbuffers) nogil
 * ctypedef void (__stdcall *GLGENTEXTURESPTR)(GLsizei, GLuint *) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETACTIVEATTRIBPTR)(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) nogil
 * ctypedef void (__stdcall *GLGETACTIVEUNIFORMPTR)(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGENTEXTURESPTR)(GLsizei, GLuint *);

/* "kivy/graphics/cgl.pxd":444
 * ctypedef void (__stdcall *GLGENRENDERBUFFERSPTR)(GLsizei n, GLuint* renderbuffers) nogil
 * ctypedef void (__stdcall *GLGENTEXTURESPTR)(GLsizei, GLuint *) nogil
 * ctypedef void (__stdcall *GLGETACTIVEATTRIBPTR)(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETACTIVEUNIFORMPTR)(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) nogil
 * ctypedef void (__stdcall *GLGETATTACHEDSHADERSPTR)(GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETACTIVEATTRIBPTR)(GLuint, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLchar *);

/* "kivy/graphics/cgl.pxd":445
 * ctypedef void (__stdcall *GLGENTEXTURESPTR)(GLsizei, GLuint *) nogil
 * ctypedef void (__stdcall *GLGETACTIVEATTRIBPTR)(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) nogil
 * ctypedef void (__stdcall *GLGETACTIVEUNIFORMPTR)(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETATTACHEDSHADERSPTR)(GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) nogil
 * ctypedef void (__stdcall *GLGETBOOLEANVPTR)(GLenum, GLboolean *) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETACTIVEUNIFORMPTR)(GLuint, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLchar *);

/* "kivy/graphics/cgl.pxd":446
 * ctypedef void (__stdcall *GLGETACTIVEATTRIBPTR)(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) nogil
 * ctypedef void (__stdcall *GLGETACTIVEUNIFORMPTR)(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) nogil
 * ctypedef void (__stdcall *GLGETATTACHEDSHADERSPTR)(GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETBOOLEANVPTR)(GLenum, GLboolean *) nogil
 * ctypedef void (__stdcall *GLGETBUFFERPARAMETERIVPTR)(GLenum target, GLenum pname, GLint* params) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETATTACHEDSHADERSPTR)(GLuint, GLsizei, GLsizei *, GLuint *);

/* "kivy/graphics/cgl.pxd":447
 * ctypedef void (__stdcall *GLGETACTIVEUNIFORMPTR)(GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) nogil
 * ctypedef void (__stdcall *GLGETATTACHEDSHADERSPTR)(GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) nogil
 * ctypedef void (__stdcall *GLGETBOOLEANVPTR)(GLenum, GLboolean *) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETBUFFERPARAMETERIVPTR)(GLenum target, GLenum pname, GLint* params) nogil
 * ctypedef void (__stdcall *GLGETFLOATVPTR)(GLenum pname, GLfloat* params) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETBOOLEANVPTR)(GLenum, GLboolean *);

/* "kivy/graphics/cgl.pxd":448
 * ctypedef void (__stdcall *GLGETATTACHEDSHADERSPTR)(GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) nogil
 * ctypedef void (__stdcall *GLGETBOOLEANVPTR)(GLenum, GLboolean *) nogil
 * ctypedef void (__stdcall *GLGETBUFFERPARAMETERIVPTR)(GLenum target, GLenum pname, GLint* params) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETFLOATVPTR)(GLenum pname, GLfloat* params) nogil
 * ctypedef void (__stdcall *GLGETFRAMEBUFFERATTACHMENTPARAMETERIVPTR)(GLenum target, GLenum attachment, GLenum pname, GLint* params) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETBUFFERPARAMETERIVPTR)(GLenum, GLenum, GLint *);

/* "kivy/graphics/cgl.pxd":449
 * ctypedef void (__stdcall *GLGETBOOLEANVPTR)(GLenum, GLboolean *) nogil
 * ctypedef void (__stdcall *GLGETBUFFERPARAMETERIVPTR)(GLenum target, GLenum pname, GLint* params) nogil
 * ctypedef void (__stdcall *GLGETFLOATVPTR)(GLenum pname, GLfloat* params) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETFRAMEBUFFERATTACHMENTPARAMETERIVPTR)(GLenum target, GLenum attachment, GLenum pname, GLint* params) nogil
 * ctypedef void (__stdcall *GLGETINTEGERVPTR)(GLenum, GLint *) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETFLOATVPTR)(GLenum, GLfloat *);

/* "kivy/graphics/cgl.pxd":450
 * ctypedef void (__stdcall *GLGETBUFFERPARAMETERIVPTR)(GLenum target, GLenum pname, GLint* params) nogil
 * ctypedef void (__stdcall *GLGETFLOATVPTR)(GLenum pname, GLfloat* params) nogil
 * ctypedef void (__stdcall *GLGETFRAMEBUFFERATTACHMENTPARAMETERIVPTR)(GLenum target, GLenum attachment, GLenum pname, GLint* params) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETINTEGERVPTR)(GLenum, GLint *) nogil
 * ctypedef void (__stdcall *GLGETPROGRAMINFOLOGPTR)(GLuint, GLsizei, GLsizei*, GLchar*) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETFRAMEBUFFERATTACHMENTPARAMETERIVPTR)(GLenum, GLenum, GLenum, GLint *);

/* "kivy/graphics/cgl.pxd":451
 * ctypedef void (__stdcall *GLGETFLOATVPTR)(GLenum pname, GLfloat* params) nogil
 * ctypedef void (__stdcall *GLGETFRAMEBUFFERATTACHMENTPARAMETERIVPTR)(GLenum target, GLenum attachment, GLenum pname, GLint* params) nogil
 * ctypedef void (__stdcall *GLGETINTEGERVPTR)(GLenum, GLint *) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETPROGRAMINFOLOGPTR)(GLuint, GLsizei, GLsizei*, GLchar*) nogil
 * ctypedef void (__stdcall *GLGETPROGRAMIVPTR)(GLuint, GLenum, GLint *) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETINTEGERVPTR)(GLenum, GLint *);

/* "kivy/graphics/cgl.pxd":452
 * ctypedef void (__stdcall *GLGETFRAMEBUFFERATTACHMENTPARAMETERIVPTR)(GLenum target, GLenum attachment, GLenum pname, GLint* params) nogil
 * ctypedef void (__stdcall *GLGETINTEGERVPTR)(GLenum, GLint *) nogil
 * ctypedef void (__stdcall *GLGETPROGRAMINFOLOGPTR)(GLuint, GLsizei, GLsizei*, GLchar*) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETPROGRAMIVPTR)(GLuint, GLenum, GLint *) nogil
 * ctypedef void (__stdcall *GLGETRENDERBUFFERPARAMETERIVPTR)(GLenum target, GLenum pname, GLint* params) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETPROGRAMINFOLOGPTR)(GLuint, GLsizei, GLsizei *, GLchar *);

/* "kivy/graphics/cgl.pxd":453
 * ctypedef void (__stdcall *GLGETINTEGERVPTR)(GLenum, GLint *) nogil
 * ctypedef void (__stdcall *GLGETPROGRAMINFOLOGPTR)(GLuint, GLsizei, GLsizei*, GLchar*) nogil
 * ctypedef void (__stdcall *GLGETPROGRAMIVPTR)(GLuint, GLenum, GLint *) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETRENDERBUFFERPARAMETERIVPTR)(GLenum target, GLenum pname, GLint* params) nogil
 * ctypedef void (__stdcall *GLGETSHADERINFOLOGPTR)(GLuint, GLsizei, GLsizei *, char *) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETPROGRAMIVPTR)(GLuint, GLenum, GLint *);

/* "kivy/graphics/cgl.pxd":454
 * ctypedef void (__stdcall *GLGETPROGRAMINFOLOGPTR)(GLuint, GLsizei, GLsizei*, GLchar*) nogil
 * ctypedef void (__stdcall *GLGETPROGRAMIVPTR)(GLuint, GLenum, GLint *) nogil
 * ctypedef void (__stdcall *GLGETRENDERBUFFERPARAMETERIVPTR)(GLenum target, GLenum pname, GLint* params) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETSHADERINFOLOGPTR)(GLuint, GLsizei, GLsizei *, char *) nogil
 * ctypedef void (__stdcall *GLGETSHADERIVPTR)(GLuint, GLenum, GLint *) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETRENDERBUFFERPARAMETERIVPTR)(GLenum, GLenum, GLint *);

/* "kivy/graphics/cgl.pxd":455
 * ctypedef void (__stdcall *GLGETPROGRAMIVPTR)(GLuint, GLenum, GLint *) nogil
 * ctypedef void (__stdcall *GLGETRENDERBUFFERPARAMETERIVPTR)(GLenum target, GLenum pname, GLint* params) nogil
 * ctypedef void (__stdcall *GLGETSHADERINFOLOGPTR)(GLuint, GLsizei, GLsizei *, char *) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETSHADERIVPTR)(GLuint, GLenum, GLint *) nogil
 * ctypedef void (__stdcall *GLGETSHADERSOURCEPTR)(GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETSHADERINFOLOGPTR)(GLuint, GLsizei, GLsizei *, char *);

/* "kivy/graphics/cgl.pxd":456
 * ctypedef void (__stdcall *GLGETRENDERBUFFERPARAMETERIVPTR)(GLenum target, GLenum pname, GLint* params) nogil
 * ctypedef void (__stdcall *GLGETSHADERINFOLOGPTR)(GLuint, GLsizei, GLsizei *, char *) nogil
 * ctypedef void (__stdcall *GLGETSHADERIVPTR)(GLuint, GLenum, GLint *) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETSHADERSOURCEPTR)(GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source) nogil
 * ctypedef void (__stdcall *GLGETTEXPARAMETERFVPTR)(GLenum target, GLenum pname, GLfloat* params) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETSHADERIVPTR)(GLuint, GLenum, GLint *);

/* "kivy/graphics/cgl.pxd":457
 * ctypedef void (__stdcall *GLGETSHADERINFOLOGPTR)(GLuint, GLsizei, GLsizei *, char *) nogil
 * ctypedef void (__stdcall *GLGETSHADERIVPTR)(GLuint, GLenum, GLint *) nogil
 * ctypedef void (__stdcall *GLGETSHADERSOURCEPTR)(GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETTEXPARAMETERFVPTR)(GLenum target, GLenum pname, GLfloat* params) nogil
 * ctypedef void (__stdcall *GLGETTEXPARAMETERIVPTR)(GLenum target, GLenum pname, GLint* params) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETSHADERSOURCEPTR)(GLuint, GLsizei, GLsizei *, GLchar *);

/* "kivy/graphics/cgl.pxd":458
 * ctypedef void (__stdcall *GLGETSHADERIVPTR)(GLuint, GLenum, GLint *) nogil
 * ctypedef void (__stdcall *GLGETSHADERSOURCEPTR)(GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source) nogil
 * ctypedef void (__stdcall *GLGETTEXPARAMETERFVPTR)(GLenum target, GLenum pname, GLfloat* params) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETTEXPARAMETERIVPTR)(GLenum target, GLenum pname, GLint* params) nogil
 * ctypedef void (__stdcall *GLGETUNIFORMFVPTR)(GLuint program, GLint location, GLfloat* params) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETTEXPARAMETERFVPTR)(GLenum, GLenum, GLfloat *);

/* "kivy/graphics/cgl.pxd":459
 * ctypedef void (__stdcall *GLGETSHADERSOURCEPTR)(GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source) nogil
 * ctypedef void (__stdcall *GLGETTEXPARAMETERFVPTR)(GLenum target, GLenum pname, GLfloat* params) nogil
 * ctypedef void (__stdcall *GLGETTEXPARAMETERIVPTR)(GLenum target, GLenum pname, GLint* params) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETUNIFORMFVPTR)(GLuint program, GLint location, GLfloat* params) nogil
 * ctypedef void (__stdcall *GLGETUNIFORMIVPTR)(GLuint program, GLint location, GLint* params) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETTEXPARAMETERIVPTR)(GLenum, GLenum, GLint *);

/* "kivy/graphics/cgl.pxd":460
 * ctypedef void (__stdcall *GLGETTEXPARAMETERFVPTR)(GLenum target, GLenum pname, GLfloat* params) nogil
 * ctypedef void (__stdcall *GLGETTEXPARAMETERIVPTR)(GLenum target, GLenum pname, GLint* params) nogil
 * ctypedef void (__stdcall *GLGETUNIFORMFVPTR)(GLuint program, GLint location, GLfloat* params) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETUNIFORMIVPTR)(GLuint program, GLint location, GLint* params) nogil
 * ctypedef void (__stdcall *GLGETVERTEXATTRIBFVPTR)(GLuint index, GLenum pname, GLfloat* params) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETUNIFORMFVPTR)(GLuint, GLint, GLfloat *);

/* "kivy/graphics/cgl.pxd":461
 * ctypedef void (__stdcall *GLGETTEXPARAMETERIVPTR)(GLenum target, GLenum pname, GLint* params) nogil
 * ctypedef void (__stdcall *GLGETUNIFORMFVPTR)(GLuint program, GLint location, GLfloat* params) nogil
 * ctypedef void (__stdcall *GLGETUNIFORMIVPTR)(GLuint program, GLint location, GLint* params) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETVERTEXATTRIBFVPTR)(GLuint index, GLenum pname, GLfloat* params) nogil
 * ctypedef void (__stdcall *GLGETVERTEXATTRIBIVPTR)(GLuint index, GLenum pname, GLint* params) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETUNIFORMIVPTR)(GLuint, GLint, GLint *);

/* "kivy/graphics/cgl.pxd":462
 * ctypedef void (__stdcall *GLGETUNIFORMFVPTR)(GLuint program, GLint location, GLfloat* params) nogil
 * ctypedef void (__stdcall *GLGETUNIFORMIVPTR)(GLuint program, GLint location, GLint* params) nogil
 * ctypedef void (__stdcall *GLGETVERTEXATTRIBFVPTR)(GLuint index, GLenum pname, GLfloat* params) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLGETVERTEXATTRIBIVPTR)(GLuint index, GLenum pname, GLint* params) nogil
 * ctypedef void (__stdcall *GLHINTPTR)(GLenum target, GLenum mode) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETVERTEXATTRIBFVPTR)(GLuint, GLenum, GLfloat *);

/* "kivy/graphics/cgl.pxd":463
 * ctypedef void (__stdcall *GLGETUNIFORMIVPTR)(GLuint program, GLint location, GLint* params) nogil
 * ctypedef void (__stdcall *GLGETVERTEXATTRIBFVPTR)(GLuint index, GLenum pname, GLfloat* params) nogil
 * ctypedef void (__stdcall *GLGETVERTEXATTRIBIVPTR)(GLuint index, GLenum pname, GLint* params) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLHINTPTR)(GLenum target, GLenum mode) nogil
 * ctypedef void (__stdcall *GLLINEWIDTHPTR)(GLfloat width) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLGETVERTEXATTRIBIVPTR)(GLuint, GLenum, GLint *);

/* "kivy/graphics/cgl.pxd":464
 * ctypedef void (__stdcall *GLGETVERTEXATTRIBFVPTR)(GLuint index, GLenum pname, GLfloat* params) nogil
 * ctypedef void (__stdcall *GLGETVERTEXATTRIBIVPTR)(GLuint index, GLenum pname, GLint* params) nogil
 * ctypedef void (__stdcall *GLHINTPTR)(GLenum target, GLenum mode) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLLINEWIDTHPTR)(GLfloat width) nogil
 * ctypedef void (__stdcall *GLLINKPROGRAMPTR)(GLuint) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLHINTPTR)(GLenum, GLenum);

/* "kivy/graphics/cgl.pxd":465
 * ctypedef void (__stdcall *GLGETVERTEXATTRIBIVPTR)(GLuint index, GLenum pname, GLint* params) nogil
 * ctypedef void (__stdcall *GLHINTPTR)(GLenum target, GLenum mode) nogil
 * ctypedef void (__stdcall *GLLINEWIDTHPTR)(GLfloat width) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLLINKPROGRAMPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLPIXELSTOREIPTR)(GLenum, GLint) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLLINEWIDTHPTR)(GLfloat);

/* "kivy/graphics/cgl.pxd":466
 * ctypedef void (__stdcall *GLHINTPTR)(GLenum target, GLenum mode) nogil
 * ctypedef void (__stdcall *GLLINEWIDTHPTR)(GLfloat width) nogil
 * ctypedef void (__stdcall *GLLINKPROGRAMPTR)(GLuint) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLPIXELSTOREIPTR)(GLenum, GLint) nogil
 * ctypedef void (__stdcall *GLPOLYGONOFFSETPTR)(GLfloat factor, GLfloat units) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLLINKPROGRAMPTR)(GLuint);

/* "kivy/graphics/cgl.pxd":467
 * ctypedef void (__stdcall *GLLINEWIDTHPTR)(GLfloat width) nogil
 * ctypedef void (__stdcall *GLLINKPROGRAMPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLPIXELSTOREIPTR)(GLenum, GLint) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLPOLYGONOFFSETPTR)(GLfloat factor, GLfloat units) nogil
 * ctypedef void (__stdcall *GLREADPIXELSPTR)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid*) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLPIXELSTOREIPTR)(GLenum, GLint);

/* "kivy/graphics/cgl.pxd":468
 * ctypedef void (__stdcall *GLLINKPROGRAMPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLPIXELSTOREIPTR)(GLenum, GLint) nogil
 * ctypedef void (__stdcall *GLPOLYGONOFFSETPTR)(GLfloat factor, GLfloat units) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLREADPIXELSPTR)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid*) nogil
 * ctypedef void (__stdcall *GLRENDERBUFFERSTORAGEPTR)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLPOLYGONOFFSETPTR)(GLfloat, GLfloat);

/* "kivy/graphics/cgl.pxd":469
 * ctypedef void (__stdcall *GLPIXELSTOREIPTR)(GLenum, GLint) nogil
 * ctypedef void (__stdcall *GLPOLYGONOFFSETPTR)(GLfloat factor, GLfloat units) nogil
 * ctypedef void (__stdcall *GLREADPIXELSPTR)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid*) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLRENDERBUFFERSTORAGEPTR)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height) nogil
 * ctypedef void (__stdcall *GLSAMPLECOVERAGEPTR)(GLclampf value, GLboolean invert) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLREADPIXELSPTR)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *);

/* "kivy/graphics/cgl.pxd":470
 * ctypedef void (__stdcall *GLPOLYGONOFFSETPTR)(GLfloat factor, GLfloat units) nogil
 * ctypedef void (__stdcall *GLREADPIXELSPTR)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid*) nogil
 * ctypedef void (__stdcall *GLRENDERBUFFERSTORAGEPTR)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLSAMPLECOVERAGEPTR)(GLclampf value, GLboolean invert) nogil
 * ctypedef void (__stdcall *GLSCISSORPTR)(GLint, GLint, GLsizei, GLsizei) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLRENDERBUFFERSTORAGEPTR)(GLenum, GLenum, GLsizei, GLsizei);

/* "kivy/graphics/cgl.pxd":471
 * ctypedef void (__stdcall *GLREADPIXELSPTR)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid*) nogil
 * ctypedef void (__stdcall *GLRENDERBUFFERSTORAGEPTR)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height) nogil
 * ctypedef void (__stdcall *GLSAMPLECOVERAGEPTR)(GLclampf value, GLboolean invert) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLSCISSORPTR)(GLint, GLint, GLsizei, GLsizei) nogil
 * ctypedef void (__stdcall *GLSHADERBINARYPTR)(GLsizei, const GLuint *, GLenum, const void *, GLsizei) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLSAMPLECOVERAGEPTR)(GLclampf, GLboolean);

/* "kivy/graphics/cgl.pxd":472
 * ctypedef void (__stdcall *GLRENDERBUFFERSTORAGEPTR)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height) nogil
 * ctypedef void (__stdcall *GLSAMPLECOVERAGEPTR)(GLclampf value, GLboolean invert) nogil
 * ctypedef void (__stdcall *GLSCISSORPTR)(GLint, GLint, GLsizei, GLsizei) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLSHADERBINARYPTR)(GLsizei, const GLuint *, GLenum, const void *, GLsizei) nogil
 * ctypedef void (__stdcall *GLSHADERSOURCEPTR)(GLuint, GLsizei, const GLchar* const *, const GLint *) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLSCISSORPTR)(GLint, GLint, GLsizei, GLsizei);

/* "kivy/graphics/cgl.pxd":473
 * ctypedef void (__stdcall *GLSAMPLECOVERAGEPTR)(GLclampf value, GLboolean invert) nogil
 * ctypedef void (__stdcall *GLSCISSORPTR)(GLint, GLint, GLsizei, GLsizei) nogil
 * ctypedef void (__stdcall *GLSHADERBINARYPTR)(GLsizei, const GLuint *, GLenum, const void *, GLsizei) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLSHADERSOURCEPTR)(GLuint, GLsizei, const GLchar* const *, const GLint *) nogil
 * ctypedef void (__stdcall *GLSTENCILFUNCPTR)(GLenum func, GLint ref, GLuint mask) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLSHADERBINARYPTR)(GLsizei, GLuint const *, GLenum, void const *, GLsizei);

/* "kivy/graphics/cgl.pxd":474
 * ctypedef void (__stdcall *GLSCISSORPTR)(GLint, GLint, GLsizei, GLsizei) nogil
 * ctypedef void (__stdcall *GLSHADERBINARYPTR)(GLsizei, const GLuint *, GLenum, const void *, GLsizei) nogil
 * ctypedef void (__stdcall *GLSHADERSOURCEPTR)(GLuint, GLsizei, const GLchar* const *, const GLint *) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLSTENCILFUNCPTR)(GLenum func, GLint ref, GLuint mask) nogil
 * ctypedef void (__stdcall *GLSTENCILFUNCSEPARATEPTR)(GLenum face, GLenum func, GLint ref, GLuint mask) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLSHADERSOURCEPTR)(GLuint, GLsizei, GLchar const *const *, GLint const *);

/* "kivy/graphics/cgl.pxd":475
 * ctypedef void (__stdcall *GLSHADERBINARYPTR)(GLsizei, const GLuint *, GLenum, const void *, GLsizei) nogil
 * ctypedef void (__stdcall *GLSHADERSOURCEPTR)(GLuint, GLsizei, const GLchar* const *, const GLint *) nogil
 * ctypedef void (__stdcall *GLSTENCILFUNCPTR)(GLenum func, GLint ref, GLuint mask) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLSTENCILFUNCSEPARATEPTR)(GLenum face, GLenum func, GLint ref, GLuint mask) nogil
 * ctypedef void (__stdcall *GLSTENCILMASKPTR)(GLuint mask) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLSTENCILFUNCPTR)(GLenum, GLint, GLuint);

/* "kivy/graphics/cgl.pxd":476
 * ctypedef void (__stdcall *GLSHADERSOURCEPTR)(GLuint, GLsizei, const GLchar* const *, const GLint *) nogil
 * ctypedef void (__stdcall *GLSTENCILFUNCPTR)(GLenum func, GLint ref, GLuint mask) nogil
 * ctypedef void (__stdcall *GLSTENCILFUNCSEPARATEPTR)(GLenum face, GLenum func, GLint ref, GLuint mask) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLSTENCILMASKPTR)(GLuint mask) nogil
 * ctypedef void (__stdcall *GLSTENCILMASKSEPARATEPTR)(GLenum face, GLuint mask) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLSTENCILFUNCSEPARATEPTR)(GLenum, GLenum, GLint, GLuint);

/* "kivy/graphics/cgl.pxd":477
 * ctypedef void (__stdcall *GLSTENCILFUNCPTR)(GLenum func, GLint ref, GLuint mask) nogil
 * ctypedef void (__stdcall *GLSTENCILFUNCSEPARATEPTR)(GLenum face, GLenum func, GLint ref, GLuint mask) nogil
 * ctypedef void (__stdcall *GLSTENCILMASKPTR)(GLuint mask) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLSTENCILMASKSEPARATEPTR)(GLenum face, GLuint mask) nogil
 * ctypedef void (__stdcall *GLSTENCILOPPTR)(GLenum fail, GLenum zfail, GLenum zpass) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLSTENCILMASKPTR)(GLuint);

/* "kivy/graphics/cgl.pxd":478
 * ctypedef void (__stdcall *GLSTENCILFUNCSEPARATEPTR)(GLenum face, GLenum func, GLint ref, GLuint mask) nogil
 * ctypedef void (__stdcall *GLSTENCILMASKPTR)(GLuint mask) nogil
 * ctypedef void (__stdcall *GLSTENCILMASKSEPARATEPTR)(GLenum face, GLuint mask) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLSTENCILOPPTR)(GLenum fail, GLenum zfail, GLenum zpass) nogil
 * ctypedef void (__stdcall *GLSTENCILOPSEPARATEPTR)(GLenum face, GLenum fail, GLenum zfail, GLenum zpass) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLSTENCILMASKSEPARATEPTR)(GLenum, GLuint);

/* "kivy/graphics/cgl.pxd":479
 * ctypedef void (__stdcall *GLSTENCILMASKPTR)(GLuint mask) nogil
 * ctypedef void (__stdcall *GLSTENCILMASKSEPARATEPTR)(GLenum face, GLuint mask) nogil
 * ctypedef void (__stdcall *GLSTENCILOPPTR)(GLenum fail, GLenum zfail, GLenum zpass) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLSTENCILOPSEPARATEPTR)(GLenum face, GLenum fail, GLenum zfail, GLenum zpass) nogil
 * ctypedef void (__stdcall *GLTEXIMAGE2DPTR)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const void *) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLSTENCILOPPTR)(GLenum, GLenum, GLenum);

/* "kivy/graphics/cgl.pxd":480
 * ctypedef void (__stdcall *GLSTENCILMASKSEPARATEPTR)(GLenum face, GLuint mask) nogil
 * ctypedef void (__stdcall *GLSTENCILOPPTR)(GLenum fail, GLenum zfail, GLenum zpass) nogil
 * ctypedef void (__stdcall *GLSTENCILOPSEPARATEPTR)(GLenum face, GLenum fail, GLenum zfail, GLenum zpass) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLTEXIMAGE2DPTR)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const void *) nogil
 * ctypedef void (__stdcall *GLTEXPARAMETERFPTR)(GLenum target, GLenum pname, GLfloat param) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLSTENCILOPSEPARATEPTR)(GLenum, GLenum, GLenum, GLenum);

/* "kivy/graphics/cgl.pxd":481
 * ctypedef void (__stdcall *GLSTENCILOPPTR)(GLenum fail, GLenum zfail, GLenum zpass) nogil
 * ctypedef void (__stdcall *GLSTENCILOPSEPARATEPTR)(GLenum face, GLenum fail, GLenum zfail, GLenum zpass) nogil
 * ctypedef void (__stdcall *GLTEXIMAGE2DPTR)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const void *) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLTEXPARAMETERFPTR)(GLenum target, GLenum pname, GLfloat param) nogil
 * ctypedef void (__stdcall *GLTEXPARAMETERIPTR)(GLenum, GLenum, GLint) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLTEXIMAGE2DPTR)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, void const *);

/* "kivy/graphics/cgl.pxd":482
 * ctypedef void (__stdcall *GLSTENCILOPSEPARATEPTR)(GLenum face, GLenum fail, GLenum zfail, GLenum zpass) nogil
 * ctypedef void (__stdcall *GLTEXIMAGE2DPTR)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const void *) nogil
 * ctypedef void (__stdcall *GLTEXPARAMETERFPTR)(GLenum target, GLenum pname, GLfloat param) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLTEXPARAMETERIPTR)(GLenum, GLenum, GLint) nogil
 * ctypedef void (__stdcall *GLTEXSUBIMAGE2DPTR)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLTEXPARAMETERFPTR)(GLenum, GLenum, GLfloat);

/* "kivy/graphics/cgl.pxd":483
 * ctypedef void (__stdcall *GLTEXIMAGE2DPTR)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const void *) nogil
 * ctypedef void (__stdcall *GLTEXPARAMETERFPTR)(GLenum target, GLenum pname, GLfloat param) nogil
 * ctypedef void (__stdcall *GLTEXPARAMETERIPTR)(GLenum, GLenum, GLint) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLTEXSUBIMAGE2DPTR)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) nogil
 * ctypedef void (__stdcall *GLUNIFORM1FPTR)(GLint location, GLfloat x) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLTEXPARAMETERIPTR)(GLenum, GLenum, GLint);

/* "kivy/graphics/cgl.pxd":484
 * ctypedef void (__stdcall *GLTEXPARAMETERFPTR)(GLenum target, GLenum pname, GLfloat param) nogil
 * ctypedef void (__stdcall *GLTEXPARAMETERIPTR)(GLenum, GLenum, GLint) nogil
 * ctypedef void (__stdcall *GLTEXSUBIMAGE2DPTR)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLUNIFORM1FPTR)(GLint location, GLfloat x) nogil
 * ctypedef void (__stdcall *GLUNIFORM1FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLTEXSUBIMAGE2DPTR)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid const *);

/* "kivy/graphics/cgl.pxd":485
 * ctypedef void (__stdcall *GLTEXPARAMETERIPTR)(GLenum, GLenum, GLint) nogil
 * ctypedef void (__stdcall *GLTEXSUBIMAGE2DPTR)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) nogil
 * ctypedef void (__stdcall *GLUNIFORM1FPTR)(GLint location, GLfloat x) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLUNIFORM1FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM1IPTR)(GLint, GLint) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLUNIFORM1FPTR)(GLint, GLfloat);

/* "kivy/graphics/cgl.pxd":486
 * ctypedef void (__stdcall *GLTEXSUBIMAGE2DPTR)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *) nogil
 * ctypedef void (__stdcall *GLUNIFORM1FPTR)(GLint location, GLfloat x) nogil
 * ctypedef void (__stdcall *GLUNIFORM1FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLUNIFORM1IPTR)(GLint, GLint) nogil
 * ctypedef void (__stdcall *GLUNIFORM1IVPTR)(GLint location, GLsizei count, const GLint* v) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLUNIFORM1FVPTR)(GLint, GLsizei, GLfloat const *);

/* "kivy/graphics/cgl.pxd":487
 * ctypedef void (__stdcall *GLUNIFORM1FPTR)(GLint location, GLfloat x) nogil
 * ctypedef void (__stdcall *GLUNIFORM1FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM1IPTR)(GLint, GLint) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLUNIFORM1IVPTR)(GLint location, GLsizei count, const GLint* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM2FPTR)(GLint location, GLfloat x, GLfloat y) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLUNIFORM1IPTR)(GLint, GLint);

/* "kivy/graphics/cgl.pxd":488
 * ctypedef void (__stdcall *GLUNIFORM1FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM1IPTR)(GLint, GLint) nogil
 * ctypedef void (__stdcall *GLUNIFORM1IVPTR)(GLint location, GLsizei count, const GLint* v) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLUNIFORM2FPTR)(GLint location, GLfloat x, GLfloat y) nogil
 * ctypedef void (__stdcall *GLUNIFORM2FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLUNIFORM1IVPTR)(GLint, GLsizei, GLint const *);

/* "kivy/graphics/cgl.pxd":489
 * ctypedef void (__stdcall *GLUNIFORM1IPTR)(GLint, GLint) nogil
 * ctypedef void (__stdcall *GLUNIFORM1IVPTR)(GLint location, GLsizei count, const GLint* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM2FPTR)(GLint location, GLfloat x, GLfloat y) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLUNIFORM2FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM2IPTR)(GLint location, GLint x, GLint y) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLUNIFORM2FPTR)(GLint, GLfloat, GLfloat);

/* "kivy/graphics/cgl.pxd":490
 * ctypedef void (__stdcall *GLUNIFORM1IVPTR)(GLint location, GLsizei count, const GLint* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM2FPTR)(GLint location, GLfloat x, GLfloat y) nogil
 * ctypedef void (__stdcall *GLUNIFORM2FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLUNIFORM2IPTR)(GLint location, GLint x, GLint y) nogil
 * ctypedef void (__stdcall *GLUNIFORM2IVPTR)(GLint location, GLsizei count, const GLint* v) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLUNIFORM2FVPTR)(GLint, GLsizei, GLfloat const *);

/* "kivy/graphics/cgl.pxd":491
 * ctypedef void (__stdcall *GLUNIFORM2FPTR)(GLint location, GLfloat x, GLfloat y) nogil
 * ctypedef void (__stdcall *GLUNIFORM2FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM2IPTR)(GLint location, GLint x, GLint y) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLUNIFORM2IVPTR)(GLint location, GLsizei count, const GLint* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM3FPTR)(GLint location, GLfloat x, GLfloat y, GLfloat z) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLUNIFORM2IPTR)(GLint, GLint, GLint);

/* "kivy/graphics/cgl.pxd":492
 * ctypedef void (__stdcall *GLUNIFORM2FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM2IPTR)(GLint location, GLint x, GLint y) nogil
 * ctypedef void (__stdcall *GLUNIFORM2IVPTR)(GLint location, GLsizei count, const GLint* v) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLUNIFORM3FPTR)(GLint location, GLfloat x, GLfloat y, GLfloat z) nogil
 * ctypedef void (__stdcall *GLUNIFORM3FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLUNIFORM2IVPTR)(GLint, GLsizei, GLint const *);

/* "kivy/graphics/cgl.pxd":493
 * ctypedef void (__stdcall *GLUNIFORM2IPTR)(GLint location, GLint x, GLint y) nogil
 * ctypedef void (__stdcall *GLUNIFORM2IVPTR)(GLint location, GLsizei count, const GLint* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM3FPTR)(GLint location, GLfloat x, GLfloat y, GLfloat z) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLUNIFORM3FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM3IPTR)(GLint location, GLint x, GLint y, GLint z) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLUNIFORM3FPTR)(GLint, GLfloat, GLfloat, GLfloat);

/* "kivy/graphics/cgl.pxd":494
 * ctypedef void (__stdcall *GLUNIFORM2IVPTR)(GLint location, GLsizei count, const GLint* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM3FPTR)(GLint location, GLfloat x, GLfloat y, GLfloat z) nogil
 * ctypedef void (__stdcall *GLUNIFORM3FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLUNIFORM3IPTR)(GLint location, GLint x, GLint y, GLint z) nogil
 * ctypedef void (__stdcall *GLUNIFORM3IVPTR)(GLint location, GLsizei count, const GLint* v) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLUNIFORM3FVPTR)(GLint, GLsizei, GLfloat const *);

/* "kivy/graphics/cgl.pxd":495
 * ctypedef void (__stdcall *GLUNIFORM3FPTR)(GLint location, GLfloat x, GLfloat y, GLfloat z) nogil
 * ctypedef void (__stdcall *GLUNIFORM3FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM3IPTR)(GLint location, GLint x, GLint y, GLint z) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLUNIFORM3IVPTR)(GLint location, GLsizei count, const GLint* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM4FPTR)(GLint, GLfloat, GLfloat, GLfloat, GLfloat) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLUNIFORM3IPTR)(GLint, GLint, GLint, GLint);

/* "kivy/graphics/cgl.pxd":496
 * ctypedef void (__stdcall *GLUNIFORM3FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM3IPTR)(GLint location, GLint x, GLint y, GLint z) nogil
 * ctypedef void (__stdcall *GLUNIFORM3IVPTR)(GLint location, GLsizei count, const GLint* v) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLUNIFORM4FPTR)(GLint, GLfloat, GLfloat, GLfloat, GLfloat) nogil
 * ctypedef void (__stdcall *GLUNIFORM4FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLUNIFORM3IVPTR)(GLint, GLsizei, GLint const *);

/* "kivy/graphics/cgl.pxd":497
 * ctypedef void (__stdcall *GLUNIFORM3IPTR)(GLint location, GLint x, GLint y, GLint z) nogil
 * ctypedef void (__stdcall *GLUNIFORM3IVPTR)(GLint location, GLsizei count, const GLint* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM4FPTR)(GLint, GLfloat, GLfloat, GLfloat, GLfloat) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLUNIFORM4FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM4IPTR)(GLint location, GLint x, GLint y, GLint z, GLint w) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLUNIFORM4FPTR)(GLint, GLfloat, GLfloat, GLfloat, GLfloat);

/* "kivy/graphics/cgl.pxd":498
 * ctypedef void (__stdcall *GLUNIFORM3IVPTR)(GLint location, GLsizei count, const GLint* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM4FPTR)(GLint, GLfloat, GLfloat, GLfloat, GLfloat) nogil
 * ctypedef void (__stdcall *GLUNIFORM4FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLUNIFORM4IPTR)(GLint location, GLint x, GLint y, GLint z, GLint w) nogil
 * ctypedef void (__stdcall *GLUNIFORM4IVPTR)(GLint location, GLsizei count, const GLint* v) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLUNIFORM4FVPTR)(GLint, GLsizei, GLfloat const *);

/* "kivy/graphics/cgl.pxd":499
 * ctypedef void (__stdcall *GLUNIFORM4FPTR)(GLint, GLfloat, GLfloat, GLfloat, GLfloat) nogil
 * ctypedef void (__stdcall *GLUNIFORM4FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM4IPTR)(GLint location, GLint x, GLint y, GLint z, GLint w) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLUNIFORM4IVPTR)(GLint location, GLsizei count, const GLint* v) nogil
 * ctypedef void (__stdcall *GLUNIFORMMATRIX4FVPTR)(GLint, GLsizei, GLboolean, const GLfloat *) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLUNIFORM4IPTR)(GLint, GLint, GLint, GLint, GLint);

/* "kivy/graphics/cgl.pxd":500
 * ctypedef void (__stdcall *GLUNIFORM4FVPTR)(GLint location, GLsizei count, const GLfloat* v) nogil
 * ctypedef void (__stdcall *GLUNIFORM4IPTR)(GLint location, GLint x, GLint y, GLint z, GLint w) nogil
 * ctypedef void (__stdcall *GLUNIFORM4IVPTR)(GLint location, GLsizei count, const GLint* v) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLUNIFORMMATRIX4FVPTR)(GLint, GLsizei, GLboolean, const GLfloat *) nogil
 * ctypedef void (__stdcall *GLUSEPROGRAMPTR)(GLuint) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLUNIFORM4IVPTR)(GLint, GLsizei, GLint const *);

/* "kivy/graphics/cgl.pxd":501
 * ctypedef void (__stdcall *GLUNIFORM4IPTR)(GLint location, GLint x, GLint y, GLint z, GLint w) nogil
 * ctypedef void (__stdcall *GLUNIFORM4IVPTR)(GLint location, GLsizei count, const GLint* v) nogil
 * ctypedef void (__stdcall *GLUNIFORMMATRIX4FVPTR)(GLint, GLsizei, GLboolean, const GLfloat *) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLUSEPROGRAMPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLVALIDATEPROGRAMPTR)(GLuint program) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLUNIFORMMATRIX4FVPTR)(GLint, GLsizei, GLboolean, GLfloat const *);

/* "kivy/graphics/cgl.pxd":502
 * ctypedef void (__stdcall *GLUNIFORM4IVPTR)(GLint location, GLsizei count, const GLint* v) nogil
 * ctypedef void (__stdcall *GLUNIFORMMATRIX4FVPTR)(GLint, GLsizei, GLboolean, const GLfloat *) nogil
 * ctypedef void (__stdcall *GLUSEPROGRAMPTR)(GLuint) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLVALIDATEPROGRAMPTR)(GLuint program) nogil
 * ctypedef void (__stdcall *GLVERTEXATTRIB1FPTR)(GLuint indx, GLfloat x) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLUSEPROGRAMPTR)(GLuint);

/* "kivy/graphics/cgl.pxd":503
 * ctypedef void (__stdcall *GLUNIFORMMATRIX4FVPTR)(GLint, GLsizei, GLboolean, const GLfloat *) nogil
 * ctypedef void (__stdcall *GLUSEPROGRAMPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLVALIDATEPROGRAMPTR)(GLuint program) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLVERTEXATTRIB1FPTR)(GLuint indx, GLfloat x) nogil
 * ctypedef void (__stdcall *GLVERTEXATTRIB2FPTR)(GLuint indx, GLfloat x, GLfloat y) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLVALIDATEPROGRAMPTR)(GLuint);

/* "kivy/graphics/cgl.pxd":504
 * ctypedef void (__stdcall *GLUSEPROGRAMPTR)(GLuint) nogil
 * ctypedef void (__stdcall *GLVALIDATEPROGRAMPTR)(GLuint program) nogil
 * ctypedef void (__stdcall *GLVERTEXATTRIB1FPTR)(GLuint indx, GLfloat x) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLVERTEXATTRIB2FPTR)(GLuint indx, GLfloat x, GLfloat y) nogil
 * ctypedef void (__stdcall *GLVERTEXATTRIB3FPTR)(GLuint indx, GLfloat x, GLfloat y, GLfloat z) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLVERTEXATTRIB1FPTR)(GLuint, GLfloat);

/* "kivy/graphics/cgl.pxd":505
 * ctypedef void (__stdcall *GLVALIDATEPROGRAMPTR)(GLuint program) nogil
 * ctypedef void (__stdcall *GLVERTEXATTRIB1FPTR)(GLuint indx, GLfloat x) nogil
 * ctypedef void (__stdcall *GLVERTEXATTRIB2FPTR)(GLuint indx, GLfloat x, GLfloat y) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLVERTEXATTRIB3FPTR)(GLuint indx, GLfloat x, GLfloat y, GLfloat z) nogil
 * ctypedef void (__stdcall *GLVERTEXATTRIB4FPTR)(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLVERTEXATTRIB2FPTR)(GLuint, GLfloat, GLfloat);

/* "kivy/graphics/cgl.pxd":506
 * ctypedef void (__stdcall *GLVERTEXATTRIB1FPTR)(GLuint indx, GLfloat x) nogil
 * ctypedef void (__stdcall *GLVERTEXATTRIB2FPTR)(GLuint indx, GLfloat x, GLfloat y) nogil
 * ctypedef void (__stdcall *GLVERTEXATTRIB3FPTR)(GLuint indx, GLfloat x, GLfloat y, GLfloat z) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLVERTEXATTRIB4FPTR)(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) nogil
 * ctypedef void (__stdcall *GLVERTEXATTRIBPOINTERPTR)(GLuint, GLint, GLenum, GLboolean, GLsizei, const void *) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLVERTEXATTRIB3FPTR)(GLuint, GLfloat, GLfloat, GLfloat);

/* "kivy/graphics/cgl.pxd":507
 * ctypedef void (__stdcall *GLVERTEXATTRIB2FPTR)(GLuint indx, GLfloat x, GLfloat y) nogil
 * ctypedef void (__stdcall *GLVERTEXATTRIB3FPTR)(GLuint indx, GLfloat x, GLfloat y, GLfloat z) nogil
 * ctypedef void (__stdcall *GLVERTEXATTRIB4FPTR)(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLVERTEXATTRIBPOINTERPTR)(GLuint, GLint, GLenum, GLboolean, GLsizei, const void *) nogil
 * ctypedef void (__stdcall *GLVIEWPORTPTR)(GLint, GLint, GLsizei, GLsizei) nogil
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLVERTEXATTRIB4FPTR)(GLuint, GLfloat, GLfloat, GLfloat, GLfloat);

/* "kivy/graphics/cgl.pxd":508
 * ctypedef void (__stdcall *GLVERTEXATTRIB3FPTR)(GLuint indx, GLfloat x, GLfloat y, GLfloat z) nogil
 * ctypedef void (__stdcall *GLVERTEXATTRIB4FPTR)(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) nogil
 * ctypedef void (__stdcall *GLVERTEXATTRIBPOINTERPTR)(GLuint, GLint, GLenum, GLboolean, GLsizei, const void *) nogil             # <<<<<<<<<<<<<<
 * ctypedef void (__stdcall *GLVIEWPORTPTR)(GLint, GLint, GLsizei, GLsizei) nogil
 * 
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLVERTEXATTRIBPOINTERPTR)(GLuint, GLint, GLenum, GLboolean, GLsizei, void const *);

/* "kivy/graphics/cgl.pxd":509
 * ctypedef void (__stdcall *GLVERTEXATTRIB4FPTR)(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) nogil
 * ctypedef void (__stdcall *GLVERTEXATTRIBPOINTERPTR)(GLuint, GLint, GLenum, GLboolean, GLsizei, const void *) nogil
 * ctypedef void (__stdcall *GLVIEWPORTPTR)(GLint, GLint, GLsizei, GLsizei) nogil             # <<<<<<<<<<<<<<
 * 
 * ctypedef struct GLES2_Context:
*/
typedef void (__stdcall *__pyx_t_4kivy_8graphics_3cgl_GLVIEWPORTPTR)(GLint, GLint, GLsizei, GLsizei);

/* "kivy/graphics/cgl.pxd":511
 * ctypedef void (__stdcall *GLVIEWPORTPTR)(GLint, GLint, GLsizei, GLsizei) nogil
 * 
 * ctypedef struct GLES2_Context:             # <<<<<<<<<<<<<<
 *     const GLubyte* (__stdcall *glGetString)(GLenum) nogil
 *     GLboolean (__stdcall *glIsBuffer)(GLuint buffer) nogil
*/
struct __pyx_t_4kivy_8graphics_3cgl_GLES2_Context {
  GLubyte const *(__stdcall *glGetString)(GLenum);
  GLboolean (__stdcall *glIsBuffer)(GLuint);
  GLboolean (__stdcall *glIsEnabled)(GLenum);
  GLboolean (__stdcall *glIsFramebuffer)(GLuint);
  GLboolean (__stdcall *glIsProgram)(GLuint);
  GLboolean (__stdcall *glIsRenderbuffer)(GLuint);
  GLboolean (__stdcall *glIsShader)(GLuint);
  GLboolean (__stdcall *glIsTexture)(GLuint);
  GLenum (__stdcall *glCheckFramebufferStatus)(GLenum);
  GLenum (__stdcall *glGetError)(void);
  GLint (__stdcall *glGetAttribLocation)(GLuint, GLchar const *);
  GLint (__stdcall *glGetUniformLocation)(GLuint, char const *);
  GLuint (__stdcall *glCreateProgram)(void);
  GLuint (__stdcall *glCreateShader)(GLenum);
  void (__stdcall *glActiveTexture)(GLenum);
  void (__stdcall *glAttachShader)(GLuint, GLuint);
  void (__stdcall *glBindAttribLocation)(GLuint, GLuint, char const *);
  void (__stdcall *glBindBuffer)(GLenum, GLuint);
  void (__stdcall *glBindFramebuffer)(GLenum, GLuint);
  void (__stdcall *glBindRenderbuffer)(GLenum, GLuint);
  void (__stdcall *glBindTexture)(GLenum, GLuint);
  void (__stdcall *glBlendColor)(GLclampf, GLclampf, GLclampf, GLclampf);
  void (__stdcall *glBlendEquation)(GLenum);
  void (__stdcall *glBlendEquationSeparate)(GLenum, GLenum);
  void (__stdcall *glBlendFunc)(GLenum, GLenum);
  void (__stdcall *glBlendFuncSeparate)(GLenum, GLenum, GLenum, GLenum);
  void (__stdcall *glBufferData)(GLenum, GLsizeiptr, GLvoid const *, GLenum);
  void (__stdcall *glBufferSubData)(GLenum, GLintptr, GLsizeiptr, GLvoid const *);
  void (__stdcall *glClear)(GLbitfield);
  void (__stdcall *glClearColor)(GLclampf, GLclampf, GLclampf, GLclampf);
  void (__stdcall *glClearStencil)(GLint);
  void (__stdcall *glColorMask)(GLboolean, GLboolean, GLboolean, GLboolean);
  void (__stdcall *glCompileShader)(GLuint);
  void (__stdcall *glCompressedTexImage2D)(GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, GLvoid const *);
  void (__stdcall *glCompressedTexSubImage2D)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, GLvoid const *);
  void (__stdcall *glCopyTexImage2D)(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint);
  void (__stdcall *glCopyTexSubImage2D)(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei);
  void (__stdcall *glCullFace)(GLenum);
  void (__stdcall *glDeleteBuffers)(GLsizei, GLuint const *);
  void (__stdcall *glDeleteFramebuffers)(GLsizei, GLuint const *);
  void (__stdcall *glDeleteProgram)(GLuint);
  void (__stdcall *glDeleteRenderbuffers)(GLsizei, GLuint const *);
  void (__stdcall *glDeleteShader)(GLuint);
  void (__stdcall *glDeleteTextures)(GLsizei, GLuint const *);
  void (__stdcall *glDepthFunc)(GLenum);
  void (__stdcall *glDepthMask)(GLboolean);
  void (__stdcall *glDetachShader)(GLuint, GLuint);
  void (__stdcall *glDisable)(GLenum);
  void (__stdcall *glDisableVertexAttribArray)(GLuint);
  void (__stdcall *glDrawArrays)(GLenum, GLint, GLsizei);
  void (__stdcall *glDrawElements)(GLenum, GLsizei, GLenum, GLvoid const *);
  void (__stdcall *glEnable)(GLenum);
  void (__stdcall *glEnableVertexAttribArray)(GLuint);
  void (__stdcall *glFinish)(void);
  void (__stdcall *glFlush)(void);
  void (__stdcall *glFramebufferRenderbuffer)(GLenum, GLenum, GLenum, GLuint);
  void (__stdcall *glFramebufferTexture2D)(GLenum, GLenum, GLenum, GLuint, GLint);
  void (__stdcall *glFrontFace)(GLenum);
  void (__stdcall *glGenBuffers)(GLsizei, GLuint *);
  void (__stdcall *glGenerateMipmap)(GLenum);
  void (__stdcall *glGenFramebuffers)(GLsizei, GLuint *);
  void (__stdcall *glGenRenderbuffers)(GLsizei, GLuint *);
  void (__stdcall *glGenTextures)(GLsizei, GLuint *);
  void (__stdcall *glGetActiveAttrib)(GLuint, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLchar *);
  void (__stdcall *glGetActiveUniform)(GLuint, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLchar *);
  void (__stdcall *glGetAttachedShaders)(GLuint, GLsizei, GLsizei *, GLuint *);
  void (__stdcall *glGetBooleanv)(GLenum, GLboolean *);
  void (__stdcall *glGetBufferParameteriv)(GLenum, GLenum, GLint *);
  void (__stdcall *glGetFloatv)(GLenum, GLfloat *);
  void (__stdcall *glGetFramebufferAttachmentParameteriv)(GLenum, GLenum, GLenum, GLint *);
  void (__stdcall *glGetIntegerv)(GLenum, GLint *);
  void (__stdcall *glGetProgramInfoLog)(GLuint, GLsizei, GLsizei *, GLchar *);
  void (__stdcall *glGetProgramiv)(GLuint, GLenum, GLint *);
  void (__stdcall *glGetRenderbufferParameteriv)(GLenum, GLenum, GLint *);
  void (__stdcall *glGetShaderInfoLog)(GLuint, GLsizei, GLsizei *, char *);
  void (__stdcall *glGetShaderiv)(GLuint, GLenum, GLint *);
  void (__stdcall *glGetShaderSource)(GLuint, GLsizei, GLsizei *, GLchar *);
  void (__stdcall *glGetTexParameterfv)(GLenum, GLenum, GLfloat *);
  void (__stdcall *glGetTexParameteriv)(GLenum, GLenum, GLint *);
  void (__stdcall *glGetUniformfv)(GLuint, GLint, GLfloat *);
  void (__stdcall *glGetUniformiv)(GLuint, GLint, GLint *);
  void (__stdcall *glGetVertexAttribfv)(GLuint, GLenum, GLfloat *);
  void (__stdcall *glGetVertexAttribiv)(GLuint, GLenum, GLint *);
  void (__stdcall *glHint)(GLenum, GLenum);
  void (__stdcall *glLineWidth)(GLfloat);
  void (__stdcall *glLinkProgram)(GLuint);
  void (__stdcall *glPixelStorei)(GLenum, GLint);
  void (__stdcall *glPolygonOffset)(GLfloat, GLfloat);
  void (__stdcall *glReadPixels)(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *);
  void (__stdcall *glRenderbufferStorage)(GLenum, GLenum, GLsizei, GLsizei);
  void (__stdcall *glSampleCoverage)(GLclampf, GLboolean);
  void (__stdcall *glScissor)(GLint, GLint, GLsizei, GLsizei);
  void (__stdcall *glShaderBinary)(GLsizei, GLuint const *, GLenum, void const *, GLsizei);
  void (__stdcall *glShaderSource)(GLuint, GLsizei, GLchar const *const *, GLint const *);
  void (__stdcall *glStencilFunc)(GLenum, GLint, GLuint);
  void (__stdcall *glStencilFuncSeparate)(GLenum, GLenum, GLint, GLuint);
  void (__stdcall *glStencilMask)(GLuint);
  void (__stdcall *glStencilMaskSeparate)(GLenum, GLuint);
  void (__stdcall *glStencilOp)(GLenum, GLenum, GLenum);
  void (__stdcall *glStencilOpSeparate)(GLenum, GLenum, GLenum, GLenum);
  void (__stdcall *glTexImage2D)(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, void const *);
  void (__stdcall *glTexParameterf)(GLenum, GLenum, GLfloat);
  void (__stdcall *glTexParameteri)(GLenum, GLenum, GLint);
  void (__stdcall *glTexSubImage2D)(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid const *);
  void (__stdcall *glUniform1f)(GLint, GLfloat);
  void (__stdcall *glUniform1fv)(GLint, GLsizei, GLfloat const *);
  void (__stdcall *glUniform1i)(GLint, GLint);
  void (__stdcall *glUniform1iv)(GLint, GLsizei, GLint const *);
  void (__stdcall *glUniform2f)(GLint, GLfloat, GLfloat);
  void (__stdcall *glUniform2fv)(GLint, GLsizei, GLfloat const *);
  void (__stdcall *glUniform2i)(GLint, GLint, GLint);
  void (__stdcall *glUniform2iv)(GLint, GLsizei, GLint const *);
  void (__stdcall *glUniform3f)(GLint, GLfloat, GLfloat, GLfloat);
  void (__stdcall *glUniform3fv)(GLint, GLsizei, GLfloat const *);
  void (__stdcall *glUniform3i)(GLint, GLint, GLint, GLint);
  void (__stdcall *glUniform3iv)(GLint, GLsizei, GLint const *);
  void (__stdcall *glUniform4f)(GLint, GLfloat, GLfloat, GLfloat, GLfloat);
  void (__stdcall *glUniform4fv)(GLint, GLsizei, GLfloat const *);
  void (__stdcall *glUniform4i)(GLint, GLint, GLint, GLint, GLint);
  void (__stdcall *glUniform4iv)(GLint, GLsizei, GLint const *);
  void (__stdcall *glUniformMatrix4fv)(GLint, GLsizei, GLboolean, GLfloat const *);
  void (__stdcall *glUseProgram)(GLuint);
  void (__stdcall *glValidateProgram)(GLuint);
  void (__stdcall *glVertexAttrib1f)(GLuint, GLfloat);
  void (__stdcall *glVertexAttrib2f)(GLuint, GLfloat, GLfloat);
  void (__stdcall *glVertexAttrib3f)(GLuint, GLfloat, GLfloat, GLfloat);
  void (__stdcall *glVertexAttrib4f)(GLuint, GLfloat, GLfloat, GLfloat, GLfloat);
  void (__stdcall *glVertexAttribPointer)(GLuint, GLint, GLenum, GLboolean, GLsizei, void const *);
  void (__stdcall *glViewport)(GLint, GLint, GLsizei, GLsizei);
};

/* "kivy/graphics/cgl.pxd":646
 * cdef unsigned long initialized_tid
 * cdef public int verify_gl_main_thread
 * cpdef cgl_init(allowed=*, ignored=*)             # <<<<<<<<<<<<<<
 * cdef GLES2_Context *cgl_get_context()
 * cdef void cgl_set_context(GLES2_Context* ctx)
*/
struct __pyx_opt_args_4kivy_8graphics_3cgl_cgl_init {
  int __pyx_n;
  PyObject *allowed;
  PyObject *ignored;
};

/* "kivy/graphics/cgl.pxd":649
 * cdef GLES2_Context *cgl_get_context()
 * cdef void cgl_set_context(GLES2_Context* ctx)
 * cpdef cgl_get_backend_name(allowed=*, ignored=*)             # <<<<<<<<<<<<<<
 * cpdef cgl_get_initialized_backend_name()
*/
struct __pyx_opt_args_4kivy_8graphics_3cgl_cgl_get_backend_name {
  int __pyx_n;
  PyObject *allowed;
  PyObject *ignored;
};
/* #### Code section: utility_code_proto ### */

/* --- Runtime support code (head) --- */
/* Refnanny.proto */
#ifndef CYTHON_REFNANNY
  #define CYTHON_REFNANNY 0
#endif
#if CYTHON_REFNANNY
  typedef struct {
    void (*INCREF)(void*, PyObject*, Py_ssize_t);
    void (*DECREF)(void*, PyObject*, Py_ssize_t);
    void (*GOTREF)(void*, PyObject*, Py_ssize_t);
    void (*GIVEREF)(void*, PyObject*, Py_ssize_t);
    void* (*SetupContext)(const char*, Py_ssize_t, const char*);
    void (*FinishContext)(void**);
  } __Pyx_RefNannyAPIStruct;
  static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL;
  static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname);
  #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL;
  #define __Pyx_RefNannySetupContext(name, acquire_gil)\
          if (acquire_gil) {\
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
              __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), (__LINE__), (__FILE__));\
              PyGILState_Release(__pyx_gilstate_save);\
          } else {\
              __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), (__LINE__), (__FILE__));\
          }
  #define __Pyx_RefNannyFinishContextNogil() {\
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
              __Pyx_RefNannyFinishContext();\
              PyGILState_Release(__pyx_gilstate_save);\
          }
  #define __Pyx_RefNannyFinishContextNogil() {\
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
              __Pyx_RefNannyFinishContext();\
              PyGILState_Release(__pyx_gilstate_save);\
          }
  #define __Pyx_RefNannyFinishContext()\
          __Pyx_RefNanny->FinishContext(&__pyx_refnanny)
  #define __Pyx_INCREF(r)  __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), (__LINE__))
  #define __Pyx_DECREF(r)  __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), (__LINE__))
  #define __Pyx_GOTREF(r)  __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), (__LINE__))
  #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), (__LINE__))
  #define __Pyx_XINCREF(r)  do { if((r) == NULL); else {__Pyx_INCREF(r); }} while(0)
  #define __Pyx_XDECREF(r)  do { if((r) == NULL); else {__Pyx_DECREF(r); }} while(0)
  #define __Pyx_XGOTREF(r)  do { if((r) == NULL); else {__Pyx_GOTREF(r); }} while(0)
  #define __Pyx_XGIVEREF(r) do { if((r) == NULL); else {__Pyx_GIVEREF(r);}} while(0)
#else
  #define __Pyx_RefNannyDeclarations
  #define __Pyx_RefNannySetupContext(name, acquire_gil)
  #define __Pyx_RefNannyFinishContextNogil()
  #define __Pyx_RefNannyFinishContext()
  #define __Pyx_INCREF(r) Py_INCREF(r)
  #define __Pyx_DECREF(r) Py_DECREF(r)
  #define __Pyx_GOTREF(r)
  #define __Pyx_GIVEREF(r)
  #define __Pyx_XINCREF(r) Py_XINCREF(r)
  #define __Pyx_XDECREF(r) Py_XDECREF(r)
  #define __Pyx_XGOTREF(r)
  #define __Pyx_XGIVEREF(r)
#endif
#define __Pyx_Py_XDECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; Py_XDECREF(tmp);\
    } while (0)
#define __Pyx_XDECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; __Pyx_XDECREF(tmp);\
    } while (0)
#define __Pyx_DECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; __Pyx_DECREF(tmp);\
    } while (0)
#define __Pyx_CLEAR(r)    do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0)
#define __Pyx_XCLEAR(r)   do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0)

/* PyErrExceptionMatches.proto (used by PyObjectGetAttrStrNoError) */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err)
static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err);
#else
#define __Pyx_PyErr_ExceptionMatches(err)  PyErr_ExceptionMatches(err)
#endif

/* PyThreadStateGet.proto (used by PyErrFetchRestore) */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyThreadState_declare  PyThreadState *__pyx_tstate;
#define __Pyx_PyThreadState_assign  __pyx_tstate = __Pyx_PyThreadState_Current;
#if PY_VERSION_HEX >= 0x030C00A6
#define __Pyx_PyErr_Occurred()  (__pyx_tstate->current_exception != NULL)
#define __Pyx_PyErr_CurrentExceptionType()  (__pyx_tstate->current_exception ? (PyObject*) Py_TYPE(__pyx_tstate->current_exception) : (PyObject*) NULL)
#else
#define __Pyx_PyErr_Occurred()  (__pyx_tstate->curexc_type != NULL)
#define __Pyx_PyErr_CurrentExceptionType()  (__pyx_tstate->curexc_type)
#endif
#else
#define __Pyx_PyThreadState_declare
#define __Pyx_PyThreadState_assign
#define __Pyx_PyErr_Occurred()  (PyErr_Occurred() != NULL)
#define __Pyx_PyErr_CurrentExceptionType()  PyErr_Occurred()
#endif

/* PyErrFetchRestore.proto (used by PyObjectGetAttrStrNoError) */
#if CYTHON_FAST_THREAD_STATE
#define __Pyx_PyErr_Clear() __Pyx_ErrRestore(NULL, NULL, NULL)
#define __Pyx_ErrRestoreWithState(type, value, tb)  __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb)
#define __Pyx_ErrFetchWithState(type, value, tb)    __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb)
#define __Pyx_ErrRestore(type, value, tb)  __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb)
#define __Pyx_ErrFetch(type, value, tb)    __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A6
#define __Pyx_PyErr_SetNone(exc) (Py_INCREF(exc), __Pyx_ErrRestore((exc), NULL, NULL))
#else
#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
#endif
#else
#define __Pyx_PyErr_Clear() PyErr_Clear()
#define __Pyx_PyErr_SetNone(exc) PyErr_SetNone(exc)
#define __Pyx_ErrRestoreWithState(type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetchWithState(type, value, tb)  PyErr_Fetch(type, value, tb)
#define __Pyx_ErrRestoreInState(tstate, type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetchInState(tstate, type, value, tb)  PyErr_Fetch(type, value, tb)
#define __Pyx_ErrRestore(type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetch(type, value, tb)  PyErr_Fetch(type, value, tb)
#endif

/* PyObjectGetAttrStr.proto (used by PyObjectGetAttrStrNoError) */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name);
#else
#define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n)
#endif

/* PyObjectGetAttrStrNoError.proto (used by GetBuiltinName) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name);

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

/* TupleAndListFromArray.proto (used by fastcall) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyList_FromArray(PyObject *const *src, Py_ssize_t n);
#endif
#if CYTHON_COMPILING_IN_CPYTHON || CYTHON_METH_FASTCALL
static CYTHON_INLINE PyObject* __Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n);
#endif

/* IncludeStringH.proto (used by BytesEquals) */
#include <string.h>

/* BytesEquals.proto (used by UnicodeEquals) */
static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals);

/* UnicodeEquals.proto (used by fastcall) */
static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals);

/* fastcall.proto */
#if CYTHON_AVOID_BORROWED_REFS
    #define __Pyx_ArgRef_VARARGS(args, i) __Pyx_PySequence_ITEM(args, i)
#elif CYTHON_ASSUME_SAFE_MACROS
    #define __Pyx_ArgRef_VARARGS(args, i) __Pyx_NewRef(__Pyx_PyTuple_GET_ITEM(args, i))
#else
    #define __Pyx_ArgRef_VARARGS(args, i) __Pyx_XNewRef(PyTuple_GetItem(args, i))
#endif
#define __Pyx_NumKwargs_VARARGS(kwds) PyDict_Size(kwds)
#define __Pyx_KwValues_VARARGS(args, nargs) NULL
#define __Pyx_GetKwValue_VARARGS(kw, kwvalues, s) __Pyx_PyDict_GetItemStrWithError(kw, s)
#define __Pyx_KwargsAsDict_VARARGS(kw, kwvalues) PyDict_Copy(kw)
#if CYTHON_METH_FASTCALL
    #define __Pyx_ArgRef_FASTCALL(args, i) __Pyx_NewRef(args[i])
    #define __Pyx_NumKwargs_FASTCALL(kwds) __Pyx_PyTuple_GET_SIZE(kwds)
    #define __Pyx_KwValues_FASTCALL(args, nargs) ((args) + (nargs))
    static CYTHON_INLINE PyObject * __Pyx_GetKwValue_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues, PyObject *s);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000 || CYTHON_COMPILING_IN_LIMITED_API
    CYTHON_UNUSED static PyObject *__Pyx_KwargsAsDict_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues);
  #else
    #define __Pyx_KwargsAsDict_FASTCALL(kw, kwvalues) _PyStack_AsDict(kwvalues, kw)
  #endif
#else
    #define __Pyx_ArgRef_FASTCALL __Pyx_ArgRef_VARARGS
    #define __Pyx_NumKwargs_FASTCALL __Pyx_NumKwargs_VARARGS
    #define __Pyx_KwValues_FASTCALL __Pyx_KwValues_VARARGS
    #define __Pyx_GetKwValue_FASTCALL __Pyx_GetKwValue_VARARGS
    #define __Pyx_KwargsAsDict_FASTCALL __Pyx_KwargsAsDict_VARARGS
#endif
#define __Pyx_ArgsSlice_VARARGS(args, start, stop) PyTuple_GetSlice(args, start, stop)
#if CYTHON_METH_FASTCALL || (CYTHON_COMPILING_IN_CPYTHON && CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS)
#define __Pyx_ArgsSlice_FASTCALL(args, start, stop) __Pyx_PyTuple_FromArray(args + start, stop - start)
#else
#define __Pyx_ArgsSlice_FASTCALL(args, start, stop) PyTuple_GetSlice(args, start, stop)
#endif

/* py_dict_items.proto (used by OwnedDictNext) */
static CYTHON_INLINE PyObject* __Pyx_PyDict_Items(PyObject* d);

/* CallCFunction.proto (used by CallUnboundCMethod0) */
#define __Pyx_CallCFunction(cfunc, self, args)\
    ((PyCFunction)(void(*)(void))(cfunc)->func)(self, args)
#define __Pyx_CallCFunctionWithKeywords(cfunc, self, args, kwargs)\
    ((PyCFunctionWithKeywords)(void(*)(void))(cfunc)->func)(self, args, kwargs)
#define __Pyx_CallCFunctionFast(cfunc, self, args, nargs)\
    ((__Pyx_PyCFunctionFast)(void(*)(void))(PyCFunction)(cfunc)->func)(self, args, nargs)
#define __Pyx_CallCFunctionFastWithKeywords(cfunc, self, args, nargs, kwnames)\
    ((__Pyx_PyCFunctionFastWithKeywords)(void(*)(void))(PyCFunction)(cfunc)->func)(self, args, nargs, kwnames)

/* PyObjectCall.proto (used by PyObjectFastCall) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw);
#else
#define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw)
#endif

/* PyObjectCallMethO.proto (used by PyObjectFastCall) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg);
#endif

/* PyObjectFastCall.proto (used by PyObjectCallOneArg) */
#define __Pyx_PyObject_FastCall(func, args, nargs)  __Pyx_PyObject_FastCallDict(func, args, (size_t)(nargs), NULL)
static CYTHON_INLINE PyObject* __Pyx_PyObject_FastCallDict(PyObject *func, PyObject * const*args, size_t nargs, PyObject *kwargs);

/* PyObjectCallOneArg.proto (used by CallUnboundCMethod0) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg);

/* UnpackUnboundCMethod.proto (used by CallUnboundCMethod0) */
typedef struct {
    PyObject *type;
    PyObject **method_name;
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && CYTHON_ATOMICS
    __pyx_atomic_int_type initialized;
#endif
    PyCFunction func;
    PyObject *method;
    int flag;
} __Pyx_CachedCFunction;
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
static CYTHON_INLINE int __Pyx_CachedCFunction_GetAndSetInitializing(__Pyx_CachedCFunction *cfunc) {
#if !CYTHON_ATOMICS
    return 1;
#else
    __pyx_nonatomic_int_type expected = 0;
    if (__pyx_atomic_int_cmp_exchange(&cfunc->initialized, &expected, 1)) {
        return 0;
    }
    return expected;
#endif
}
static CYTHON_INLINE void __Pyx_CachedCFunction_SetFinishedInitializing(__Pyx_CachedCFunction *cfunc) {
#if CYTHON_ATOMICS
    __pyx_atomic_store(&cfunc->initialized, 2);
#endif
}
#else
#define __Pyx_CachedCFunction_GetAndSetInitializing(cfunc) 2
#define __Pyx_CachedCFunction_SetFinishedInitializing(cfunc)
#endif

/* CallUnboundCMethod0.proto */
CYTHON_UNUSED
static PyObject* __Pyx__CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self);
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self);
#else
#define __Pyx_CallUnboundCMethod0(cfunc, self)  __Pyx__CallUnboundCMethod0(cfunc, self)
#endif

/* py_dict_values.proto (used by OwnedDictNext) */
static CYTHON_INLINE PyObject* __Pyx_PyDict_Values(PyObject* d);

/* OwnedDictNext.proto (used by RejectKeywords) */
#if CYTHON_AVOID_BORROWED_REFS
static int __Pyx_PyDict_NextRef(PyObject *p, PyObject **ppos, PyObject **pkey, PyObject **pvalue);
#else
CYTHON_INLINE
static int __Pyx_PyDict_NextRef(PyObject *p, Py_ssize_t *ppos, PyObject **pkey, PyObject **pvalue);
#endif

/* RejectKeywords.export */
static void __Pyx_RejectKeywords(const char* function_name, PyObject *kwds);

/* ListCompAppend.proto */
#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS
static CYTHON_INLINE int __Pyx_ListComp_Append(PyObject* list, PyObject* x) {
    PyListObject* L = (PyListObject*) list;
    Py_ssize_t len = Py_SIZE(list);
    if (likely(L->allocated > len)) {
        Py_INCREF(x);
        #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000
        L->ob_item[len] = x;
        #else
        PyList_SET_ITEM(list, len, x);
        #endif
        __Pyx_SET_SIZE(list, len + 1);
        return 0;
    }
    return PyList_Append(list, x);
}
#else
#define __Pyx_ListComp_Append(L,x) PyList_Append(L,x)
#endif

/* PyObject_Unicode.proto */
#define __Pyx_PyObject_Unicode(obj)\
    (likely(PyUnicode_CheckExact(obj)) ? __Pyx_NewRef(obj) : PyObject_Str(obj))

/* BuildPyUnicode.proto (used by COrdinalToPyUnicode) */
static PyObject* __Pyx_PyUnicode_BuildFromAscii(Py_ssize_t ulength, const char* chars, int clength,
                                                int prepend_sign, char padding_char);

/* COrdinalToPyUnicode.proto (used by CIntToPyUnicode) */
static CYTHON_INLINE int __Pyx_CheckUnicodeValue(int value);
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromOrdinal_Padded(int value, Py_ssize_t width, char padding_char);

/* GCCDiagnostics.proto (used by CIntToPyUnicode) */
#if !defined(__INTEL_COMPILER) && defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6))
#define __Pyx_HAS_GCC_DIAGNOSTIC
#endif

/* IncludeStdlibH.proto (used by CIntToPyUnicode) */
#include <stdlib.h>

/* CIntToPyUnicode.proto */
#define __Pyx_PyUnicode_From_GLenum(value, width, padding_char, format_char) (\
    ((format_char) == ('c')) ?\
        __Pyx_uchar___Pyx_PyUnicode_From_GLenum(value, width, padding_char) :\
        __Pyx____Pyx_PyUnicode_From_GLenum(value, width, padding_char, format_char)\
    )
static CYTHON_INLINE PyObject* __Pyx_uchar___Pyx_PyUnicode_From_GLenum(GLenum value, Py_ssize_t width, char padding_char);
static CYTHON_INLINE PyObject* __Pyx____Pyx_PyUnicode_From_GLenum(GLenum value, Py_ssize_t width, char padding_char, char format_char);

/* JoinPyUnicode.export */
static PyObject* __Pyx_PyUnicode_Join(PyObject** values, Py_ssize_t value_count, Py_ssize_t result_ulength,
                                      Py_UCS4 max_char);

/* PyDictVersioning.proto (used by GetModuleGlobalName) */
#if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
#define __PYX_DICT_VERSION_INIT  ((PY_UINT64_T) -1)
#define __PYX_GET_DICT_VERSION(dict)  (((PyDictObject*)(dict))->ma_version_tag)
#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)\
    (version_var) = __PYX_GET_DICT_VERSION(dict);\
    (cache_var) = (value);
#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP) {\
    static PY_UINT64_T __pyx_dict_version = 0;\
    static PyObject *__pyx_dict_cached_value = NULL;\
    if (likely(__PYX_GET_DICT_VERSION(DICT) == __pyx_dict_version)) {\
        (VAR) = __Pyx_XNewRef(__pyx_dict_cached_value);\
    } else {\
        (VAR) = __pyx_dict_cached_value = (LOOKUP);\
        __pyx_dict_version = __PYX_GET_DICT_VERSION(DICT);\
    }\
}
static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj);
static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj);
static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version);
#else
#define __PYX_GET_DICT_VERSION(dict)  (0)
#define __PYX_UPDATE_DICT_CACHE(dict, value, cache_var, version_var)
#define __PYX_PY_DICT_LOOKUP_IF_MODIFIED(VAR, DICT, LOOKUP)  (VAR) = (LOOKUP);
#endif

/* GetModuleGlobalName.proto */
#if CYTHON_USE_DICT_VERSIONS
#define __Pyx_GetModuleGlobalName(var, name)  do {\
    static PY_UINT64_T __pyx_dict_version = 0;\
    static PyObject *__pyx_dict_cached_value = NULL;\
    (var) = (likely(__pyx_dict_version == __PYX_GET_DICT_VERSION(__pyx_mstate_global->__pyx_d))) ?\
        (likely(__pyx_dict_cached_value) ? __Pyx_NewRef(__pyx_dict_cached_value) : __Pyx_GetBuiltinName(name)) :\
        __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
} while(0)
#define __Pyx_GetModuleGlobalNameUncached(var, name)  do {\
    PY_UINT64_T __pyx_dict_version;\
    PyObject *__pyx_dict_cached_value;\
    (var) = __Pyx__GetModuleGlobalName(name, &__pyx_dict_version, &__pyx_dict_cached_value);\
} while(0)
static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value);
#else
#define __Pyx_GetModuleGlobalName(var, name)  (var) = __Pyx__GetModuleGlobalName(name)
#define __Pyx_GetModuleGlobalNameUncached(var, name)  (var) = __Pyx__GetModuleGlobalName(name)
static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name);
#endif

/* PyNumber_Hex.proto */
#define __Pyx_PyNumber_Hex(obj) PyNumber_ToBase((obj), 16)

/* VoidPtrImport.proto */
static int __Pyx_ImportVoidPtr_3_2_3(PyObject *module, const char *name, void **p, const char *sig);

/* FunctionImport.proto */
static int __Pyx_ImportFunction_3_2_3(PyObject *module, const char *funcname, void (**f)(void), const char *sig);

/* dict_setdefault.proto (used by FetchCommonType) */
static CYTHON_INLINE PyObject *__Pyx_PyDict_SetDefault(PyObject *d, PyObject *key, PyObject *default_value);

/* LimitedApiGetTypeDict.proto (used by SetItemOnTypeDict) */
#if CYTHON_COMPILING_IN_LIMITED_API
static PyObject *__Pyx_GetTypeDict(PyTypeObject *tp);
#endif

/* SetItemOnTypeDict.proto (used by FixUpExtensionType) */
static int __Pyx__SetItemOnTypeDict(PyTypeObject *tp, PyObject *k, PyObject *v);
#define __Pyx_SetItemOnTypeDict(tp, k, v) __Pyx__SetItemOnTypeDict((PyTypeObject*)tp, k, v)

/* FixUpExtensionType.proto (used by FetchCommonType) */
static CYTHON_INLINE int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject *type);

/* AddModuleRef.proto (used by FetchSharedCythonModule) */
#if ((CYTHON_COMPILING_IN_CPYTHON_FREETHREADING ) ||\
     __PYX_LIMITED_VERSION_HEX < 0x030d0000)
  static PyObject *__Pyx_PyImport_AddModuleRef(const char *name);
#else
  #define __Pyx_PyImport_AddModuleRef(name) PyImport_AddModuleRef(name)
#endif

/* FetchSharedCythonModule.proto (used by FetchCommonType) */
static PyObject *__Pyx_FetchSharedCythonABIModule(void);

/* FetchCommonType.proto (used by CommonTypesMetaclass) */
static PyTypeObject* __Pyx_FetchCommonTypeFromSpec(PyTypeObject *metaclass, PyObject *module, PyType_Spec *spec, PyObject *bases);

/* CommonTypesMetaclass.proto (used by CythonFunctionShared) */
static int __pyx_CommonTypesMetaclass_init(PyObject *module);
#define __Pyx_CommonTypesMetaclass_USED

/* CallTypeTraverse.proto (used by CythonFunctionShared) */
#if !CYTHON_USE_TYPE_SPECS || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x03090000)
#define __Pyx_call_type_traverse(o, always_call, visit, arg) 0
#else
static int __Pyx_call_type_traverse(PyObject *o, int always_call, visitproc visit, void *arg);
#endif

/* PyMethodNew.proto (used by CythonFunctionShared) */
static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, PyObject *typ);

/* PyVectorcallFastCallDict.proto (used by CythonFunctionShared) */
#if CYTHON_METH_FASTCALL && CYTHON_VECTORCALL
static CYTHON_INLINE PyObject *__Pyx_PyVectorcall_FastCallDict(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw);
#endif

/* CythonFunctionShared.proto (used by CythonFunction) */
#define __Pyx_CyFunction_USED
#define __Pyx_CYFUNCTION_STATICMETHOD  0x01
#define __Pyx_CYFUNCTION_CLASSMETHOD   0x02
#define __Pyx_CYFUNCTION_CCLASS        0x04
#define __Pyx_CYFUNCTION_COROUTINE     0x08
#define __Pyx_CyFunction_GetClosure(f)\
    (((__pyx_CyFunctionObject *) (f))->func_closure)
#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
  #define __Pyx_CyFunction_GetClassObj(f)\
      (((__pyx_CyFunctionObject *) (f))->func_classobj)
#else
  #define __Pyx_CyFunction_GetClassObj(f)\
      ((PyObject*) ((PyCMethodObject *) (f))->mm_class)
#endif
#define __Pyx_CyFunction_SetClassObj(f, classobj)\
    __Pyx__CyFunction_SetClassObj((__pyx_CyFunctionObject *) (f), (classobj))
#define __Pyx_CyFunction_Defaults(type, f)\
    ((type *)(((__pyx_CyFunctionObject *) (f))->defaults))
#define __Pyx_CyFunction_SetDefaultsGetter(f, g)\
    ((__pyx_CyFunctionObject *) (f))->defaults_getter = (g)
typedef struct {
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject_HEAD
    PyObject *func;
#elif PY_VERSION_HEX < 0x030900B1
    PyCFunctionObject func;
#else
    PyCMethodObject func;
#endif
#if CYTHON_COMPILING_IN_LIMITED_API && CYTHON_METH_FASTCALL
    __pyx_vectorcallfunc func_vectorcall;
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *func_weakreflist;
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    PyObject *func_dict;
#endif
    PyObject *func_name;
    PyObject *func_qualname;
    PyObject *func_doc;
    PyObject *func_globals;
    PyObject *func_code;
    PyObject *func_closure;
#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
    PyObject *func_classobj;
#endif
    PyObject *defaults;
    int flags;
    PyObject *defaults_tuple;
    PyObject *defaults_kwdict;
    PyObject *(*defaults_getter)(PyObject *);
    PyObject *func_annotations;
    PyObject *func_is_coroutine;
} __pyx_CyFunctionObject;
#undef __Pyx_CyOrPyCFunction_Check
#define __Pyx_CyFunction_Check(obj)  __Pyx_TypeCheck(obj, __pyx_mstate_global->__pyx_CyFunctionType)
#define __Pyx_CyOrPyCFunction_Check(obj)  __Pyx_TypeCheck2(obj, __pyx_mstate_global->__pyx_CyFunctionType, &PyCFunction_Type)
#define __Pyx_CyFunction_CheckExact(obj)  __Pyx_IS_TYPE(obj, __pyx_mstate_global->__pyx_CyFunctionType)
static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void (*cfunc)(void));
#undef __Pyx_IsSameCFunction
#define __Pyx_IsSameCFunction(func, cfunc)   __Pyx__IsSameCyOrCFunction(func, cfunc)
static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject* op, PyMethodDef *ml,
                                      int flags, PyObject* qualname,
                                      PyObject *closure,
                                      PyObject *module, PyObject *globals,
                                      PyObject* code);
static CYTHON_INLINE void __Pyx__CyFunction_SetClassObj(__pyx_CyFunctionObject* f, PyObject* classobj);
static CYTHON_INLINE PyObject *__Pyx_CyFunction_InitDefaults(PyObject *func,
                                                         PyTypeObject *defaults_type);
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m,
                                                            PyObject *tuple);
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *m,
                                                             PyObject *dict);
static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *m,
                                                              PyObject *dict);
static int __pyx_CyFunction_init(PyObject *module);
#if CYTHON_METH_FASTCALL
static PyObject * __Pyx_CyFunction_Vectorcall_NOARGS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
static PyObject * __Pyx_CyFunction_Vectorcall_O(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames);
#if CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_CyFunction_func_vectorcall(f) (((__pyx_CyFunctionObject*)f)->func_vectorcall)
#else
#define __Pyx_CyFunction_func_vectorcall(f) (((PyCFunctionObject*)f)->vectorcall)
#endif
#endif

/* CythonFunction.proto */
static PyObject *__Pyx_CyFunction_New(PyMethodDef *ml,
                                      int flags, PyObject* qualname,
                                      PyObject *closure,
                                      PyObject *module, PyObject *globals,
                                      PyObject* code);

/* CLineInTraceback.proto (used by AddTraceback) */
#if CYTHON_CLINE_IN_TRACEBACK && CYTHON_CLINE_IN_TRACEBACK_RUNTIME
static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line);
#else
#define __Pyx_CLineForTraceback(tstate, c_line)  (((CYTHON_CLINE_IN_TRACEBACK)) ? c_line : 0)
#endif

/* CodeObjectCache.proto (used by AddTraceback) */
#if CYTHON_COMPILING_IN_LIMITED_API
typedef PyObject __Pyx_CachedCodeObjectType;
#else
typedef PyCodeObject __Pyx_CachedCodeObjectType;
#endif
typedef struct {
    __Pyx_CachedCodeObjectType* code_object;
    int code_line;
} __Pyx_CodeObjectCacheEntry;
struct __Pyx_CodeObjectCache {
    int count;
    int max_count;
    __Pyx_CodeObjectCacheEntry* entries;
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_atomic_int_type accessor_count;
  #endif
};
static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line);
static __Pyx_CachedCodeObjectType *__pyx_find_code_object(int code_line);
static void __pyx_insert_code_object(int code_line, __Pyx_CachedCodeObjectType* code_object);

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

/* PyObjectVectorCallKwBuilder.proto (used by CIntToPy) */
CYTHON_UNUSED static int __Pyx_VectorcallBuilder_AddArg_Check(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n);
#if CYTHON_VECTORCALL
#if PY_VERSION_HEX >= 0x03090000
#define __Pyx_Object_Vectorcall_CallFromBuilder PyObject_Vectorcall
#else
#define __Pyx_Object_Vectorcall_CallFromBuilder _PyObject_Vectorcall
#endif
#define __Pyx_MakeVectorcallBuilderKwds(n) PyTuple_New(n)
static int __Pyx_VectorcallBuilder_AddArg(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n);
static int __Pyx_VectorcallBuilder_AddArgStr(const char *key, PyObject *value, PyObject *builder, PyObject **args, int n);
#else
#define __Pyx_Object_Vectorcall_CallFromBuilder __Pyx_PyObject_FastCallDict
#define __Pyx_MakeVectorcallBuilderKwds(n) __Pyx_PyDict_NewPresized(n)
#define __Pyx_VectorcallBuilder_AddArg(key, value, builder, args, n) PyDict_SetItem(builder, key, value)
#define __Pyx_VectorcallBuilder_AddArgStr(key, value, builder, args, n) PyDict_SetItemString(builder, key, value)
#endif

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_GLenum(GLenum value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_GLuint(GLuint value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_PY_LONG_LONG(PY_LONG_LONG value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_GLsizeiptr(GLsizeiptr value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_GLintptr(GLintptr value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_GLbitfield(GLbitfield value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_GLint(GLint value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_GLboolean(GLboolean value);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_GLsizei(GLsizei value);

/* FormatTypeName.proto */
#if CYTHON_COMPILING_IN_LIMITED_API
typedef PyObject *__Pyx_TypeName;
#define __Pyx_FMT_TYPENAME "%U"
#define __Pyx_DECREF_TypeName(obj) Py_XDECREF(obj)
#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
#define __Pyx_PyType_GetFullyQualifiedName PyType_GetFullyQualifiedName
#else
static __Pyx_TypeName __Pyx_PyType_GetFullyQualifiedName(PyTypeObject* tp);
#endif
#else  // !LIMITED_API
typedef const char *__Pyx_TypeName;
#define __Pyx_FMT_TYPENAME "%.200s"
#define __Pyx_PyType_GetFullyQualifiedName(tp) ((tp)->tp_name)
#define __Pyx_DECREF_TypeName(obj)
#endif

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_long(long value);

/* CIntFromPy.proto */
static CYTHON_INLINE long __Pyx_PyLong_As_long(PyObject *);

/* CIntFromPy.proto */
static CYTHON_INLINE int __Pyx_PyLong_As_int(PyObject *);

/* FastTypeChecks.proto */
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_TypeCheck(obj, type) __Pyx_IsSubtype(Py_TYPE(obj), (PyTypeObject *)type)
#define __Pyx_TypeCheck2(obj, type1, type2) __Pyx_IsAnySubtype2(Py_TYPE(obj), (PyTypeObject *)type1, (PyTypeObject *)type2)
static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b);
static CYTHON_INLINE int __Pyx_IsAnySubtype2(PyTypeObject *cls, PyTypeObject *a, PyTypeObject *b);
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject *type);
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2);
#else
#define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
#define __Pyx_TypeCheck2(obj, type1, type2) (PyObject_TypeCheck(obj, (PyTypeObject *)type1) || PyObject_TypeCheck(obj, (PyTypeObject *)type2))
#define __Pyx_PyErr_GivenExceptionMatches(err, type) PyErr_GivenExceptionMatches(err, type)
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *type1, PyObject *type2) {
    return PyErr_GivenExceptionMatches(err, type1) || PyErr_GivenExceptionMatches(err, type2);
}
#endif
#define __Pyx_PyErr_ExceptionMatches2(err1, err2)  __Pyx_PyErr_GivenExceptionMatches2(__Pyx_PyErr_CurrentExceptionType(), err1, err2)
#define __Pyx_PyException_Check(obj) __Pyx_TypeCheck(obj, PyExc_Exception)
#ifdef PyExceptionInstance_Check
  #define __Pyx_PyBaseException_Check(obj) PyExceptionInstance_Check(obj)
#else
  #define __Pyx_PyBaseException_Check(obj) __Pyx_TypeCheck(obj, PyExc_BaseException)
#endif

/* GetRuntimeVersion.proto */
#if __PYX_LIMITED_VERSION_HEX < 0x030b0000
static unsigned long __Pyx_cached_runtime_version = 0;
static void __Pyx_init_runtime_version(void);
#else
#define __Pyx_init_runtime_version()
#endif
static unsigned long __Pyx_get_runtime_version(void);

/* CheckBinaryVersion.proto */
static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer);

/* DecompressString.proto */
static PyObject *__Pyx_DecompressString(const char *s, Py_ssize_t length, int algo);

/* MultiPhaseInitModuleState.proto */
#if CYTHON_PEP489_MULTI_PHASE_INIT && CYTHON_USE_MODULE_STATE
static PyObject *__Pyx_State_FindModule(void*);
static int __Pyx_State_AddModule(PyObject* module, void*);
static int __Pyx_State_RemoveModule(void*);
#elif CYTHON_USE_MODULE_STATE
#define __Pyx_State_FindModule PyState_FindModule
#define __Pyx_State_AddModule PyState_AddModule
#define __Pyx_State_RemoveModule PyState_RemoveModule
#endif

/* #### Code section: module_declarations ### */
/* CythonABIVersion.proto */
#if CYTHON_COMPILING_IN_LIMITED_API
    #if CYTHON_METH_FASTCALL
        #define __PYX_FASTCALL_ABI_SUFFIX  "_fastcall"
    #else
        #define __PYX_FASTCALL_ABI_SUFFIX
    #endif
    #define __PYX_LIMITED_ABI_SUFFIX "limited" __PYX_FASTCALL_ABI_SUFFIX __PYX_AM_SEND_ABI_SUFFIX
#else
    #define __PYX_LIMITED_ABI_SUFFIX
#endif
#if __PYX_HAS_PY_AM_SEND == 1
    #define __PYX_AM_SEND_ABI_SUFFIX
#elif __PYX_HAS_PY_AM_SEND == 2
    #define __PYX_AM_SEND_ABI_SUFFIX "amsendbackport"
#else
    #define __PYX_AM_SEND_ABI_SUFFIX "noamsend"
#endif
#ifndef __PYX_MONITORING_ABI_SUFFIX
    #define __PYX_MONITORING_ABI_SUFFIX
#endif
#if CYTHON_USE_TP_FINALIZE
    #define __PYX_TP_FINALIZE_ABI_SUFFIX
#else
    #define __PYX_TP_FINALIZE_ABI_SUFFIX "nofinalize"
#endif
#if CYTHON_USE_FREELISTS || !defined(__Pyx_AsyncGen_USED)
    #define __PYX_FREELISTS_ABI_SUFFIX
#else
    #define __PYX_FREELISTS_ABI_SUFFIX "nofreelists"
#endif
#define CYTHON_ABI  __PYX_ABI_VERSION __PYX_LIMITED_ABI_SUFFIX __PYX_MONITORING_ABI_SUFFIX __PYX_TP_FINALIZE_ABI_SUFFIX __PYX_FREELISTS_ABI_SUFFIX __PYX_AM_SEND_ABI_SUFFIX
#define __PYX_ABI_MODULE_NAME "_cython_" CYTHON_ABI
#define __PYX_TYPE_MODULE_PREFIX __PYX_ABI_MODULE_NAME "."


/* Module declarations from "kivy.graphics.cgl" */
static double *__pyx_vp_4kivy_8graphics_3cgl_pi = 0;
#define __pyx_v_4kivy_8graphics_3cgl_pi (*__pyx_vp_4kivy_8graphics_3cgl_pi)
static __pyx_t_4kivy_8graphics_3cgl_GLES2_Context **__pyx_vp_4kivy_8graphics_3cgl_cgl = 0;
#define __pyx_v_4kivy_8graphics_3cgl_cgl (*__pyx_vp_4kivy_8graphics_3cgl_cgl)
static int *__pyx_vp_4kivy_8graphics_3cgl_kivy_opengl_es2 = 0;
#define __pyx_v_4kivy_8graphics_3cgl_kivy_opengl_es2 (*__pyx_vp_4kivy_8graphics_3cgl_kivy_opengl_es2)
static unsigned long *__pyx_vp_4kivy_8graphics_3cgl_initialized_tid = 0;
#define __pyx_v_4kivy_8graphics_3cgl_initialized_tid (*__pyx_vp_4kivy_8graphics_3cgl_initialized_tid)
static int *__pyx_vp_4kivy_8graphics_3cgl_verify_gl_main_thread = 0;
#define __pyx_v_4kivy_8graphics_3cgl_verify_gl_main_thread (*__pyx_vp_4kivy_8graphics_3cgl_verify_gl_main_thread)
static __pyx_t_4kivy_8graphics_3cgl_GLES2_Context *(*__pyx_f_4kivy_8graphics_3cgl_cgl_get_context)(void); /*proto*/
static void (*__pyx_f_4kivy_8graphics_3cgl_cgl_set_context)(__pyx_t_4kivy_8graphics_3cgl_GLES2_Context *); /*proto*/

/* Module declarations from "kivy.graphics.cgl_backend.cgl_debug" */
static double __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_pi;
static __pyx_t_4kivy_8graphics_3cgl_GLES2_Context __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_g_cgl_debug;
static __pyx_t_4kivy_8graphics_3cgl_GLES2_Context *__pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug;
static __pyx_t_4kivy_8graphics_3cgl_GLES2_Context *__pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native;
static PyObject *__pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_is_backend_supported(int __pyx_skip_dispatch); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgActiveTexture(GLenum); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgActiveTexture(GLenum); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgAttachShader(GLuint, GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgAttachShader(GLuint, GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgBindAttribLocation(GLuint, GLuint, GLchar const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgBindAttribLocation(GLuint, GLuint, GLchar const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgBindBuffer(GLenum, GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgBindBuffer(GLenum, GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgBindFramebuffer(GLenum, GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgBindFramebuffer(GLenum, GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgBindRenderbuffer(GLenum, GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgBindRenderbuffer(GLenum, GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgBindTexture(GLenum, GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgBindTexture(GLenum, GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgBlendColor(GLclampf, GLclampf, GLclampf, GLclampf); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgBlendColor(GLclampf, GLclampf, GLclampf, GLclampf); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgBlendEquation(GLenum); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgBlendEquation(GLenum); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgBlendEquationSeparate(GLenum, GLenum); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgBlendEquationSeparate(GLenum, GLenum); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgBlendFunc(GLenum, GLenum); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgBlendFunc(GLenum, GLenum); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgBlendFuncSeparate(GLenum, GLenum, GLenum, GLenum); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgBlendFuncSeparate(GLenum, GLenum, GLenum, GLenum); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgBufferData(GLenum, GLsizeiptr, GLvoid const *, GLenum); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgBufferData(GLenum, GLsizeiptr, GLvoid const *, GLenum); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgBufferSubData(GLenum, GLintptr, GLsizeiptr, GLvoid const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgBufferSubData(GLenum, GLintptr, GLsizeiptr, GLvoid *); /*proto*/
static GLenum __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgCheckFramebufferStatus(GLenum); /*proto*/
static GLenum __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgCheckFramebufferStatus(GLenum); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgClear(GLbitfield); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgClear(GLbitfield); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgClearColor(GLclampf, GLclampf, GLclampf, GLclampf); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgClearColor(GLclampf, GLclampf, GLclampf, GLclampf); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgClearStencil(GLint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgClearStencil(GLint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgColorMask(GLboolean, GLboolean, GLboolean, GLboolean); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgColorMask(GLboolean, GLboolean, GLboolean, GLboolean); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgCompileShader(GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgCompileShader(GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgCompressedTexImage2D(GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, GLvoid const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgCompressedTexImage2D(GLenum, GLint, GLenum, GLsizei, GLsizei, GLint, GLsizei, GLvoid const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgCompressedTexSubImage2D(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, GLvoid const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgCompressedTexSubImage2D(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLsizei, GLvoid *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgCopyTexImage2D(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgCopyTexImage2D(GLenum, GLint, GLenum, GLint, GLint, GLsizei, GLsizei, GLint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgCopyTexSubImage2D(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgCopyTexSubImage2D(GLenum, GLint, GLint, GLint, GLint, GLint, GLsizei, GLsizei); /*proto*/
static GLuint __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgCreateProgram(void); /*proto*/
static GLuint __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgCreateProgram(void); /*proto*/
static GLuint __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgCreateShader(GLenum); /*proto*/
static GLuint __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgCreateShader(GLenum); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgCullFace(GLenum); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgCullFace(GLenum); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDeleteBuffers(GLsizei, GLuint const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDeleteBuffers(GLsizei, GLuint const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDeleteFramebuffers(GLsizei, GLuint const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDeleteFramebuffers(GLsizei, GLuint const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDeleteProgram(GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDeleteProgram(GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDeleteRenderbuffers(GLsizei, GLuint const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDeleteRenderbuffers(GLsizei, GLuint const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDeleteShader(GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDeleteShader(GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDeleteTextures(GLsizei, GLuint const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDeleteTextures(GLsizei, GLuint const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDepthFunc(GLenum); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDepthFunc(GLenum); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDepthMask(GLboolean); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDepthMask(GLboolean); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDetachShader(GLuint, GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDetachShader(GLuint, GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDisable(GLenum); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDisable(GLenum); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDisableVertexAttribArray(GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDisableVertexAttribArray(GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDrawArrays(GLenum, GLint, GLsizei); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDrawArrays(GLenum, GLint, GLsizei); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDrawElements(GLenum, GLsizei, GLenum, GLvoid const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDrawElements(GLenum, GLsizei, GLenum, GLvoid *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgEnable(GLenum); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgEnable(GLenum); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgEnableVertexAttribArray(GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgEnableVertexAttribArray(GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgFinish(void); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgFinish(void); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgFlush(void); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgFlush(void); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgFramebufferRenderbuffer(GLenum, GLenum, GLenum, GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgFramebufferRenderbuffer(GLenum, GLenum, GLenum, GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgFramebufferTexture2D(GLenum, GLenum, GLenum, GLuint, GLint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgFramebufferTexture2D(GLenum, GLenum, GLenum, GLuint, GLint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgFrontFace(GLenum); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgFrontFace(GLenum); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGenBuffers(GLsizei, GLuint *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGenBuffers(GLsizei, GLuint *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGenerateMipmap(GLenum); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGenerateMipmap(GLenum); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGenFramebuffers(GLsizei, GLuint *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGenFramebuffers(GLsizei, GLuint *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGenRenderbuffers(GLsizei, GLuint *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGenRenderbuffers(GLsizei, GLuint *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGenTextures(GLsizei, GLuint *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGenTextures(GLsizei, GLuint *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetActiveAttrib(GLuint, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLchar *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetActiveAttrib(GLuint, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLchar *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetActiveUniform(GLuint, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLchar *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetActiveUniform(GLuint, GLuint, GLsizei, GLsizei *, GLint *, GLenum *, GLchar *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetAttachedShaders(GLuint, GLsizei, GLsizei *, GLuint *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetAttachedShaders(GLuint, GLsizei, GLsizei *, GLuint *); /*proto*/
static int __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetAttribLocation(GLuint, GLchar const *); /*proto*/
static int __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetAttribLocation(GLuint, GLchar *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetBooleanv(GLenum, GLboolean *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetBooleanv(GLenum, GLboolean *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetBufferParameteriv(GLenum, GLenum, GLint *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetBufferParameteriv(GLenum, GLenum, GLint *); /*proto*/
static GLenum __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetError(void); /*proto*/
static GLenum __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetError(void); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetFloatv(GLenum, GLfloat *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetFloatv(GLenum, GLfloat *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetFramebufferAttachmentParameteriv(GLenum, GLenum, GLenum, GLint *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetFramebufferAttachmentParameteriv(GLenum, GLenum, GLenum, GLint *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetIntegerv(GLenum, GLint *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetIntegerv(GLenum, GLint *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetProgramiv(GLuint, GLenum, GLint *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetProgramiv(GLuint, GLenum, GLint *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetProgramInfoLog(GLuint, GLsizei, GLsizei *, GLchar *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetProgramInfoLog(GLuint, GLsizei, GLsizei *, GLchar *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetRenderbufferParameteriv(GLenum, GLenum, GLint *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetRenderbufferParameteriv(GLenum, GLenum, GLint *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetShaderiv(GLuint, GLenum, GLint *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetShaderiv(GLuint, GLenum, GLint *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetShaderInfoLog(GLuint, GLsizei, GLsizei *, GLchar *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetShaderInfoLog(GLuint, GLsizei, GLsizei *, GLchar *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetShaderSource(GLuint, GLsizei, GLsizei *, GLchar *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetShaderSource(GLuint, GLsizei, GLsizei *, GLchar *); /*proto*/
static GLubyte const *__stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetString(GLenum); /*proto*/
static GLubyte const *__stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetString(GLenum); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetTexParameterfv(GLenum, GLenum, GLfloat *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetTexParameterfv(GLenum, GLenum, GLfloat *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetTexParameteriv(GLenum, GLenum, GLint *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetTexParameteriv(GLenum, GLenum, GLint *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetUniformfv(GLuint, GLint, GLfloat *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetUniformfv(GLuint, GLint, GLfloat *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetUniformiv(GLuint, GLint, GLint *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetUniformiv(GLuint, GLint, GLint *); /*proto*/
static int __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetUniformLocation(GLuint, GLchar const *); /*proto*/
static int __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetUniformLocation(GLuint, GLchar *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetVertexAttribfv(GLuint, GLenum, GLfloat *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetVertexAttribfv(GLuint, GLenum, GLfloat *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetVertexAttribiv(GLuint, GLenum, GLint *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetVertexAttribiv(GLuint, GLenum, GLint *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgHint(GLenum, GLenum); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgHint(GLenum, GLenum); /*proto*/
static GLboolean __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgIsBuffer(GLuint); /*proto*/
static GLboolean __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgIsBuffer(GLuint); /*proto*/
static GLboolean __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgIsEnabled(GLenum); /*proto*/
static GLboolean __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgIsEnabled(GLenum); /*proto*/
static GLboolean __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgIsFramebuffer(GLuint); /*proto*/
static GLboolean __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgIsFramebuffer(GLuint); /*proto*/
static GLboolean __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgIsProgram(GLuint); /*proto*/
static GLboolean __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgIsProgram(GLuint); /*proto*/
static GLboolean __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgIsRenderbuffer(GLuint); /*proto*/
static GLboolean __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgIsRenderbuffer(GLuint); /*proto*/
static GLboolean __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgIsShader(GLuint); /*proto*/
static GLboolean __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgIsShader(GLuint); /*proto*/
static GLboolean __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgIsTexture(GLuint); /*proto*/
static GLboolean __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgIsTexture(GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgLineWidth(GLfloat); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgLineWidth(GLfloat); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgLinkProgram(GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgLinkProgram(GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgPixelStorei(GLenum, GLint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgPixelStorei(GLenum, GLint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgPolygonOffset(GLfloat, GLfloat); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgPolygonOffset(GLfloat, GLfloat); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgReadPixels(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgReadPixels(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgRenderbufferStorage(GLenum, GLenum, GLsizei, GLsizei); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgRenderbufferStorage(GLenum, GLenum, GLsizei, GLsizei); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgSampleCoverage(GLclampf, GLboolean); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgSampleCoverage(GLclampf, GLboolean); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgScissor(GLint, GLint, GLsizei, GLsizei); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgScissor(GLint, GLint, GLsizei, GLsizei); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgShaderSource(GLuint, GLsizei, GLchar const *const *, GLint const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgShaderSource(GLuint, GLsizei, GLchar const *const *, GLint const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgStencilFunc(GLenum, GLint, GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgStencilFunc(GLenum, GLint, GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgStencilFuncSeparate(GLenum, GLenum, GLint, GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgStencilFuncSeparate(GLenum, GLenum, GLint, GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgStencilMask(GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgStencilMask(GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgStencilMaskSeparate(GLenum, GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgStencilMaskSeparate(GLenum, GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgStencilOp(GLenum, GLenum, GLenum); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgStencilOp(GLenum, GLenum, GLenum); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgStencilOpSeparate(GLenum, GLenum, GLenum, GLenum); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgStencilOpSeparate(GLenum, GLenum, GLenum, GLenum); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgTexImage2D(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, GLvoid const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgTexImage2D(GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, GLvoid const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgTexParameterf(GLenum, GLenum, GLfloat); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgTexParameterf(GLenum, GLenum, GLfloat); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgTexParameteri(GLenum, GLenum, GLint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgTexParameteri(GLenum, GLenum, GLint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgTexSubImage2D(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgTexSubImage2D(GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform1f(GLint, GLfloat); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform1f(GLint, GLfloat); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform1fv(GLint, GLsizei, GLfloat const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform1fv(GLint, GLsizei, GLfloat const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform1i(GLint, GLint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform1i(GLint, GLint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform1iv(GLint, GLsizei, GLint const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform1iv(GLint, GLsizei, GLint const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform2f(GLint, GLfloat, GLfloat); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform2f(GLint, GLfloat, GLfloat); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform2fv(GLint, GLsizei, GLfloat const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform2fv(GLint, GLsizei, GLfloat const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform2i(GLint, GLint, GLint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform2i(GLint, GLint, GLint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform2iv(GLint, GLsizei, GLint const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform2iv(GLint, GLsizei, GLint const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform3f(GLint, GLfloat, GLfloat, GLfloat); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform3f(GLint, GLfloat, GLfloat, GLfloat); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform3fv(GLint, GLsizei, GLfloat const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform3fv(GLint, GLsizei, GLfloat const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform3i(GLint, GLint, GLint, GLint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform3i(GLint, GLint, GLint, GLint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform3iv(GLint, GLsizei, GLint const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform3iv(GLint, GLsizei, GLint const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform4f(GLint, GLfloat, GLfloat, GLfloat, GLfloat); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform4f(GLint, GLfloat, GLfloat, GLfloat, GLfloat); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform4fv(GLint, GLsizei, GLfloat const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform4fv(GLint, GLsizei, GLfloat const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform4i(GLint, GLint, GLint, GLint, GLint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform4i(GLint, GLint, GLint, GLint, GLint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform4iv(GLint, GLsizei, GLint const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform4iv(GLint, GLsizei, GLint const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniformMatrix4fv(GLint, GLsizei, GLboolean, GLfloat const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniformMatrix4fv(GLint, GLsizei, GLboolean, GLfloat const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUseProgram(GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUseProgram(GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgValidateProgram(GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgValidateProgram(GLuint); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgVertexAttrib1f(GLuint, GLfloat); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgVertexAttrib1f(GLuint, GLfloat); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgVertexAttrib2f(GLuint, GLfloat, GLfloat); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgVertexAttrib2f(GLuint, GLfloat, GLfloat); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgVertexAttrib3f(GLuint, GLfloat, GLfloat, GLfloat); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgVertexAttrib3f(GLuint, GLfloat, GLfloat, GLfloat); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgVertexAttrib4f(GLuint, GLfloat, GLfloat, GLfloat, GLfloat); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgVertexAttrib4f(GLuint, GLfloat, GLfloat, GLfloat, GLfloat); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgVertexAttribPointer(GLuint, GLint, GLenum, GLboolean, GLsizei, GLvoid const *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgVertexAttribPointer(GLuint, GLint, GLenum, GLboolean, GLsizei, GLvoid *); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgViewport(GLint, GLint, GLsizei, GLsizei); /*proto*/
static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgViewport(GLint, GLint, GLsizei, GLsizei); /*proto*/
/* #### Code section: typeinfo ### */
/* #### Code section: before_global_var ### */
#define __Pyx_MODULE_NAME "kivy.graphics.cgl_backend.cgl_debug"
extern int __pyx_module_is_main_kivy__graphics__cgl_backend__cgl_debug;
int __pyx_module_is_main_kivy__graphics__cgl_backend__cgl_debug = 0;

/* Implementation of "kivy.graphics.cgl_backend.cgl_debug" */
/* #### Code section: global_var ### */
static PyObject *__pyx_builtin_print;
/* #### Code section: string_decls ### */
/* #### Code section: decls ### */
static PyObject *__pyx_pf_4kivy_8graphics_11cgl_backend_9cgl_debug_is_backend_supported(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_11cgl_backend_9cgl_debug_2gl_debug_print(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_args); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_11cgl_backend_9cgl_debug_4gl_check_error(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
static PyObject *__pyx_pf_4kivy_8graphics_11cgl_backend_9cgl_debug_6init_backend_debug(CYTHON_UNUSED PyObject *__pyx_self); /* proto */
/* #### Code section: late_includes ### */
/* #### Code section: module_state ### */
/* SmallCodeConfig */
#ifndef CYTHON_SMALL_CODE
#if defined(__clang__)
    #define CYTHON_SMALL_CODE
#elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
    #define CYTHON_SMALL_CODE __attribute__((cold))
#else
    #define CYTHON_SMALL_CODE
#endif
#endif

typedef struct {
  PyObject *__pyx_d;
  PyObject *__pyx_b;
  PyObject *__pyx_cython_runtime;
  PyObject *__pyx_empty_tuple;
  PyObject *__pyx_empty_bytes;
  PyObject *__pyx_empty_unicode;
  __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_items;
  __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_values;
  PyObject *__pyx_codeobj_tab[4];
  PyObject *__pyx_string_tab[237];
/* #### Code section: module_state_contents ### */
/* CommonTypesMetaclass.module_state_decls */
PyTypeObject *__pyx_CommonTypesMetaclassType;

/* CachedMethodType.module_state_decls */
#if CYTHON_COMPILING_IN_LIMITED_API
PyObject *__Pyx_CachedMethodType;
#endif

/* CythonFunctionShared.module_state_decls */
PyTypeObject *__pyx_CyFunctionType;

/* CodeObjectCache.module_state_decls */
struct __Pyx_CodeObjectCache __pyx_code_cache;

/* #### Code section: module_state_end ### */
} __pyx_mstatetype;

#if CYTHON_USE_MODULE_STATE
#ifdef __cplusplus
namespace {
extern struct PyModuleDef __pyx_moduledef;
} /* anonymous namespace */
#else
static struct PyModuleDef __pyx_moduledef;
#endif

#define __pyx_mstate_global (__Pyx_PyModule_GetState(__Pyx_State_FindModule(&__pyx_moduledef)))

#define __pyx_m (__Pyx_State_FindModule(&__pyx_moduledef))
#else
static __pyx_mstatetype __pyx_mstate_global_static =
#ifdef __cplusplus
    {};
#else
    {0};
#endif
static __pyx_mstatetype * const __pyx_mstate_global = &__pyx_mstate_global_static;
#endif
/* #### Code section: constant_name_defines ### */
#define __pyx_kp_u_ __pyx_string_tab[0]
#define __pyx_kp_u_GL_glActiveTexture_texture __pyx_string_tab[1]
#define __pyx_kp_u_GL_glAttachShader_program __pyx_string_tab[2]
#define __pyx_kp_u_GL_glBindAttribLocation_program __pyx_string_tab[3]
#define __pyx_kp_u_GL_glBindBuffer_target __pyx_string_tab[4]
#define __pyx_kp_u_GL_glBindFramebuffer_target __pyx_string_tab[5]
#define __pyx_kp_u_GL_glBindRenderbuffer_target __pyx_string_tab[6]
#define __pyx_kp_u_GL_glBindTexture_target __pyx_string_tab[7]
#define __pyx_kp_u_GL_glBlendColor_red __pyx_string_tab[8]
#define __pyx_kp_u_GL_glBlendEquationSeparate_modeR __pyx_string_tab[9]
#define __pyx_kp_u_GL_glBlendEquation_mode __pyx_string_tab[10]
#define __pyx_kp_u_GL_glBlendFuncSeparate_srcRGB __pyx_string_tab[11]
#define __pyx_kp_u_GL_glBlendFunc_sfactor __pyx_string_tab[12]
#define __pyx_kp_u_GL_glBufferData_target __pyx_string_tab[13]
#define __pyx_kp_u_GL_glBufferSubData_target __pyx_string_tab[14]
#define __pyx_kp_u_GL_glCheckFramebufferStatus_targ __pyx_string_tab[15]
#define __pyx_kp_u_GL_glClearColor_red __pyx_string_tab[16]
#define __pyx_kp_u_GL_glClearStencil_s __pyx_string_tab[17]
#define __pyx_kp_u_GL_glClear_mask __pyx_string_tab[18]
#define __pyx_kp_u_GL_glColorMask_red __pyx_string_tab[19]
#define __pyx_kp_u_GL_glCompileShader_shader __pyx_string_tab[20]
#define __pyx_kp_u_GL_glCompressedTexImage2D_target __pyx_string_tab[21]
#define __pyx_kp_u_GL_glCompressedTexSubImage2D_tar __pyx_string_tab[22]
#define __pyx_kp_u_GL_glCopyTexImage2D_target __pyx_string_tab[23]
#define __pyx_kp_u_GL_glCopyTexSubImage2D_target __pyx_string_tab[24]
#define __pyx_kp_u_GL_glCreateProgram __pyx_string_tab[25]
#define __pyx_kp_u_GL_glCreateShader_type __pyx_string_tab[26]
#define __pyx_kp_u_GL_glCullFace_mode __pyx_string_tab[27]
#define __pyx_kp_u_GL_glDeleteBuffers_n __pyx_string_tab[28]
#define __pyx_kp_u_GL_glDeleteFramebuffers_n __pyx_string_tab[29]
#define __pyx_kp_u_GL_glDeleteProgram_program __pyx_string_tab[30]
#define __pyx_kp_u_GL_glDeleteRenderbuffers_n __pyx_string_tab[31]
#define __pyx_kp_u_GL_glDeleteShader_shader __pyx_string_tab[32]
#define __pyx_kp_u_GL_glDeleteTextures_n __pyx_string_tab[33]
#define __pyx_kp_u_GL_glDepthFunc_func __pyx_string_tab[34]
#define __pyx_kp_u_GL_glDepthMask_flag __pyx_string_tab[35]
#define __pyx_kp_u_GL_glDetachShader_program __pyx_string_tab[36]
#define __pyx_kp_u_GL_glDisableVertexAttribArray_in __pyx_string_tab[37]
#define __pyx_kp_u_GL_glDisable_cap __pyx_string_tab[38]
#define __pyx_kp_u_GL_glDrawArrays_mode __pyx_string_tab[39]
#define __pyx_kp_u_GL_glDrawElements_mode __pyx_string_tab[40]
#define __pyx_kp_u_GL_glEnableVertexAttribArray_ind __pyx_string_tab[41]
#define __pyx_kp_u_GL_glEnable_cap __pyx_string_tab[42]
#define __pyx_kp_u_GL_glFinish __pyx_string_tab[43]
#define __pyx_kp_u_GL_glFlush __pyx_string_tab[44]
#define __pyx_kp_u_GL_glFramebufferRenderbuffer_tar __pyx_string_tab[45]
#define __pyx_kp_u_GL_glFramebufferTexture2D_target __pyx_string_tab[46]
#define __pyx_kp_u_GL_glFrontFace_mode __pyx_string_tab[47]
#define __pyx_kp_u_GL_glGenBuffers_n __pyx_string_tab[48]
#define __pyx_kp_u_GL_glGenFramebuffers_n __pyx_string_tab[49]
#define __pyx_kp_u_GL_glGenRenderbuffers_n __pyx_string_tab[50]
#define __pyx_kp_u_GL_glGenTextures_n __pyx_string_tab[51]
#define __pyx_kp_u_GL_glGenerateMipmap_target __pyx_string_tab[52]
#define __pyx_kp_u_GL_glGetActiveAttrib_program __pyx_string_tab[53]
#define __pyx_kp_u_GL_glGetActiveUniform_program __pyx_string_tab[54]
#define __pyx_kp_u_GL_glGetAttachedShaders_program __pyx_string_tab[55]
#define __pyx_kp_u_GL_glGetAttribLocation_program __pyx_string_tab[56]
#define __pyx_kp_u_GL_glGetBooleanv_pname __pyx_string_tab[57]
#define __pyx_kp_u_GL_glGetBufferParameteriv_target __pyx_string_tab[58]
#define __pyx_kp_u_GL_glGetFloatv_pname __pyx_string_tab[59]
#define __pyx_kp_u_GL_glGetFramebufferAttachmentPar __pyx_string_tab[60]
#define __pyx_kp_u_GL_glGetIntegerv_pname __pyx_string_tab[61]
#define __pyx_kp_u_GL_glGetProgramInfoLog_program __pyx_string_tab[62]
#define __pyx_kp_u_GL_glGetProgramiv_program __pyx_string_tab[63]
#define __pyx_kp_u_GL_glGetRenderbufferParameteriv __pyx_string_tab[64]
#define __pyx_kp_u_GL_glGetShaderInfoLog_shader __pyx_string_tab[65]
#define __pyx_kp_u_GL_glGetShaderSource_shader __pyx_string_tab[66]
#define __pyx_kp_u_GL_glGetShaderiv_shader __pyx_string_tab[67]
#define __pyx_kp_u_GL_glGetString_name __pyx_string_tab[68]
#define __pyx_kp_u_GL_glGetTexParameterfv_target __pyx_string_tab[69]
#define __pyx_kp_u_GL_glGetTexParameteriv_target __pyx_string_tab[70]
#define __pyx_kp_u_GL_glGetUniformLocation_program __pyx_string_tab[71]
#define __pyx_kp_u_GL_glGetUniformfv_program __pyx_string_tab[72]
#define __pyx_kp_u_GL_glGetUniformiv_program __pyx_string_tab[73]
#define __pyx_kp_u_GL_glGetVertexAttribfv_index __pyx_string_tab[74]
#define __pyx_kp_u_GL_glGetVertexAttribiv_index __pyx_string_tab[75]
#define __pyx_kp_u_GL_glHint_target __pyx_string_tab[76]
#define __pyx_kp_u_GL_glIsBuffer_buffer __pyx_string_tab[77]
#define __pyx_kp_u_GL_glIsEnabled_cap __pyx_string_tab[78]
#define __pyx_kp_u_GL_glIsFramebuffer_framebuffer __pyx_string_tab[79]
#define __pyx_kp_u_GL_glIsProgram_program __pyx_string_tab[80]
#define __pyx_kp_u_GL_glIsRenderbuffer_renderbuffer __pyx_string_tab[81]
#define __pyx_kp_u_GL_glIsShader_shader __pyx_string_tab[82]
#define __pyx_kp_u_GL_glIsTexture_texture __pyx_string_tab[83]
#define __pyx_kp_u_GL_glLineWidth_width __pyx_string_tab[84]
#define __pyx_kp_u_GL_glLinkProgram_program __pyx_string_tab[85]
#define __pyx_kp_u_GL_glPixelStorei_pname __pyx_string_tab[86]
#define __pyx_kp_u_GL_glPolygonOffset_factor __pyx_string_tab[87]
#define __pyx_kp_u_GL_glReadPixels_x __pyx_string_tab[88]
#define __pyx_kp_u_GL_glRenderbufferStorage_target __pyx_string_tab[89]
#define __pyx_kp_u_GL_glSampleCoverage_value __pyx_string_tab[90]
#define __pyx_kp_u_GL_glScissor_x __pyx_string_tab[91]
#define __pyx_kp_u_GL_glShaderSource_shader __pyx_string_tab[92]
#define __pyx_kp_u_GL_glStencilFuncSeparate_face __pyx_string_tab[93]
#define __pyx_kp_u_GL_glStencilFunc_func __pyx_string_tab[94]
#define __pyx_kp_u_GL_glStencilMaskSeparate_face __pyx_string_tab[95]
#define __pyx_kp_u_GL_glStencilMask_mask __pyx_string_tab[96]
#define __pyx_kp_u_GL_glStencilOpSeparate_face __pyx_string_tab[97]
#define __pyx_kp_u_GL_glStencilOp_fail __pyx_string_tab[98]
#define __pyx_kp_u_GL_glTexImage2D_target __pyx_string_tab[99]
#define __pyx_kp_u_GL_glTexParameterf_target __pyx_string_tab[100]
#define __pyx_kp_u_GL_glTexParameteri_target __pyx_string_tab[101]
#define __pyx_kp_u_GL_glTexSubImage2D_target __pyx_string_tab[102]
#define __pyx_kp_u_GL_glUniform1f_location __pyx_string_tab[103]
#define __pyx_kp_u_GL_glUniform1fv_location __pyx_string_tab[104]
#define __pyx_kp_u_GL_glUniform1i_location __pyx_string_tab[105]
#define __pyx_kp_u_GL_glUniform1iv_location __pyx_string_tab[106]
#define __pyx_kp_u_GL_glUniform2f_location __pyx_string_tab[107]
#define __pyx_kp_u_GL_glUniform2fv_location __pyx_string_tab[108]
#define __pyx_kp_u_GL_glUniform2i_location __pyx_string_tab[109]
#define __pyx_kp_u_GL_glUniform2iv_location __pyx_string_tab[110]
#define __pyx_kp_u_GL_glUniform3f_location __pyx_string_tab[111]
#define __pyx_kp_u_GL_glUniform3fv_location __pyx_string_tab[112]
#define __pyx_kp_u_GL_glUniform3i_location __pyx_string_tab[113]
#define __pyx_kp_u_GL_glUniform3iv_location __pyx_string_tab[114]
#define __pyx_kp_u_GL_glUniform4f_location __pyx_string_tab[115]
#define __pyx_kp_u_GL_glUniform4fv_location __pyx_string_tab[116]
#define __pyx_kp_u_GL_glUniform4i_location __pyx_string_tab[117]
#define __pyx_kp_u_GL_glUniform4iv_location __pyx_string_tab[118]
#define __pyx_kp_u_GL_glUniformMatrix4fv_location __pyx_string_tab[119]
#define __pyx_kp_u_GL_glUseProgram_program __pyx_string_tab[120]
#define __pyx_kp_u_GL_glValidateProgram_program __pyx_string_tab[121]
#define __pyx_kp_u_GL_glVertexAttrib1f_indx __pyx_string_tab[122]
#define __pyx_kp_u_GL_glVertexAttrib2f_indx __pyx_string_tab[123]
#define __pyx_kp_u_GL_glVertexAttrib3f_indx __pyx_string_tab[124]
#define __pyx_kp_u_GL_glVertexAttrib4f_indx __pyx_string_tab[125]
#define __pyx_kp_u_GL_glVertexAttribPointer_indx __pyx_string_tab[126]
#define __pyx_kp_u_GL_glViewport_x __pyx_string_tab[127]
#define __pyx_kp_u_OpenGL_Error __pyx_string_tab[128]
#define __pyx_kp_u__2 __pyx_string_tab[129]
#define __pyx_kp_u__3 __pyx_string_tab[130]
#define __pyx_kp_u__4 __pyx_string_tab[131]
#define __pyx_kp_u__5 __pyx_string_tab[132]
#define __pyx_kp_u_alpha __pyx_string_tab[133]
#define __pyx_kp_u_attachment __pyx_string_tab[134]
#define __pyx_kp_u_blue __pyx_string_tab[135]
#define __pyx_kp_u_border __pyx_string_tab[136]
#define __pyx_kp_u_buffer __pyx_string_tab[137]
#define __pyx_kp_u_buffers __pyx_string_tab[138]
#define __pyx_kp_u_bufsize __pyx_string_tab[139]
#define __pyx_kp_u_count __pyx_string_tab[140]
#define __pyx_kp_u_count_2 __pyx_string_tab[141]
#define __pyx_kp_u_data __pyx_string_tab[142]
#define __pyx_kp_u_dfactor __pyx_string_tab[143]
#define __pyx_kp_u_dstAlpha __pyx_string_tab[144]
#define __pyx_kp_u_dstRGB __pyx_string_tab[145]
#define __pyx_kp_u_fail __pyx_string_tab[146]
#define __pyx_kp_u_first __pyx_string_tab[147]
#define __pyx_kp_u_format __pyx_string_tab[148]
#define __pyx_kp_u_framebuffer __pyx_string_tab[149]
#define __pyx_kp_u_framebuffers __pyx_string_tab[150]
#define __pyx_kp_u_func __pyx_string_tab[151]
#define __pyx_kp_u_green __pyx_string_tab[152]
#define __pyx_kp_u_height __pyx_string_tab[153]
#define __pyx_kp_u_imageSize __pyx_string_tab[154]
#define __pyx_kp_u_index __pyx_string_tab[155]
#define __pyx_kp_u_indices __pyx_string_tab[156]
#define __pyx_kp_u_infolog __pyx_string_tab[157]
#define __pyx_kp_u_internalformat __pyx_string_tab[158]
#define __pyx_kp_u_invert __pyx_string_tab[159]
#define __pyx_kp_u_kivy_graphics_cgl_backend_cgl_de_2 __pyx_string_tab[160]
#define __pyx_kp_u_length __pyx_string_tab[161]
#define __pyx_kp_u_level __pyx_string_tab[162]
#define __pyx_kp_u_location __pyx_string_tab[163]
#define __pyx_kp_u_mask __pyx_string_tab[164]
#define __pyx_kp_u_maxcount __pyx_string_tab[165]
#define __pyx_kp_u_mode __pyx_string_tab[166]
#define __pyx_kp_u_modeAlpha __pyx_string_tab[167]
#define __pyx_kp_u_name __pyx_string_tab[168]
#define __pyx_kp_u_normalized __pyx_string_tab[169]
#define __pyx_kp_u_offset __pyx_string_tab[170]
#define __pyx_kp_u_param __pyx_string_tab[171]
#define __pyx_kp_u_params __pyx_string_tab[172]
#define __pyx_kp_u_pixels __pyx_string_tab[173]
#define __pyx_kp_u_pname __pyx_string_tab[174]
#define __pyx_kp_u_ptr __pyx_string_tab[175]
#define __pyx_kp_u_ref __pyx_string_tab[176]
#define __pyx_kp_u_renderbuffer __pyx_string_tab[177]
#define __pyx_kp_u_renderbuffers __pyx_string_tab[178]
#define __pyx_kp_u_renderbuffertarget __pyx_string_tab[179]
#define __pyx_kp_u_shader __pyx_string_tab[180]
#define __pyx_kp_u_shaders __pyx_string_tab[181]
#define __pyx_kp_u_size __pyx_string_tab[182]
#define __pyx_kp_u_size_2 __pyx_string_tab[183]
#define __pyx_kp_u_source __pyx_string_tab[184]
#define __pyx_kp_u_srcAlpha __pyx_string_tab[185]
#define __pyx_kp_u_stride __pyx_string_tab[186]
#define __pyx_kp_u_string __pyx_string_tab[187]
#define __pyx_kp_u_textarget __pyx_string_tab[188]
#define __pyx_kp_u_texture __pyx_string_tab[189]
#define __pyx_kp_u_textures __pyx_string_tab[190]
#define __pyx_kp_u_transpose __pyx_string_tab[191]
#define __pyx_kp_u_type __pyx_string_tab[192]
#define __pyx_kp_u_type_2 __pyx_string_tab[193]
#define __pyx_kp_u_units __pyx_string_tab[194]
#define __pyx_kp_u_usage __pyx_string_tab[195]
#define __pyx_kp_u_v __pyx_string_tab[196]
#define __pyx_kp_u_value __pyx_string_tab[197]
#define __pyx_kp_u_w __pyx_string_tab[198]
#define __pyx_kp_u_width __pyx_string_tab[199]
#define __pyx_kp_u_x_2 __pyx_string_tab[200]
#define __pyx_kp_u_xoffset __pyx_string_tab[201]
#define __pyx_kp_u_y __pyx_string_tab[202]
#define __pyx_kp_u_yoffset __pyx_string_tab[203]
#define __pyx_kp_u_z __pyx_string_tab[204]
#define __pyx_kp_u_zfail __pyx_string_tab[205]
#define __pyx_kp_u_zpass __pyx_string_tab[206]
#define __pyx_n_u_Pyx_PyDict_NextRef __pyx_string_tab[207]
#define __pyx_n_u_args __pyx_string_tab[208]
#define __pyx_n_u_asyncio_coroutines __pyx_string_tab[209]
#define __pyx_n_u_cline_in_traceback __pyx_string_tab[210]
#define __pyx_n_u_d __pyx_string_tab[211]
#define __pyx_n_u_func_2 __pyx_string_tab[212]
#define __pyx_n_u_gl_check_error __pyx_string_tab[213]
#define __pyx_n_u_gl_debug_print __pyx_string_tab[214]
#define __pyx_n_u_init_backend_debug __pyx_string_tab[215]
#define __pyx_n_u_is_backend_supported __pyx_string_tab[216]
#define __pyx_n_u_is_coroutine __pyx_string_tab[217]
#define __pyx_n_u_items __pyx_string_tab[218]
#define __pyx_n_u_kivy_graphics_cgl_backend_cgl_de __pyx_string_tab[219]
#define __pyx_n_u_main __pyx_string_tab[220]
#define __pyx_n_u_module __pyx_string_tab[221]
#define __pyx_n_u_name_2 __pyx_string_tab[222]
#define __pyx_n_u_print __pyx_string_tab[223]
#define __pyx_n_u_qualname __pyx_string_tab[224]
#define __pyx_n_u_ret __pyx_string_tab[225]
#define __pyx_n_u_set_name __pyx_string_tab[226]
#define __pyx_n_u_setdefault __pyx_string_tab[227]
#define __pyx_n_u_test __pyx_string_tab[228]
#define __pyx_n_u_values __pyx_string_tab[229]
#define __pyx_n_u_x __pyx_string_tab[230]
#define __pyx_kp_b_iso88591_1 __pyx_string_tab[231]
#define __pyx_kp_b_iso88591_E_3as_e1 __pyx_string_tab[232]
#define __pyx_kp_b_iso88591_Q_Q_1_e1 __pyx_string_tab[233]
#define __pyx_kp_b_iso88591_q_Q_Q_1_a_Q__A_A_Q_Q_q__A_q_A_q __pyx_string_tab[234]
#define __pyx_kp_b_pyx_t_4kivy_8graphics_3cgl_GLE __pyx_string_tab[235]
#define __pyx_kp_b_pyx_t_4kivy_8graphics_3cgl_GLE_2 __pyx_string_tab[236]
/* #### Code section: module_state_clear ### */
#if CYTHON_USE_MODULE_STATE
static CYTHON_SMALL_CODE int __pyx_m_clear(PyObject *m) {
  __pyx_mstatetype *clear_module_state = __Pyx_PyModule_GetState(m);
  if (!clear_module_state) return 0;
  Py_CLEAR(clear_module_state->__pyx_d);
  Py_CLEAR(clear_module_state->__pyx_b);
  Py_CLEAR(clear_module_state->__pyx_cython_runtime);
  Py_CLEAR(clear_module_state->__pyx_empty_tuple);
  Py_CLEAR(clear_module_state->__pyx_empty_bytes);
  Py_CLEAR(clear_module_state->__pyx_empty_unicode);
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  __Pyx_State_RemoveModule(NULL);
  #endif
  for (int i=0; i<4; ++i) { Py_CLEAR(clear_module_state->__pyx_codeobj_tab[i]); }
  for (int i=0; i<237; ++i) { Py_CLEAR(clear_module_state->__pyx_string_tab[i]); }
/* #### Code section: module_state_clear_contents ### */
/* CommonTypesMetaclass.module_state_clear */
Py_CLEAR(clear_module_state->__pyx_CommonTypesMetaclassType);

/* CythonFunctionShared.module_state_clear */
Py_CLEAR(clear_module_state->__pyx_CyFunctionType);

/* #### Code section: module_state_clear_end ### */
return 0;
}
#endif
/* #### Code section: module_state_traverse ### */
#if CYTHON_USE_MODULE_STATE
static CYTHON_SMALL_CODE int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
  __pyx_mstatetype *traverse_module_state = __Pyx_PyModule_GetState(m);
  if (!traverse_module_state) return 0;
  Py_VISIT(traverse_module_state->__pyx_d);
  Py_VISIT(traverse_module_state->__pyx_b);
  Py_VISIT(traverse_module_state->__pyx_cython_runtime);
  __Pyx_VISIT_CONST(traverse_module_state->__pyx_empty_tuple);
  __Pyx_VISIT_CONST(traverse_module_state->__pyx_empty_bytes);
  __Pyx_VISIT_CONST(traverse_module_state->__pyx_empty_unicode);
  for (int i=0; i<4; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_codeobj_tab[i]); }
  for (int i=0; i<237; ++i) { __Pyx_VISIT_CONST(traverse_module_state->__pyx_string_tab[i]); }
/* #### Code section: module_state_traverse_contents ### */
/* CommonTypesMetaclass.module_state_traverse */
Py_VISIT(traverse_module_state->__pyx_CommonTypesMetaclassType);

/* CythonFunctionShared.module_state_traverse */
Py_VISIT(traverse_module_state->__pyx_CyFunctionType);

/* #### Code section: module_state_traverse_end ### */
return 0;
}
#endif
/* #### Code section: module_code ### */

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":11
 * 
 * 
 * cpdef is_backend_supported():             # <<<<<<<<<<<<<<
 *     return True
 * 
*/

static PyObject *__pyx_pw_4kivy_8graphics_11cgl_backend_9cgl_debug_1is_backend_supported(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
static PyObject *__pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_is_backend_supported(CYTHON_UNUSED int __pyx_skip_dispatch) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_backend_supported", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":12
 * 
 * cpdef is_backend_supported():
 *     return True             # <<<<<<<<<<<<<<
 * 
 * def gl_debug_print(*args):
*/
  __Pyx_XDECREF(__pyx_r);
  __Pyx_INCREF(Py_True);
  __pyx_r = Py_True;
  goto __pyx_L0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":11
 * 
 * 
 * cpdef is_backend_supported():             # <<<<<<<<<<<<<<
 *     return True
 * 
*/

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_11cgl_backend_9cgl_debug_1is_backend_supported(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_11cgl_backend_9cgl_debug_is_backend_supported, "is_backend_supported()");
static PyMethodDef __pyx_mdef_4kivy_8graphics_11cgl_backend_9cgl_debug_1is_backend_supported = {"is_backend_supported", (PyCFunction)__pyx_pw_4kivy_8graphics_11cgl_backend_9cgl_debug_1is_backend_supported, METH_NOARGS, __pyx_doc_4kivy_8graphics_11cgl_backend_9cgl_debug_is_backend_supported};
static PyObject *__pyx_pw_4kivy_8graphics_11cgl_backend_9cgl_debug_1is_backend_supported(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("is_backend_supported (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4kivy_8graphics_11cgl_backend_9cgl_debug_is_backend_supported(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_11cgl_backend_9cgl_debug_is_backend_supported(CYTHON_UNUSED PyObject *__pyx_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("is_backend_supported", 0);
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_is_backend_supported(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 11, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.is_backend_supported", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":14
 *     return True
 * 
 * def gl_debug_print(*args):             # <<<<<<<<<<<<<<
 *     print("".join([str(x) for x in args]))
 * 
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_11cgl_backend_9cgl_debug_3gl_debug_print(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_11cgl_backend_9cgl_debug_2gl_debug_print, "gl_debug_print(*args)");
static PyMethodDef __pyx_mdef_4kivy_8graphics_11cgl_backend_9cgl_debug_3gl_debug_print = {"gl_debug_print", (PyCFunction)(void(*)(void))(PyCFunctionWithKeywords)__pyx_pw_4kivy_8graphics_11cgl_backend_9cgl_debug_3gl_debug_print, METH_VARARGS|METH_KEYWORDS, __pyx_doc_4kivy_8graphics_11cgl_backend_9cgl_debug_2gl_debug_print};
static PyObject *__pyx_pw_4kivy_8graphics_11cgl_backend_9cgl_debug_3gl_debug_print(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyObject *__pyx_v_args = 0;
  CYTHON_UNUSED Py_ssize_t __pyx_nargs;
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("gl_debug_print (wrapper)", 0);
  #if CYTHON_ASSUME_SAFE_SIZE
  __pyx_nargs = PyTuple_GET_SIZE(__pyx_args);
  #else
  __pyx_nargs = PyTuple_Size(__pyx_args); if (unlikely(__pyx_nargs < 0)) return NULL;
  #endif
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  const Py_ssize_t __pyx_kwds_len = unlikely(__pyx_kwds) ? __Pyx_NumKwargs_VARARGS(__pyx_kwds) : 0;
  if (unlikely(__pyx_kwds_len < 0)) return NULL;
  if (unlikely(__pyx_kwds_len > 0)) {__Pyx_RejectKeywords("gl_debug_print", __pyx_kwds); return NULL;}
  __Pyx_INCREF(__pyx_args);
  __pyx_v_args = __pyx_args;
  __pyx_r = __pyx_pf_4kivy_8graphics_11cgl_backend_9cgl_debug_2gl_debug_print(__pyx_self, __pyx_v_args);

  /* function exit code */
  __Pyx_DECREF(__pyx_v_args);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_11cgl_backend_9cgl_debug_2gl_debug_print(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_args) {
  PyObject *__pyx_7genexpr__pyx_v_x = NULL;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  Py_ssize_t __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("gl_debug_print", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":15
 * 
 * def gl_debug_print(*args):
 *     print("".join([str(x) for x in args]))             # <<<<<<<<<<<<<<
 * 
 * def gl_check_error():
*/
  __pyx_t_2 = NULL;
  { /* enter inner scope */
    __pyx_t_3 = PyList_New(0); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 15, __pyx_L5_error)
    __Pyx_GOTREF(__pyx_t_3);
    __pyx_t_4 = __pyx_v_args; __Pyx_INCREF(__pyx_t_4);
    __pyx_t_5 = 0;
    for (;;) {
      {
        Py_ssize_t __pyx_temp = __Pyx_PyTuple_GET_SIZE(__pyx_t_4);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely((__pyx_temp < 0))) __PYX_ERR(0, 15, __pyx_L5_error)
        #endif
        if (__pyx_t_5 >= __pyx_temp) break;
      }
      #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
      __pyx_t_6 = __Pyx_NewRef(PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_5));
      #else
      __pyx_t_6 = __Pyx_PySequence_ITEM(__pyx_t_4, __pyx_t_5);
      #endif
      ++__pyx_t_5;
      if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 15, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_XDECREF_SET(__pyx_7genexpr__pyx_v_x, __pyx_t_6);
      __pyx_t_6 = 0;
      __pyx_t_6 = __Pyx_PyObject_Unicode(__pyx_7genexpr__pyx_v_x); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 15, __pyx_L5_error)
      __Pyx_GOTREF(__pyx_t_6);
      if (unlikely(__Pyx_ListComp_Append(__pyx_t_3, (PyObject*)__pyx_t_6))) __PYX_ERR(0, 15, __pyx_L5_error)
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    }
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_XDECREF(__pyx_7genexpr__pyx_v_x); __pyx_7genexpr__pyx_v_x = 0;
    goto __pyx_L9_exit_scope;
    __pyx_L5_error:;
    __Pyx_XDECREF(__pyx_7genexpr__pyx_v_x); __pyx_7genexpr__pyx_v_x = 0;
    goto __pyx_L1_error;
    __pyx_L9_exit_scope:;
  } /* exit inner scope */
  __pyx_t_4 = PyUnicode_Join(__pyx_mstate_global->__pyx_kp_u_, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 15, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_t_7 = 1;
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_t_4};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_print, __pyx_callargs+__pyx_t_7, (2-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 15, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":14
 *     return True
 * 
 * def gl_debug_print(*args):             # <<<<<<<<<<<<<<
 *     print("".join([str(x) for x in args]))
 * 
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gl_debug_print", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF(__pyx_7genexpr__pyx_v_x);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":17
 *     print("".join([str(x) for x in args]))
 * 
 * def gl_check_error():             # <<<<<<<<<<<<<<
 *   ret = cgl_native.glGetError()
 *   if ret:
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_11cgl_backend_9cgl_debug_5gl_check_error(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_11cgl_backend_9cgl_debug_4gl_check_error, "gl_check_error()");
static PyMethodDef __pyx_mdef_4kivy_8graphics_11cgl_backend_9cgl_debug_5gl_check_error = {"gl_check_error", (PyCFunction)__pyx_pw_4kivy_8graphics_11cgl_backend_9cgl_debug_5gl_check_error, METH_NOARGS, __pyx_doc_4kivy_8graphics_11cgl_backend_9cgl_debug_4gl_check_error};
static PyObject *__pyx_pw_4kivy_8graphics_11cgl_backend_9cgl_debug_5gl_check_error(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("gl_check_error (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4kivy_8graphics_11cgl_backend_9cgl_debug_4gl_check_error(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_11cgl_backend_9cgl_debug_4gl_check_error(CYTHON_UNUSED PyObject *__pyx_self) {
  GLenum __pyx_v_ret;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  GLenum __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7[4];
  PyObject *__pyx_t_8 = NULL;
  size_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("gl_check_error", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":18
 * 
 * def gl_check_error():
 *   ret = cgl_native.glGetError()             # <<<<<<<<<<<<<<
 *   if ret:
 *       print("OpenGL Error %d / %x" % (ret, ret))
*/
  __pyx_t_1 = __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glGetError(); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 18, __pyx_L1_error)
  __pyx_v_ret = __pyx_t_1;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":19
 * def gl_check_error():
 *   ret = cgl_native.glGetError()
 *   if ret:             # <<<<<<<<<<<<<<
 *       print("OpenGL Error %d / %x" % (ret, ret))
 * 
*/
  __pyx_t_2 = (__pyx_v_ret != 0);
  if (__pyx_t_2) {

    /* "kivy/graphics/cgl_backend/cgl_debug.pyx":20
 *   ret = cgl_native.glGetError()
 *   if ret:
 *       print("OpenGL Error %d / %x" % (ret, ret))             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgActiveTexture (GLenum texture) nogil:
*/
    __pyx_t_4 = NULL;
    __pyx_t_5 = __Pyx_PyUnicode_From_GLenum(__pyx_v_ret, 0, ' ', 'd'); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 20, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_5);
    __pyx_t_6 = __Pyx_PyUnicode_From_GLenum(__pyx_v_ret, 0, ' ', 'x'); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 20, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_6);
    __pyx_t_7[0] = __pyx_mstate_global->__pyx_kp_u_OpenGL_Error;
    __pyx_t_7[1] = __pyx_t_5;
    __pyx_t_7[2] = __pyx_mstate_global->__pyx_kp_u__2;
    __pyx_t_7[3] = __pyx_t_6;
    __pyx_t_8 = __Pyx_PyUnicode_Join(__pyx_t_7, 4, 13 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_5) + 3 + __Pyx_PyUnicode_GET_LENGTH(__pyx_t_6), 127);
    if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 20, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_8);
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __pyx_t_9 = 1;
    {
      PyObject *__pyx_callargs[2] = {__pyx_t_4, __pyx_t_8};
      __pyx_t_3 = __Pyx_PyObject_FastCall((PyObject*)__pyx_builtin_print, __pyx_callargs+__pyx_t_9, (2-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
      __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0;
      __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
      if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 20, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
    }
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

    /* "kivy/graphics/cgl_backend/cgl_debug.pyx":19
 * def gl_check_error():
 *   ret = cgl_native.glGetError()
 *   if ret:             # <<<<<<<<<<<<<<
 *       print("OpenGL Error %d / %x" % (ret, ret))
 * 
*/
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":17
 *     print("".join([str(x) for x in args]))
 * 
 * def gl_check_error():             # <<<<<<<<<<<<<<
 *   ret = cgl_native.glGetError()
 *   if ret:
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gl_check_error", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":22
 *       print("OpenGL Error %d / %x" % (ret, ret))
 * 
 * cdef void __stdcall dbgActiveTexture (GLenum texture) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgActiveTexture(texture)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgActiveTexture(GLenum __pyx_v_texture) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":23
 * 
 * cdef void __stdcall dbgActiveTexture (GLenum texture) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgActiveTexture(texture)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":24
 * cdef void __stdcall dbgActiveTexture (GLenum texture) nogil:
 *     with gil:
 *         gil_dbgActiveTexture(texture)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgActiveTexture (GLenum texture) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgActiveTexture(__pyx_v_texture); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 24, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":23
 * 
 * cdef void __stdcall dbgActiveTexture (GLenum texture) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgActiveTexture(texture)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":22
 *       print("OpenGL Error %d / %x" % (ret, ret))
 * 
 * cdef void __stdcall dbgActiveTexture (GLenum texture) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgActiveTexture(texture)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgActiveTexture", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":26
 *         gil_dbgActiveTexture(texture)
 * 
 * cdef void __stdcall gil_dbgActiveTexture (GLenum texture) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glActiveTexture( texture = ", texture, ", )")
 *     cgl_native.glActiveTexture ( texture)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgActiveTexture(GLenum __pyx_v_texture) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgActiveTexture", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":27
 * 
 * cdef void __stdcall gil_dbgActiveTexture (GLenum texture) with gil:
 *     gl_debug_print("GL glActiveTexture( texture = ", texture, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glActiveTexture ( texture)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 27, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_texture); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 27, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glActiveTexture_texture, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 27, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":28
 * cdef void __stdcall gil_dbgActiveTexture (GLenum texture) with gil:
 *     gl_debug_print("GL glActiveTexture( texture = ", texture, ", )")
 *     cgl_native.glActiveTexture ( texture)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glActiveTexture(__pyx_v_texture); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 28, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":29
 *     gl_debug_print("GL glActiveTexture( texture = ", texture, ", )")
 *     cgl_native.glActiveTexture ( texture)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgAttachShader (GLuint program, GLuint shader) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 29, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 29, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":26
 *         gil_dbgActiveTexture(texture)
 * 
 * cdef void __stdcall gil_dbgActiveTexture (GLenum texture) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glActiveTexture( texture = ", texture, ", )")
 *     cgl_native.glActiveTexture ( texture)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgActiveTexture", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":31
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgAttachShader (GLuint program, GLuint shader) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgAttachShader(program, shader)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgAttachShader(GLuint __pyx_v_program, GLuint __pyx_v_shader) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":32
 * 
 * cdef void __stdcall dbgAttachShader (GLuint program, GLuint shader) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgAttachShader(program, shader)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":33
 * cdef void __stdcall dbgAttachShader (GLuint program, GLuint shader) nogil:
 *     with gil:
 *         gil_dbgAttachShader(program, shader)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgAttachShader (GLuint program, GLuint shader) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgAttachShader(__pyx_v_program, __pyx_v_shader); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 33, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":32
 * 
 * cdef void __stdcall dbgAttachShader (GLuint program, GLuint shader) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgAttachShader(program, shader)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":31
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgAttachShader (GLuint program, GLuint shader) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgAttachShader(program, shader)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgAttachShader", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":35
 *         gil_dbgAttachShader(program, shader)
 * 
 * cdef void __stdcall gil_dbgAttachShader (GLuint program, GLuint shader) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glAttachShader( program = ", program, ", shader = ", shader, ",)")
 *     cgl_native.glAttachShader ( program, shader)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgAttachShader(GLuint __pyx_v_program, GLuint __pyx_v_shader) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgAttachShader", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":36
 * 
 * cdef void __stdcall gil_dbgAttachShader (GLuint program, GLuint shader) with gil:
 *     gl_debug_print("GL glAttachShader( program = ", program, ", shader = ", shader, ",)")             # <<<<<<<<<<<<<<
 *     cgl_native.glAttachShader ( program, shader)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 36, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_program); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 36, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLuint(__pyx_v_shader); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 36, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[6] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glAttachShader_program, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_shader, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u__4};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_6, (6-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 36, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":37
 * cdef void __stdcall gil_dbgAttachShader (GLuint program, GLuint shader) with gil:
 *     gl_debug_print("GL glAttachShader( program = ", program, ", shader = ", shader, ",)")
 *     cgl_native.glAttachShader ( program, shader)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glAttachShader(__pyx_v_program, __pyx_v_shader); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 37, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":38
 *     gl_debug_print("GL glAttachShader( program = ", program, ", shader = ", shader, ",)")
 *     cgl_native.glAttachShader ( program, shader)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgBindAttribLocation (GLuint program, GLuint index, const GLchar* name) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 38, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 38, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":35
 *         gil_dbgAttachShader(program, shader)
 * 
 * cdef void __stdcall gil_dbgAttachShader (GLuint program, GLuint shader) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glAttachShader( program = ", program, ", shader = ", shader, ",)")
 *     cgl_native.glAttachShader ( program, shader)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgAttachShader", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":40
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgBindAttribLocation (GLuint program, GLuint index, const GLchar* name) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgBindAttribLocation(program, index, name)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgBindAttribLocation(GLuint __pyx_v_program, GLuint __pyx_v_index, GLchar const *__pyx_v_name) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":41
 * 
 * cdef void __stdcall dbgBindAttribLocation (GLuint program, GLuint index, const GLchar* name) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgBindAttribLocation(program, index, name)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":42
 * cdef void __stdcall dbgBindAttribLocation (GLuint program, GLuint index, const GLchar* name) nogil:
 *     with gil:
 *         gil_dbgBindAttribLocation(program, index, name)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgBindAttribLocation (GLuint program, GLuint index, const GLchar* name) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgBindAttribLocation(__pyx_v_program, __pyx_v_index, __pyx_v_name); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 42, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":41
 * 
 * cdef void __stdcall dbgBindAttribLocation (GLuint program, GLuint index, const GLchar* name) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgBindAttribLocation(program, index, name)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":40
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgBindAttribLocation (GLuint program, GLuint index, const GLchar* name) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgBindAttribLocation(program, index, name)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgBindAttribLocation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":44
 *         gil_dbgBindAttribLocation(program, index, name)
 * 
 * cdef void __stdcall gil_dbgBindAttribLocation (GLuint program, GLuint index, const GLchar* name) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glBindAttribLocation( program = ", program, ", index = ", index, ", name*=", <bytes>name, ", )")
 *     cgl_native.glBindAttribLocation ( program, index, name)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgBindAttribLocation(GLuint __pyx_v_program, GLuint __pyx_v_index, GLchar const *__pyx_v_name) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgBindAttribLocation", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":45
 * 
 * cdef void __stdcall gil_dbgBindAttribLocation (GLuint program, GLuint index, const GLchar* name) with gil:
 *     gl_debug_print("GL glBindAttribLocation( program = ", program, ", index = ", index, ", name*=", <bytes>name, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glBindAttribLocation ( program, index, name)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 45, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_program); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 45, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLuint(__pyx_v_index); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 45, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyBytes_FromString(__pyx_v_name); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 45, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[8] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glBindAttribLocation_program, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_index, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_name, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_7, (8-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 45, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":46
 * cdef void __stdcall gil_dbgBindAttribLocation (GLuint program, GLuint index, const GLchar* name) with gil:
 *     gl_debug_print("GL glBindAttribLocation( program = ", program, ", index = ", index, ", name*=", <bytes>name, ", )")
 *     cgl_native.glBindAttribLocation ( program, index, name)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glBindAttribLocation(__pyx_v_program, __pyx_v_index, __pyx_v_name); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 46, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":47
 *     gl_debug_print("GL glBindAttribLocation( program = ", program, ", index = ", index, ", name*=", <bytes>name, ", )")
 *     cgl_native.glBindAttribLocation ( program, index, name)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgBindBuffer (GLenum target, GLuint buffer) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 47, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 47, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":44
 *         gil_dbgBindAttribLocation(program, index, name)
 * 
 * cdef void __stdcall gil_dbgBindAttribLocation (GLuint program, GLuint index, const GLchar* name) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glBindAttribLocation( program = ", program, ", index = ", index, ", name*=", <bytes>name, ", )")
 *     cgl_native.glBindAttribLocation ( program, index, name)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgBindAttribLocation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":49
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgBindBuffer (GLenum target, GLuint buffer) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgBindBuffer(target, buffer)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgBindBuffer(GLenum __pyx_v_target, GLuint __pyx_v_buffer) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":50
 * 
 * cdef void __stdcall dbgBindBuffer (GLenum target, GLuint buffer) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgBindBuffer(target, buffer)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":51
 * cdef void __stdcall dbgBindBuffer (GLenum target, GLuint buffer) nogil:
 *     with gil:
 *         gil_dbgBindBuffer(target, buffer)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgBindBuffer (GLenum target, GLuint buffer) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgBindBuffer(__pyx_v_target, __pyx_v_buffer); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 51, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":50
 * 
 * cdef void __stdcall dbgBindBuffer (GLenum target, GLuint buffer) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgBindBuffer(target, buffer)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":49
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgBindBuffer (GLenum target, GLuint buffer) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgBindBuffer(target, buffer)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgBindBuffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":53
 *         gil_dbgBindBuffer(target, buffer)
 * 
 * cdef void __stdcall gil_dbgBindBuffer (GLenum target, GLuint buffer) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glBindBuffer( target = ", target, ", buffer = ", buffer, ", )")
 *     cgl_native.glBindBuffer ( target, buffer)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgBindBuffer(GLenum __pyx_v_target, GLuint __pyx_v_buffer) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgBindBuffer", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":54
 * 
 * cdef void __stdcall gil_dbgBindBuffer (GLenum target, GLuint buffer) with gil:
 *     gl_debug_print("GL glBindBuffer( target = ", target, ", buffer = ", buffer, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glBindBuffer ( target, buffer)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 54, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_target); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 54, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLuint(__pyx_v_buffer); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 54, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[6] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glBindBuffer_target, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_buffer, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_6, (6-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 54, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":55
 * cdef void __stdcall gil_dbgBindBuffer (GLenum target, GLuint buffer) with gil:
 *     gl_debug_print("GL glBindBuffer( target = ", target, ", buffer = ", buffer, ", )")
 *     cgl_native.glBindBuffer ( target, buffer)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glBindBuffer(__pyx_v_target, __pyx_v_buffer); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 55, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":56
 *     gl_debug_print("GL glBindBuffer( target = ", target, ", buffer = ", buffer, ", )")
 *     cgl_native.glBindBuffer ( target, buffer)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgBindFramebuffer (GLenum target, GLuint framebuffer) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 56, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 56, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":53
 *         gil_dbgBindBuffer(target, buffer)
 * 
 * cdef void __stdcall gil_dbgBindBuffer (GLenum target, GLuint buffer) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glBindBuffer( target = ", target, ", buffer = ", buffer, ", )")
 *     cgl_native.glBindBuffer ( target, buffer)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgBindBuffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":58
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgBindFramebuffer (GLenum target, GLuint framebuffer) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgBindFramebuffer(target, framebuffer)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgBindFramebuffer(GLenum __pyx_v_target, GLuint __pyx_v_framebuffer) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":59
 * 
 * cdef void __stdcall dbgBindFramebuffer (GLenum target, GLuint framebuffer) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgBindFramebuffer(target, framebuffer)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":60
 * cdef void __stdcall dbgBindFramebuffer (GLenum target, GLuint framebuffer) nogil:
 *     with gil:
 *         gil_dbgBindFramebuffer(target, framebuffer)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgBindFramebuffer (GLenum target, GLuint framebuffer) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgBindFramebuffer(__pyx_v_target, __pyx_v_framebuffer); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 60, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":59
 * 
 * cdef void __stdcall dbgBindFramebuffer (GLenum target, GLuint framebuffer) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgBindFramebuffer(target, framebuffer)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":58
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgBindFramebuffer (GLenum target, GLuint framebuffer) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgBindFramebuffer(target, framebuffer)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgBindFramebuffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":62
 *         gil_dbgBindFramebuffer(target, framebuffer)
 * 
 * cdef void __stdcall gil_dbgBindFramebuffer (GLenum target, GLuint framebuffer) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glBindFramebuffer( target = ", target, ", framebuffer = ", framebuffer, ", )")
 *     cgl_native.glBindFramebuffer ( target, framebuffer)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgBindFramebuffer(GLenum __pyx_v_target, GLuint __pyx_v_framebuffer) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgBindFramebuffer", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":63
 * 
 * cdef void __stdcall gil_dbgBindFramebuffer (GLenum target, GLuint framebuffer) with gil:
 *     gl_debug_print("GL glBindFramebuffer( target = ", target, ", framebuffer = ", framebuffer, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glBindFramebuffer ( target, framebuffer)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 63, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_target); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 63, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLuint(__pyx_v_framebuffer); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 63, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[6] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glBindFramebuffer_target, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_framebuffer, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_6, (6-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 63, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":64
 * cdef void __stdcall gil_dbgBindFramebuffer (GLenum target, GLuint framebuffer) with gil:
 *     gl_debug_print("GL glBindFramebuffer( target = ", target, ", framebuffer = ", framebuffer, ", )")
 *     cgl_native.glBindFramebuffer ( target, framebuffer)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glBindFramebuffer(__pyx_v_target, __pyx_v_framebuffer); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 64, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":65
 *     gl_debug_print("GL glBindFramebuffer( target = ", target, ", framebuffer = ", framebuffer, ", )")
 *     cgl_native.glBindFramebuffer ( target, framebuffer)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgBindRenderbuffer (GLenum target, GLuint renderbuffer) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 65, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 65, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":62
 *         gil_dbgBindFramebuffer(target, framebuffer)
 * 
 * cdef void __stdcall gil_dbgBindFramebuffer (GLenum target, GLuint framebuffer) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glBindFramebuffer( target = ", target, ", framebuffer = ", framebuffer, ", )")
 *     cgl_native.glBindFramebuffer ( target, framebuffer)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgBindFramebuffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":67
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgBindRenderbuffer (GLenum target, GLuint renderbuffer) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgBindRenderbuffer(target, renderbuffer)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgBindRenderbuffer(GLenum __pyx_v_target, GLuint __pyx_v_renderbuffer) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":68
 * 
 * cdef void __stdcall dbgBindRenderbuffer (GLenum target, GLuint renderbuffer) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgBindRenderbuffer(target, renderbuffer)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":69
 * cdef void __stdcall dbgBindRenderbuffer (GLenum target, GLuint renderbuffer) nogil:
 *     with gil:
 *         gil_dbgBindRenderbuffer(target, renderbuffer)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgBindRenderbuffer (GLenum target, GLuint renderbuffer) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgBindRenderbuffer(__pyx_v_target, __pyx_v_renderbuffer); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 69, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":68
 * 
 * cdef void __stdcall dbgBindRenderbuffer (GLenum target, GLuint renderbuffer) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgBindRenderbuffer(target, renderbuffer)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":67
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgBindRenderbuffer (GLenum target, GLuint renderbuffer) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgBindRenderbuffer(target, renderbuffer)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgBindRenderbuffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":71
 *         gil_dbgBindRenderbuffer(target, renderbuffer)
 * 
 * cdef void __stdcall gil_dbgBindRenderbuffer (GLenum target, GLuint renderbuffer) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glBindRenderbuffer( target = ", target, ", renderbuffer = ", renderbuffer, ", )")
 *     cgl_native.glBindRenderbuffer ( target, renderbuffer)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgBindRenderbuffer(GLenum __pyx_v_target, GLuint __pyx_v_renderbuffer) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgBindRenderbuffer", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":72
 * 
 * cdef void __stdcall gil_dbgBindRenderbuffer (GLenum target, GLuint renderbuffer) with gil:
 *     gl_debug_print("GL glBindRenderbuffer( target = ", target, ", renderbuffer = ", renderbuffer, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glBindRenderbuffer ( target, renderbuffer)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 72, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_target); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 72, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLuint(__pyx_v_renderbuffer); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 72, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[6] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glBindRenderbuffer_target, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_renderbuffer, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_6, (6-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 72, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":73
 * cdef void __stdcall gil_dbgBindRenderbuffer (GLenum target, GLuint renderbuffer) with gil:
 *     gl_debug_print("GL glBindRenderbuffer( target = ", target, ", renderbuffer = ", renderbuffer, ", )")
 *     cgl_native.glBindRenderbuffer ( target, renderbuffer)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glBindRenderbuffer(__pyx_v_target, __pyx_v_renderbuffer); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 73, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":74
 *     gl_debug_print("GL glBindRenderbuffer( target = ", target, ", renderbuffer = ", renderbuffer, ", )")
 *     cgl_native.glBindRenderbuffer ( target, renderbuffer)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgBindTexture (GLenum target, GLuint texture) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 74, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 74, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":71
 *         gil_dbgBindRenderbuffer(target, renderbuffer)
 * 
 * cdef void __stdcall gil_dbgBindRenderbuffer (GLenum target, GLuint renderbuffer) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glBindRenderbuffer( target = ", target, ", renderbuffer = ", renderbuffer, ", )")
 *     cgl_native.glBindRenderbuffer ( target, renderbuffer)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgBindRenderbuffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":76
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgBindTexture (GLenum target, GLuint texture) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgBindTexture(target, texture)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgBindTexture(GLenum __pyx_v_target, GLuint __pyx_v_texture) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":77
 * 
 * cdef void __stdcall dbgBindTexture (GLenum target, GLuint texture) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgBindTexture(target, texture)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":78
 * cdef void __stdcall dbgBindTexture (GLenum target, GLuint texture) nogil:
 *     with gil:
 *         gil_dbgBindTexture(target, texture)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgBindTexture (GLenum target, GLuint texture) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgBindTexture(__pyx_v_target, __pyx_v_texture); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 78, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":77
 * 
 * cdef void __stdcall dbgBindTexture (GLenum target, GLuint texture) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgBindTexture(target, texture)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":76
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgBindTexture (GLenum target, GLuint texture) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgBindTexture(target, texture)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgBindTexture", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":80
 *         gil_dbgBindTexture(target, texture)
 * 
 * cdef void __stdcall gil_dbgBindTexture (GLenum target, GLuint texture) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glBindTexture( target = ", target, ", texture = ", texture, ", )")
 *     cgl_native.glBindTexture ( target, texture)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgBindTexture(GLenum __pyx_v_target, GLuint __pyx_v_texture) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgBindTexture", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":81
 * 
 * cdef void __stdcall gil_dbgBindTexture (GLenum target, GLuint texture) with gil:
 *     gl_debug_print("GL glBindTexture( target = ", target, ", texture = ", texture, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glBindTexture ( target, texture)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 81, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_target); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 81, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLuint(__pyx_v_texture); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 81, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[6] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glBindTexture_target, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_texture, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_6, (6-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 81, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":82
 * cdef void __stdcall gil_dbgBindTexture (GLenum target, GLuint texture) with gil:
 *     gl_debug_print("GL glBindTexture( target = ", target, ", texture = ", texture, ", )")
 *     cgl_native.glBindTexture ( target, texture)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glBindTexture(__pyx_v_target, __pyx_v_texture); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 82, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":83
 *     gl_debug_print("GL glBindTexture( target = ", target, ", texture = ", texture, ", )")
 *     cgl_native.glBindTexture ( target, texture)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 83, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 83, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":80
 *         gil_dbgBindTexture(target, texture)
 * 
 * cdef void __stdcall gil_dbgBindTexture (GLenum target, GLuint texture) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glBindTexture( target = ", target, ", texture = ", texture, ", )")
 *     cgl_native.glBindTexture ( target, texture)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgBindTexture", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":85
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgBlendColor(red, green, blue, alpha)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgBlendColor(GLclampf __pyx_v_red, GLclampf __pyx_v_green, GLclampf __pyx_v_blue, GLclampf __pyx_v_alpha) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":86
 * 
 * cdef void __stdcall dbgBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgBlendColor(red, green, blue, alpha)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":87
 * cdef void __stdcall dbgBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) nogil:
 *     with gil:
 *         gil_dbgBlendColor(red, green, blue, alpha)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgBlendColor(__pyx_v_red, __pyx_v_green, __pyx_v_blue, __pyx_v_alpha); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 87, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":86
 * 
 * cdef void __stdcall dbgBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgBlendColor(red, green, blue, alpha)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":85
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgBlendColor(red, green, blue, alpha)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgBlendColor", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":89
 *         gil_dbgBlendColor(red, green, blue, alpha)
 * 
 * cdef void __stdcall gil_dbgBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glBlendColor( red = ", red, ", green = ", green, ", blue = ", blue, ", alpha = ", alpha, ", )")
 *     cgl_native.glBlendColor ( red, green, blue, alpha)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgBlendColor(GLclampf __pyx_v_red, GLclampf __pyx_v_green, GLclampf __pyx_v_blue, GLclampf __pyx_v_alpha) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgBlendColor", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":90
 * 
 * cdef void __stdcall gil_dbgBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) with gil:
 *     gl_debug_print("GL glBlendColor( red = ", red, ", green = ", green, ", blue = ", blue, ", alpha = ", alpha, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glBlendColor ( red, green, blue, alpha)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 90, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_red); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 90, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_green); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 90, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyFloat_FromDouble(__pyx_v_blue); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 90, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = PyFloat_FromDouble(__pyx_v_alpha); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 90, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[10] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glBlendColor_red, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_green, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_blue, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_alpha, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (10-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 90, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":91
 * cdef void __stdcall gil_dbgBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) with gil:
 *     gl_debug_print("GL glBlendColor( red = ", red, ", green = ", green, ", blue = ", blue, ", alpha = ", alpha, ", )")
 *     cgl_native.glBlendColor ( red, green, blue, alpha)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glBlendColor(__pyx_v_red, __pyx_v_green, __pyx_v_blue, __pyx_v_alpha); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 91, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":92
 *     gl_debug_print("GL glBlendColor( red = ", red, ", green = ", green, ", blue = ", blue, ", alpha = ", alpha, ", )")
 *     cgl_native.glBlendColor ( red, green, blue, alpha)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgBlendEquation (GLenum mode) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 92, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 92, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":89
 *         gil_dbgBlendColor(red, green, blue, alpha)
 * 
 * cdef void __stdcall gil_dbgBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glBlendColor( red = ", red, ", green = ", green, ", blue = ", blue, ", alpha = ", alpha, ", )")
 *     cgl_native.glBlendColor ( red, green, blue, alpha)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgBlendColor", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":94
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgBlendEquation (GLenum mode) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgBlendEquation(mode)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgBlendEquation(GLenum __pyx_v_mode) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":95
 * 
 * cdef void __stdcall dbgBlendEquation (GLenum mode) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgBlendEquation(mode)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":96
 * cdef void __stdcall dbgBlendEquation (GLenum mode) nogil:
 *     with gil:
 *         gil_dbgBlendEquation(mode)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgBlendEquation (GLenum mode) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgBlendEquation(__pyx_v_mode); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 96, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":95
 * 
 * cdef void __stdcall dbgBlendEquation (GLenum mode) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgBlendEquation(mode)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":94
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgBlendEquation (GLenum mode) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgBlendEquation(mode)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgBlendEquation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":98
 *         gil_dbgBlendEquation(mode)
 * 
 * cdef void __stdcall gil_dbgBlendEquation (GLenum mode) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glBlendEquation( mode = ", mode, ", )")
 *     cgl_native.glBlendEquation ( mode)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgBlendEquation(GLenum __pyx_v_mode) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgBlendEquation", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":99
 * 
 * cdef void __stdcall gil_dbgBlendEquation (GLenum mode) with gil:
 *     gl_debug_print("GL glBlendEquation( mode = ", mode, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glBlendEquation ( mode)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 99, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_mode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 99, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glBlendEquation_mode, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 99, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":100
 * cdef void __stdcall gil_dbgBlendEquation (GLenum mode) with gil:
 *     gl_debug_print("GL glBlendEquation( mode = ", mode, ", )")
 *     cgl_native.glBlendEquation ( mode)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glBlendEquation(__pyx_v_mode); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 100, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":101
 *     gl_debug_print("GL glBlendEquation( mode = ", mode, ", )")
 *     cgl_native.glBlendEquation ( mode)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 101, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 101, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":98
 *         gil_dbgBlendEquation(mode)
 * 
 * cdef void __stdcall gil_dbgBlendEquation (GLenum mode) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glBlendEquation( mode = ", mode, ", )")
 *     cgl_native.glBlendEquation ( mode)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgBlendEquation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":103
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgBlendEquationSeparate(modeRGB, modeAlpha)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgBlendEquationSeparate(GLenum __pyx_v_modeRGB, GLenum __pyx_v_modeAlpha) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":104
 * 
 * cdef void __stdcall dbgBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgBlendEquationSeparate(modeRGB, modeAlpha)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":105
 * cdef void __stdcall dbgBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha) nogil:
 *     with gil:
 *         gil_dbgBlendEquationSeparate(modeRGB, modeAlpha)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgBlendEquationSeparate(__pyx_v_modeRGB, __pyx_v_modeAlpha); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 105, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":104
 * 
 * cdef void __stdcall dbgBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgBlendEquationSeparate(modeRGB, modeAlpha)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":103
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgBlendEquationSeparate(modeRGB, modeAlpha)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgBlendEquationSeparate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":107
 *         gil_dbgBlendEquationSeparate(modeRGB, modeAlpha)
 * 
 * cdef void __stdcall gil_dbgBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glBlendEquationSeparate( modeRGB = ", modeRGB, ", modeAlpha = ", modeAlpha, ", )")
 *     cgl_native.glBlendEquationSeparate ( modeRGB, modeAlpha)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgBlendEquationSeparate(GLenum __pyx_v_modeRGB, GLenum __pyx_v_modeAlpha) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgBlendEquationSeparate", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":108
 * 
 * cdef void __stdcall gil_dbgBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha) with gil:
 *     gl_debug_print("GL glBlendEquationSeparate( modeRGB = ", modeRGB, ", modeAlpha = ", modeAlpha, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glBlendEquationSeparate ( modeRGB, modeAlpha)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 108, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_modeRGB); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 108, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLenum(__pyx_v_modeAlpha); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 108, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[6] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glBlendEquationSeparate_modeR, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_modeAlpha, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_6, (6-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 108, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":109
 * cdef void __stdcall gil_dbgBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha) with gil:
 *     gl_debug_print("GL glBlendEquationSeparate( modeRGB = ", modeRGB, ", modeAlpha = ", modeAlpha, ", )")
 *     cgl_native.glBlendEquationSeparate ( modeRGB, modeAlpha)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glBlendEquationSeparate(__pyx_v_modeRGB, __pyx_v_modeAlpha); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 109, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":110
 *     gl_debug_print("GL glBlendEquationSeparate( modeRGB = ", modeRGB, ", modeAlpha = ", modeAlpha, ", )")
 *     cgl_native.glBlendEquationSeparate ( modeRGB, modeAlpha)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgBlendFunc (GLenum sfactor, GLenum dfactor) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 110, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 110, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":107
 *         gil_dbgBlendEquationSeparate(modeRGB, modeAlpha)
 * 
 * cdef void __stdcall gil_dbgBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glBlendEquationSeparate( modeRGB = ", modeRGB, ", modeAlpha = ", modeAlpha, ", )")
 *     cgl_native.glBlendEquationSeparate ( modeRGB, modeAlpha)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgBlendEquationSeparate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":112
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgBlendFunc (GLenum sfactor, GLenum dfactor) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgBlendFunc(sfactor, dfactor)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgBlendFunc(GLenum __pyx_v_sfactor, GLenum __pyx_v_dfactor) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":113
 * 
 * cdef void __stdcall dbgBlendFunc (GLenum sfactor, GLenum dfactor) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgBlendFunc(sfactor, dfactor)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":114
 * cdef void __stdcall dbgBlendFunc (GLenum sfactor, GLenum dfactor) nogil:
 *     with gil:
 *         gil_dbgBlendFunc(sfactor, dfactor)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgBlendFunc (GLenum sfactor, GLenum dfactor) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgBlendFunc(__pyx_v_sfactor, __pyx_v_dfactor); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 114, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":113
 * 
 * cdef void __stdcall dbgBlendFunc (GLenum sfactor, GLenum dfactor) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgBlendFunc(sfactor, dfactor)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":112
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgBlendFunc (GLenum sfactor, GLenum dfactor) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgBlendFunc(sfactor, dfactor)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgBlendFunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":116
 *         gil_dbgBlendFunc(sfactor, dfactor)
 * 
 * cdef void __stdcall gil_dbgBlendFunc (GLenum sfactor, GLenum dfactor) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glBlendFunc( sfactor = ", sfactor, ", dfactor = ", dfactor, ", )")
 *     cgl_native.glBlendFunc ( sfactor, dfactor)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgBlendFunc(GLenum __pyx_v_sfactor, GLenum __pyx_v_dfactor) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgBlendFunc", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":117
 * 
 * cdef void __stdcall gil_dbgBlendFunc (GLenum sfactor, GLenum dfactor) with gil:
 *     gl_debug_print("GL glBlendFunc( sfactor = ", sfactor, ", dfactor = ", dfactor, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glBlendFunc ( sfactor, dfactor)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 117, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_sfactor); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 117, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLenum(__pyx_v_dfactor); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 117, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[6] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glBlendFunc_sfactor, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_dfactor, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_6, (6-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 117, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":118
 * cdef void __stdcall gil_dbgBlendFunc (GLenum sfactor, GLenum dfactor) with gil:
 *     gl_debug_print("GL glBlendFunc( sfactor = ", sfactor, ", dfactor = ", dfactor, ", )")
 *     cgl_native.glBlendFunc ( sfactor, dfactor)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glBlendFunc(__pyx_v_sfactor, __pyx_v_dfactor); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 118, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":119
 *     gl_debug_print("GL glBlendFunc( sfactor = ", sfactor, ", dfactor = ", dfactor, ", )")
 *     cgl_native.glBlendFunc ( sfactor, dfactor)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgBlendFuncSeparate (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 119, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 119, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":116
 *         gil_dbgBlendFunc(sfactor, dfactor)
 * 
 * cdef void __stdcall gil_dbgBlendFunc (GLenum sfactor, GLenum dfactor) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glBlendFunc( sfactor = ", sfactor, ", dfactor = ", dfactor, ", )")
 *     cgl_native.glBlendFunc ( sfactor, dfactor)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgBlendFunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":121
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgBlendFuncSeparate (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgBlendFuncSeparate(GLenum __pyx_v_srcRGB, GLenum __pyx_v_dstRGB, GLenum __pyx_v_srcAlpha, GLenum __pyx_v_dstAlpha) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":122
 * 
 * cdef void __stdcall dbgBlendFuncSeparate (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":123
 * cdef void __stdcall dbgBlendFuncSeparate (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) nogil:
 *     with gil:
 *         gil_dbgBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgBlendFuncSeparate (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgBlendFuncSeparate(__pyx_v_srcRGB, __pyx_v_dstRGB, __pyx_v_srcAlpha, __pyx_v_dstAlpha); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 123, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":122
 * 
 * cdef void __stdcall dbgBlendFuncSeparate (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":121
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgBlendFuncSeparate (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgBlendFuncSeparate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":125
 *         gil_dbgBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha)
 * 
 * cdef void __stdcall gil_dbgBlendFuncSeparate (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glBlendFuncSeparate( srcRGB = ", srcRGB, ", dstRGB = ", dstRGB, ", srcAlpha = ", srcAlpha, ", dstAlpha = ", dstAlpha, ", )")
 *     cgl_native.glBlendFuncSeparate ( srcRGB, dstRGB, srcAlpha, dstAlpha)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgBlendFuncSeparate(GLenum __pyx_v_srcRGB, GLenum __pyx_v_dstRGB, GLenum __pyx_v_srcAlpha, GLenum __pyx_v_dstAlpha) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgBlendFuncSeparate", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":126
 * 
 * cdef void __stdcall gil_dbgBlendFuncSeparate (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) with gil:
 *     gl_debug_print("GL glBlendFuncSeparate( srcRGB = ", srcRGB, ", dstRGB = ", dstRGB, ", srcAlpha = ", srcAlpha, ", dstAlpha = ", dstAlpha, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glBlendFuncSeparate ( srcRGB, dstRGB, srcAlpha, dstAlpha)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 126, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_srcRGB); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 126, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLenum(__pyx_v_dstRGB); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 126, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_GLenum(__pyx_v_srcAlpha); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 126, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyLong_From_GLenum(__pyx_v_dstAlpha); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 126, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[10] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glBlendFuncSeparate_srcRGB, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_dstRGB, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_srcAlpha, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_dstAlpha, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (10-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 126, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":127
 * cdef void __stdcall gil_dbgBlendFuncSeparate (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) with gil:
 *     gl_debug_print("GL glBlendFuncSeparate( srcRGB = ", srcRGB, ", dstRGB = ", dstRGB, ", srcAlpha = ", srcAlpha, ", dstAlpha = ", dstAlpha, ", )")
 *     cgl_native.glBlendFuncSeparate ( srcRGB, dstRGB, srcAlpha, dstAlpha)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glBlendFuncSeparate(__pyx_v_srcRGB, __pyx_v_dstRGB, __pyx_v_srcAlpha, __pyx_v_dstAlpha); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 127, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":128
 *     gl_debug_print("GL glBlendFuncSeparate( srcRGB = ", srcRGB, ", dstRGB = ", dstRGB, ", srcAlpha = ", srcAlpha, ", dstAlpha = ", dstAlpha, ", )")
 *     cgl_native.glBlendFuncSeparate ( srcRGB, dstRGB, srcAlpha, dstAlpha)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgBufferData (GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 128, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 128, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":125
 *         gil_dbgBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha)
 * 
 * cdef void __stdcall gil_dbgBlendFuncSeparate (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glBlendFuncSeparate( srcRGB = ", srcRGB, ", dstRGB = ", dstRGB, ", srcAlpha = ", srcAlpha, ", dstAlpha = ", dstAlpha, ", )")
 *     cgl_native.glBlendFuncSeparate ( srcRGB, dstRGB, srcAlpha, dstAlpha)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgBlendFuncSeparate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":130
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgBufferData (GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgBufferData(target, size, data, usage)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgBufferData(GLenum __pyx_v_target, GLsizeiptr __pyx_v_size, GLvoid const *__pyx_v_data, GLenum __pyx_v_usage) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":131
 * 
 * cdef void __stdcall dbgBufferData (GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgBufferData(target, size, data, usage)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":132
 * cdef void __stdcall dbgBufferData (GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage) nogil:
 *     with gil:
 *         gil_dbgBufferData(target, size, data, usage)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgBufferData (GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgBufferData(__pyx_v_target, __pyx_v_size, __pyx_v_data, __pyx_v_usage); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 132, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":131
 * 
 * cdef void __stdcall dbgBufferData (GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgBufferData(target, size, data, usage)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":130
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgBufferData (GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgBufferData(target, size, data, usage)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgBufferData", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":134
 *         gil_dbgBufferData(target, size, data, usage)
 * 
 * cdef void __stdcall gil_dbgBufferData (GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glBufferData( target = ", target, ", size = ", size, ", data*=", repr(hex(<long long> data)), ", usage = ", usage, ", )")
 *     cgl_native.glBufferData ( target, size, data, usage)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgBufferData(GLenum __pyx_v_target, GLsizeiptr __pyx_v_size, GLvoid const *__pyx_v_data, GLenum __pyx_v_usage) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgBufferData", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":135
 * 
 * cdef void __stdcall gil_dbgBufferData (GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage) with gil:
 *     gl_debug_print("GL glBufferData( target = ", target, ", size = ", size, ", data*=", repr(hex(<long long> data)), ", usage = ", usage, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glBufferData ( target, size, data, usage)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 135, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_target); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 135, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLsizeiptr(__pyx_v_size); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 135, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_data)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 135, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyNumber_Hex(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 135, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyObject_Repr(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 135, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PyLong_From_GLenum(__pyx_v_usage); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 135, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[10] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glBufferData_target, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_size, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_data, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_usage, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (10-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 135, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":136
 * cdef void __stdcall gil_dbgBufferData (GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage) with gil:
 *     gl_debug_print("GL glBufferData( target = ", target, ", size = ", size, ", data*=", repr(hex(<long long> data)), ", usage = ", usage, ", )")
 *     cgl_native.glBufferData ( target, size, data, usage)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glBufferData(__pyx_v_target, __pyx_v_size, __pyx_v_data, __pyx_v_usage); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 136, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":137
 *     gl_debug_print("GL glBufferData( target = ", target, ", size = ", size, ", data*=", repr(hex(<long long> data)), ", usage = ", usage, ", )")
 *     cgl_native.glBufferData ( target, size, data, usage)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 137, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 137, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":134
 *         gil_dbgBufferData(target, size, data, usage)
 * 
 * cdef void __stdcall gil_dbgBufferData (GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glBufferData( target = ", target, ", size = ", size, ", data*=", repr(hex(<long long> data)), ", usage = ", usage, ", )")
 *     cgl_native.glBufferData ( target, size, data, usage)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgBufferData", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":139
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgBufferSubData(target, offset, size, <GLvoid *>data)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgBufferSubData(GLenum __pyx_v_target, GLintptr __pyx_v_offset, GLsizeiptr __pyx_v_size, GLvoid const *__pyx_v_data) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":140
 * 
 * cdef void __stdcall dbgBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgBufferSubData(target, offset, size, <GLvoid *>data)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":141
 * cdef void __stdcall dbgBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data) nogil:
 *     with gil:
 *         gil_dbgBufferSubData(target, offset, size, <GLvoid *>data)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size,  GLvoid* data) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgBufferSubData(__pyx_v_target, __pyx_v_offset, __pyx_v_size, ((GLvoid *)__pyx_v_data)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 141, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":140
 * 
 * cdef void __stdcall dbgBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgBufferSubData(target, offset, size, <GLvoid *>data)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":139
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid* data) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgBufferSubData(target, offset, size, <GLvoid *>data)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgBufferSubData", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":143
 *         gil_dbgBufferSubData(target, offset, size, <GLvoid *>data)
 * 
 * cdef void __stdcall gil_dbgBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size,  GLvoid* data) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glBufferSubData( target = ", target, ", offset = ", offset, ", size = ", size, ", data*=", repr(hex(<long long> data)), ", )")
 *     cgl_native.glBufferSubData ( target, offset, size, data)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgBufferSubData(GLenum __pyx_v_target, GLintptr __pyx_v_offset, GLsizeiptr __pyx_v_size, GLvoid *__pyx_v_data) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  size_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgBufferSubData", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":144
 * 
 * cdef void __stdcall gil_dbgBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size,  GLvoid* data) with gil:
 *     gl_debug_print("GL glBufferSubData( target = ", target, ", offset = ", offset, ", size = ", size, ", data*=", repr(hex(<long long> data)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glBufferSubData ( target, offset, size, data)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 144, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_target); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 144, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLintptr(__pyx_v_offset); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 144, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_GLsizeiptr(__pyx_v_size); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 144, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_data)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 144, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyNumber_Hex(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 144, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyObject_Repr(__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 144, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_9 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_9 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[10] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glBufferSubData_target, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_offset, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_size, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_data, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_9, (10-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 144, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":145
 * cdef void __stdcall gil_dbgBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size,  GLvoid* data) with gil:
 *     gl_debug_print("GL glBufferSubData( target = ", target, ", offset = ", offset, ", size = ", size, ", data*=", repr(hex(<long long> data)), ", )")
 *     cgl_native.glBufferSubData ( target, offset, size, data)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glBufferSubData(__pyx_v_target, __pyx_v_offset, __pyx_v_size, __pyx_v_data); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 145, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":146
 *     gl_debug_print("GL glBufferSubData( target = ", target, ", offset = ", offset, ", size = ", size, ", data*=", repr(hex(<long long> data)), ", )")
 *     cgl_native.glBufferSubData ( target, offset, size, data)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef GLenum __stdcall dbgCheckFramebufferStatus (GLenum target) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 146, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_9 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_9 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_9, (1-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 146, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":143
 *         gil_dbgBufferSubData(target, offset, size, <GLvoid *>data)
 * 
 * cdef void __stdcall gil_dbgBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size,  GLvoid* data) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glBufferSubData( target = ", target, ", offset = ", offset, ", size = ", size, ", data*=", repr(hex(<long long> data)), ", )")
 *     cgl_native.glBufferSubData ( target, offset, size, data)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgBufferSubData", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":148
 *     gl_check_error()
 * 
 * cdef GLenum __stdcall dbgCheckFramebufferStatus (GLenum target) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         return gil_dbgCheckFramebufferStatus(target)
*/

static GLenum __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgCheckFramebufferStatus(GLenum __pyx_v_target) {
  GLenum __pyx_r;
  GLenum __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":149
 * 
 * cdef GLenum __stdcall dbgCheckFramebufferStatus (GLenum target) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         return gil_dbgCheckFramebufferStatus(target)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":150
 * cdef GLenum __stdcall dbgCheckFramebufferStatus (GLenum target) nogil:
 *     with gil:
 *         return gil_dbgCheckFramebufferStatus(target)             # <<<<<<<<<<<<<<
 * 
 * cdef GLenum __stdcall gil_dbgCheckFramebufferStatus (GLenum target) with gil:
*/
        __pyx_t_1 = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgCheckFramebufferStatus(__pyx_v_target); if (unlikely(__pyx_t_1 == ((GLenum)-1) && PyErr_Occurred())) __PYX_ERR(0, 150, __pyx_L4_error)
        __pyx_r = __pyx_t_1;
        goto __pyx_L3_return;
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":149
 * 
 * cdef GLenum __stdcall dbgCheckFramebufferStatus (GLenum target) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         return gil_dbgCheckFramebufferStatus(target)
 * 
*/
      /*finally:*/ {
        __pyx_L3_return: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L0;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":148
 *     gl_check_error()
 * 
 * cdef GLenum __stdcall dbgCheckFramebufferStatus (GLenum target) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         return gil_dbgCheckFramebufferStatus(target)
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgCheckFramebufferStatus", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  return __pyx_r;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":152
 *         return gil_dbgCheckFramebufferStatus(target)
 * 
 * cdef GLenum __stdcall gil_dbgCheckFramebufferStatus (GLenum target) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glCheckFramebufferStatus( target = ", target, ", )")
 *     ret = cgl_native.glCheckFramebufferStatus ( target)
*/

static GLenum __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgCheckFramebufferStatus(GLenum __pyx_v_target) {
  GLenum __pyx_v_ret;
  GLenum __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  GLenum __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgCheckFramebufferStatus", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":153
 * 
 * cdef GLenum __stdcall gil_dbgCheckFramebufferStatus (GLenum target) with gil:
 *     gl_debug_print("GL glCheckFramebufferStatus( target = ", target, ", )")             # <<<<<<<<<<<<<<
 *     ret = cgl_native.glCheckFramebufferStatus ( target)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 153, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_target); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 153, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glCheckFramebufferStatus_targ, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 153, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":154
 * cdef GLenum __stdcall gil_dbgCheckFramebufferStatus (GLenum target) with gil:
 *     gl_debug_print("GL glCheckFramebufferStatus( target = ", target, ", )")
 *     ret = cgl_native.glCheckFramebufferStatus ( target)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 *     return ret
*/
  __pyx_t_6 = __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glCheckFramebufferStatus(__pyx_v_target); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 154, __pyx_L1_error)
  __pyx_v_ret = __pyx_t_6;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":155
 *     gl_debug_print("GL glCheckFramebufferStatus( target = ", target, ", )")
 *     ret = cgl_native.glCheckFramebufferStatus ( target)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 *     return ret
 * 
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 155, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 155, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":156
 *     ret = cgl_native.glCheckFramebufferStatus ( target)
 *     gl_check_error()
 *     return ret             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgClear (GLbitfield mask) nogil:
*/
  __pyx_r = __pyx_v_ret;
  goto __pyx_L0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":152
 *         return gil_dbgCheckFramebufferStatus(target)
 * 
 * cdef GLenum __stdcall gil_dbgCheckFramebufferStatus (GLenum target) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glCheckFramebufferStatus( target = ", target, ", )")
 *     ret = cgl_native.glCheckFramebufferStatus ( target)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgCheckFramebufferStatus", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  return __pyx_r;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":158
 *     return ret
 * 
 * cdef void __stdcall dbgClear (GLbitfield mask) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgClear(mask)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgClear(GLbitfield __pyx_v_mask) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":159
 * 
 * cdef void __stdcall dbgClear (GLbitfield mask) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgClear(mask)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":160
 * cdef void __stdcall dbgClear (GLbitfield mask) nogil:
 *     with gil:
 *         gil_dbgClear(mask)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgClear (GLbitfield mask) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgClear(__pyx_v_mask); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 160, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":159
 * 
 * cdef void __stdcall dbgClear (GLbitfield mask) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgClear(mask)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":158
 *     return ret
 * 
 * cdef void __stdcall dbgClear (GLbitfield mask) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgClear(mask)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgClear", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":162
 *         gil_dbgClear(mask)
 * 
 * cdef void __stdcall gil_dbgClear (GLbitfield mask) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glClear( mask = ", mask, ", )")
 *     cgl_native.glClear ( mask)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgClear(GLbitfield __pyx_v_mask) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgClear", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":163
 * 
 * cdef void __stdcall gil_dbgClear (GLbitfield mask) with gil:
 *     gl_debug_print("GL glClear( mask = ", mask, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glClear ( mask)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 163, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLbitfield(__pyx_v_mask); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 163, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glClear_mask, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 163, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":164
 * cdef void __stdcall gil_dbgClear (GLbitfield mask) with gil:
 *     gl_debug_print("GL glClear( mask = ", mask, ", )")
 *     cgl_native.glClear ( mask)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glClear(__pyx_v_mask); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 164, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":165
 *     gl_debug_print("GL glClear( mask = ", mask, ", )")
 *     cgl_native.glClear ( mask)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 165, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 165, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":162
 *         gil_dbgClear(mask)
 * 
 * cdef void __stdcall gil_dbgClear (GLbitfield mask) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glClear( mask = ", mask, ", )")
 *     cgl_native.glClear ( mask)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgClear", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":167
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgClearColor(red, green, blue, alpha)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgClearColor(GLclampf __pyx_v_red, GLclampf __pyx_v_green, GLclampf __pyx_v_blue, GLclampf __pyx_v_alpha) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":168
 * 
 * cdef void __stdcall dbgClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgClearColor(red, green, blue, alpha)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":169
 * cdef void __stdcall dbgClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) nogil:
 *     with gil:
 *         gil_dbgClearColor(red, green, blue, alpha)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgClearColor(__pyx_v_red, __pyx_v_green, __pyx_v_blue, __pyx_v_alpha); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 169, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":168
 * 
 * cdef void __stdcall dbgClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgClearColor(red, green, blue, alpha)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":167
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgClearColor(red, green, blue, alpha)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgClearColor", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":171
 *         gil_dbgClearColor(red, green, blue, alpha)
 * 
 * cdef void __stdcall gil_dbgClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glClearColor( red = ", red, ", green = ", green, ", blue = ", blue, ", alpha = ", alpha, ", )")
 *     cgl_native.glClearColor ( red, green, blue, alpha)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgClearColor(GLclampf __pyx_v_red, GLclampf __pyx_v_green, GLclampf __pyx_v_blue, GLclampf __pyx_v_alpha) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgClearColor", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":172
 * 
 * cdef void __stdcall gil_dbgClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) with gil:
 *     gl_debug_print("GL glClearColor( red = ", red, ", green = ", green, ", blue = ", blue, ", alpha = ", alpha, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glClearColor ( red, green, blue, alpha)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 172, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_red); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 172, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_green); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 172, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyFloat_FromDouble(__pyx_v_blue); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 172, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = PyFloat_FromDouble(__pyx_v_alpha); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 172, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[10] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glClearColor_red, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_green, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_blue, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_alpha, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (10-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 172, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":173
 * cdef void __stdcall gil_dbgClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) with gil:
 *     gl_debug_print("GL glClearColor( red = ", red, ", green = ", green, ", blue = ", blue, ", alpha = ", alpha, ", )")
 *     cgl_native.glClearColor ( red, green, blue, alpha)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glClearColor(__pyx_v_red, __pyx_v_green, __pyx_v_blue, __pyx_v_alpha); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 173, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":174
 *     gl_debug_print("GL glClearColor( red = ", red, ", green = ", green, ", blue = ", blue, ", alpha = ", alpha, ", )")
 *     cgl_native.glClearColor ( red, green, blue, alpha)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * #crash on android platform
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 174, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 174, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":171
 *         gil_dbgClearColor(red, green, blue, alpha)
 * 
 * cdef void __stdcall gil_dbgClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glClearColor( red = ", red, ", green = ", green, ", blue = ", blue, ", alpha = ", alpha, ", )")
 *     cgl_native.glClearColor ( red, green, blue, alpha)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgClearColor", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":187
 * #    if ret: print("OpenGL Error %d / %x" % (ret, ret))
 * 
 * cdef void __stdcall dbgClearStencil (GLint s) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgClearStencil(s)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgClearStencil(GLint __pyx_v_s) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":188
 * 
 * cdef void __stdcall dbgClearStencil (GLint s) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgClearStencil(s)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":189
 * cdef void __stdcall dbgClearStencil (GLint s) nogil:
 *     with gil:
 *         gil_dbgClearStencil(s)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgClearStencil (GLint s) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgClearStencil(__pyx_v_s); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 189, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":188
 * 
 * cdef void __stdcall dbgClearStencil (GLint s) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgClearStencil(s)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":187
 * #    if ret: print("OpenGL Error %d / %x" % (ret, ret))
 * 
 * cdef void __stdcall dbgClearStencil (GLint s) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgClearStencil(s)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgClearStencil", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":191
 *         gil_dbgClearStencil(s)
 * 
 * cdef void __stdcall gil_dbgClearStencil (GLint s) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glClearStencil( s = ", s, ", )")
 *     cgl_native.glClearStencil ( s)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgClearStencil(GLint __pyx_v_s) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgClearStencil", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":192
 * 
 * cdef void __stdcall gil_dbgClearStencil (GLint s) with gil:
 *     gl_debug_print("GL glClearStencil( s = ", s, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glClearStencil ( s)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 192, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLint(__pyx_v_s); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 192, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glClearStencil_s, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 192, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":193
 * cdef void __stdcall gil_dbgClearStencil (GLint s) with gil:
 *     gl_debug_print("GL glClearStencil( s = ", s, ", )")
 *     cgl_native.glClearStencil ( s)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glClearStencil(__pyx_v_s); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 193, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":194
 *     gl_debug_print("GL glClearStencil( s = ", s, ", )")
 *     cgl_native.glClearStencil ( s)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 194, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 194, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":191
 *         gil_dbgClearStencil(s)
 * 
 * cdef void __stdcall gil_dbgClearStencil (GLint s) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glClearStencil( s = ", s, ", )")
 *     cgl_native.glClearStencil ( s)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgClearStencil", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":196
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgColorMask(red, green, blue, alpha)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgColorMask(GLboolean __pyx_v_red, GLboolean __pyx_v_green, GLboolean __pyx_v_blue, GLboolean __pyx_v_alpha) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":197
 * 
 * cdef void __stdcall dbgColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgColorMask(red, green, blue, alpha)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":198
 * cdef void __stdcall dbgColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) nogil:
 *     with gil:
 *         gil_dbgColorMask(red, green, blue, alpha)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgColorMask(__pyx_v_red, __pyx_v_green, __pyx_v_blue, __pyx_v_alpha); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 198, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":197
 * 
 * cdef void __stdcall dbgColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgColorMask(red, green, blue, alpha)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":196
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgColorMask(red, green, blue, alpha)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgColorMask", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":200
 *         gil_dbgColorMask(red, green, blue, alpha)
 * 
 * cdef void __stdcall gil_dbgColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glColorMask( red = ", red, ", green = ", green, ", blue = ", blue, ", alpha = ", alpha, ", )")
 *     cgl_native.glColorMask ( red, green, blue, alpha)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgColorMask(GLboolean __pyx_v_red, GLboolean __pyx_v_green, GLboolean __pyx_v_blue, GLboolean __pyx_v_alpha) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgColorMask", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":201
 * 
 * cdef void __stdcall gil_dbgColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) with gil:
 *     gl_debug_print("GL glColorMask( red = ", red, ", green = ", green, ", blue = ", blue, ", alpha = ", alpha, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glColorMask ( red, green, blue, alpha)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 201, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLboolean(__pyx_v_red); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 201, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLboolean(__pyx_v_green); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 201, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_GLboolean(__pyx_v_blue); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 201, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyLong_From_GLboolean(__pyx_v_alpha); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 201, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[10] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glColorMask_red, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_green, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_blue, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_alpha, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (10-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 201, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":202
 * cdef void __stdcall gil_dbgColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) with gil:
 *     gl_debug_print("GL glColorMask( red = ", red, ", green = ", green, ", blue = ", blue, ", alpha = ", alpha, ", )")
 *     cgl_native.glColorMask ( red, green, blue, alpha)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glColorMask(__pyx_v_red, __pyx_v_green, __pyx_v_blue, __pyx_v_alpha); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 202, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":203
 *     gl_debug_print("GL glColorMask( red = ", red, ", green = ", green, ", blue = ", blue, ", alpha = ", alpha, ", )")
 *     cgl_native.glColorMask ( red, green, blue, alpha)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgCompileShader (GLuint shader) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 203, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 203, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":200
 *         gil_dbgColorMask(red, green, blue, alpha)
 * 
 * cdef void __stdcall gil_dbgColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glColorMask( red = ", red, ", green = ", green, ", blue = ", blue, ", alpha = ", alpha, ", )")
 *     cgl_native.glColorMask ( red, green, blue, alpha)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgColorMask", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":205
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgCompileShader (GLuint shader) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgCompileShader(shader)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgCompileShader(GLuint __pyx_v_shader) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":206
 * 
 * cdef void __stdcall dbgCompileShader (GLuint shader) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgCompileShader(shader)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":207
 * cdef void __stdcall dbgCompileShader (GLuint shader) nogil:
 *     with gil:
 *         gil_dbgCompileShader(shader)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgCompileShader (GLuint shader) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgCompileShader(__pyx_v_shader); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 207, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":206
 * 
 * cdef void __stdcall dbgCompileShader (GLuint shader) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgCompileShader(shader)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":205
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgCompileShader (GLuint shader) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgCompileShader(shader)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgCompileShader", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":209
 *         gil_dbgCompileShader(shader)
 * 
 * cdef void __stdcall gil_dbgCompileShader (GLuint shader) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glCompileShader( shader = ", shader, ", )")
 *     cgl_native.glCompileShader ( shader)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgCompileShader(GLuint __pyx_v_shader) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgCompileShader", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":210
 * 
 * cdef void __stdcall gil_dbgCompileShader (GLuint shader) with gil:
 *     gl_debug_print("GL glCompileShader( shader = ", shader, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glCompileShader ( shader)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 210, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_shader); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 210, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glCompileShader_shader, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 210, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":211
 * cdef void __stdcall gil_dbgCompileShader (GLuint shader) with gil:
 *     gl_debug_print("GL glCompileShader( shader = ", shader, ", )")
 *     cgl_native.glCompileShader ( shader)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glCompileShader(__pyx_v_shader); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 211, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":212
 *     gl_debug_print("GL glCompileShader( shader = ", shader, ", )")
 *     cgl_native.glCompileShader ( shader)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 212, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 212, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":209
 *         gil_dbgCompileShader(shader)
 * 
 * cdef void __stdcall gil_dbgCompileShader (GLuint shader) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glCompileShader( shader = ", shader, ", )")
 *     cgl_native.glCompileShader ( shader)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgCompileShader", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":214
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgCompressedTexImage2D(GLenum __pyx_v_target, GLint __pyx_v_level, GLenum __pyx_v_internalformat, GLsizei __pyx_v_width, GLsizei __pyx_v_height, GLint __pyx_v_border, GLsizei __pyx_v_imageSize, GLvoid const *__pyx_v_data) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":215
 * 
 * cdef void __stdcall dbgCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":216
 * cdef void __stdcall dbgCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data) nogil:
 *     with gil:
 *         gil_dbgCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgCompressedTexImage2D(__pyx_v_target, __pyx_v_level, __pyx_v_internalformat, __pyx_v_width, __pyx_v_height, __pyx_v_border, __pyx_v_imageSize, __pyx_v_data); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 216, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":215
 * 
 * cdef void __stdcall dbgCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":214
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgCompressedTexImage2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":218
 *         gil_dbgCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data)
 * 
 * cdef void __stdcall gil_dbgCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glCompressedTexImage2D( target = ", target, ", level = ", level, ", internalformat = ", internalformat, ", width = ", width, ", height = ", height, ", border = ", border, ", imageSize = ", imageSize, ", data*=", repr(hex(<long long> data)), ", )")
 *     cgl_native.glCompressedTexImage2D ( target, level, internalformat, width, height, border, imageSize, data)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgCompressedTexImage2D(GLenum __pyx_v_target, GLint __pyx_v_level, GLenum __pyx_v_internalformat, GLsizei __pyx_v_width, GLsizei __pyx_v_height, GLint __pyx_v_border, GLsizei __pyx_v_imageSize, GLvoid const *__pyx_v_data) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  size_t __pyx_t_13;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgCompressedTexImage2D", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":219
 * 
 * cdef void __stdcall gil_dbgCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data) with gil:
 *     gl_debug_print("GL glCompressedTexImage2D( target = ", target, ", level = ", level, ", internalformat = ", internalformat, ", width = ", width, ", height = ", height, ", border = ", border, ", imageSize = ", imageSize, ", data*=", repr(hex(<long long> data)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glCompressedTexImage2D ( target, level, internalformat, width, height, border, imageSize, data)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_target); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLint(__pyx_v_level); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_GLenum(__pyx_v_internalformat); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyLong_From_GLsizei(__pyx_v_width); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyLong_From_GLsizei(__pyx_v_height); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = __Pyx_PyLong_From_GLint(__pyx_v_border); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_10 = __Pyx_PyLong_From_GLsizei(__pyx_v_imageSize); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __pyx_t_11 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_data)); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  __pyx_t_12 = __Pyx_PyNumber_Hex(__pyx_t_11); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
  __pyx_t_11 = PyObject_Repr(__pyx_t_12); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
  __pyx_t_13 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_13 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[18] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glCompressedTexImage2D_target, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_level, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_internalformat, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_width, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u_height, __pyx_t_8, __pyx_mstate_global->__pyx_kp_u_border, __pyx_t_9, __pyx_mstate_global->__pyx_kp_u_imageSize, __pyx_t_10, __pyx_mstate_global->__pyx_kp_u_data, __pyx_t_11, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_13, (18-__pyx_t_13) | (__pyx_t_13*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 219, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":220
 * cdef void __stdcall gil_dbgCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data) with gil:
 *     gl_debug_print("GL glCompressedTexImage2D( target = ", target, ", level = ", level, ", internalformat = ", internalformat, ", width = ", width, ", height = ", height, ", border = ", border, ", imageSize = ", imageSize, ", data*=", repr(hex(<long long> data)), ", )")
 *     cgl_native.glCompressedTexImage2D ( target, level, internalformat, width, height, border, imageSize, data)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->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); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 220, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":221
 *     gl_debug_print("GL glCompressedTexImage2D( target = ", target, ", level = ", level, ", internalformat = ", internalformat, ", width = ", width, ", height = ", height, ", border = ", border, ", imageSize = ", imageSize, ", data*=", repr(hex(<long long> data)), ", )")
 *     cgl_native.glCompressedTexImage2D ( target, level, internalformat, width, height, border, imageSize, data)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 221, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  __pyx_t_13 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_11))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_11);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_11);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_11, __pyx__function);
    __pyx_t_13 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_11, __pyx_callargs+__pyx_t_13, (1-__pyx_t_13) | (__pyx_t_13*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 221, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":218
 *         gil_dbgCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data)
 * 
 * cdef void __stdcall gil_dbgCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid* data) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glCompressedTexImage2D( target = ", target, ", level = ", level, ", internalformat = ", internalformat, ", width = ", width, ", height = ", height, ", border = ", border, ", imageSize = ", imageSize, ", data*=", repr(hex(<long long> data)), ", )")
 *     cgl_native.glCompressedTexImage2D ( target, level, internalformat, width, height, border, imageSize, data)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgCompressedTexImage2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":223
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, <GLvoid*>data)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgCompressedTexSubImage2D(GLenum __pyx_v_target, GLint __pyx_v_level, GLint __pyx_v_xoffset, GLint __pyx_v_yoffset, GLsizei __pyx_v_width, GLsizei __pyx_v_height, GLenum __pyx_v_format, GLsizei __pyx_v_imageSize, GLvoid const *__pyx_v_data) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":224
 * 
 * cdef void __stdcall dbgCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, <GLvoid*>data)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":225
 * cdef void __stdcall dbgCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data) nogil:
 *     with gil:
 *         gil_dbgCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, <GLvoid*>data)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize,  GLvoid* data) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgCompressedTexSubImage2D(__pyx_v_target, __pyx_v_level, __pyx_v_xoffset, __pyx_v_yoffset, __pyx_v_width, __pyx_v_height, __pyx_v_format, __pyx_v_imageSize, ((GLvoid *)__pyx_v_data)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 225, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":224
 * 
 * cdef void __stdcall dbgCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, <GLvoid*>data)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":223
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid* data) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, <GLvoid*>data)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgCompressedTexSubImage2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":227
 *         gil_dbgCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, <GLvoid*>data)
 * 
 * cdef void __stdcall gil_dbgCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize,  GLvoid* data) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glCompressedTexSubImage2D( target = ", target, ", level = ", level, ", xoffset = ", xoffset, ", yoffset = ", yoffset, ", width = ", width, ", height = ", height, ", format = ", format, ", imageSize = ", imageSize, ", data*=", repr(hex(<long long> data)), ", )")
 *     cgl_native.glCompressedTexSubImage2D ( target, level, xoffset, yoffset, width, height, format, imageSize, data)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgCompressedTexSubImage2D(GLenum __pyx_v_target, GLint __pyx_v_level, GLint __pyx_v_xoffset, GLint __pyx_v_yoffset, GLsizei __pyx_v_width, GLsizei __pyx_v_height, GLenum __pyx_v_format, GLsizei __pyx_v_imageSize, GLvoid *__pyx_v_data) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  size_t __pyx_t_14;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgCompressedTexSubImage2D", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":228
 * 
 * cdef void __stdcall gil_dbgCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize,  GLvoid* data) with gil:
 *     gl_debug_print("GL glCompressedTexSubImage2D( target = ", target, ", level = ", level, ", xoffset = ", xoffset, ", yoffset = ", yoffset, ", width = ", width, ", height = ", height, ", format = ", format, ", imageSize = ", imageSize, ", data*=", repr(hex(<long long> data)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glCompressedTexSubImage2D ( target, level, xoffset, yoffset, width, height, format, imageSize, data)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 228, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_target); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 228, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLint(__pyx_v_level); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 228, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_GLint(__pyx_v_xoffset); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 228, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyLong_From_GLint(__pyx_v_yoffset); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 228, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyLong_From_GLsizei(__pyx_v_width); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 228, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = __Pyx_PyLong_From_GLsizei(__pyx_v_height); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 228, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_10 = __Pyx_PyLong_From_GLenum(__pyx_v_format); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 228, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __pyx_t_11 = __Pyx_PyLong_From_GLsizei(__pyx_v_imageSize); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 228, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  __pyx_t_12 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_data)); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 228, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  __pyx_t_13 = __Pyx_PyNumber_Hex(__pyx_t_12); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 228, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
  __pyx_t_12 = PyObject_Repr(__pyx_t_13); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 228, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  __pyx_t_14 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_14 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[20] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glCompressedTexSubImage2D_tar, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_level, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_xoffset, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_yoffset, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u_width, __pyx_t_8, __pyx_mstate_global->__pyx_kp_u_height, __pyx_t_9, __pyx_mstate_global->__pyx_kp_u_format, __pyx_t_10, __pyx_mstate_global->__pyx_kp_u_imageSize, __pyx_t_11, __pyx_mstate_global->__pyx_kp_u_data, __pyx_t_12, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_14, (20-__pyx_t_14) | (__pyx_t_14*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 228, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":229
 * cdef void __stdcall gil_dbgCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize,  GLvoid* data) with gil:
 *     gl_debug_print("GL glCompressedTexSubImage2D( target = ", target, ", level = ", level, ", xoffset = ", xoffset, ", yoffset = ", yoffset, ", width = ", width, ", height = ", height, ", format = ", format, ", imageSize = ", imageSize, ", data*=", repr(hex(<long long> data)), ", )")
 *     cgl_native.glCompressedTexSubImage2D ( target, level, xoffset, yoffset, width, height, format, imageSize, data)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->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); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 229, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":230
 *     gl_debug_print("GL glCompressedTexSubImage2D( target = ", target, ", level = ", level, ", xoffset = ", xoffset, ", yoffset = ", yoffset, ", width = ", width, ", height = ", height, ", format = ", format, ", imageSize = ", imageSize, ", data*=", repr(hex(<long long> data)), ", )")
 *     cgl_native.glCompressedTexSubImage2D ( target, level, xoffset, yoffset, width, height, format, imageSize, data)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_12, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 230, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  __pyx_t_14 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_12))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_12);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_12);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_12, __pyx__function);
    __pyx_t_14 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_12, __pyx_callargs+__pyx_t_14, (1-__pyx_t_14) | (__pyx_t_14*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 230, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":227
 *         gil_dbgCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, <GLvoid*>data)
 * 
 * cdef void __stdcall gil_dbgCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize,  GLvoid* data) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glCompressedTexSubImage2D( target = ", target, ", level = ", level, ", xoffset = ", xoffset, ", yoffset = ", yoffset, ", width = ", width, ", height = ", height, ", format = ", format, ", imageSize = ", imageSize, ", data*=", repr(hex(<long long> data)), ", )")
 *     cgl_native.glCompressedTexSubImage2D ( target, level, xoffset, yoffset, width, height, format, imageSize, data)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgCompressedTexSubImage2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":232
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgCopyTexImage2D(target, level, internalformat, x, y, width, height, border)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgCopyTexImage2D(GLenum __pyx_v_target, GLint __pyx_v_level, GLenum __pyx_v_internalformat, GLint __pyx_v_x, GLint __pyx_v_y, GLsizei __pyx_v_width, GLsizei __pyx_v_height, GLint __pyx_v_border) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":233
 * 
 * cdef void __stdcall dbgCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgCopyTexImage2D(target, level, internalformat, x, y, width, height, border)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":234
 * cdef void __stdcall dbgCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) nogil:
 *     with gil:
 *         gil_dbgCopyTexImage2D(target, level, internalformat, x, y, width, height, border)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgCopyTexImage2D(__pyx_v_target, __pyx_v_level, __pyx_v_internalformat, __pyx_v_x, __pyx_v_y, __pyx_v_width, __pyx_v_height, __pyx_v_border); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 234, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":233
 * 
 * cdef void __stdcall dbgCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgCopyTexImage2D(target, level, internalformat, x, y, width, height, border)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":232
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgCopyTexImage2D(target, level, internalformat, x, y, width, height, border)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgCopyTexImage2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":236
 *         gil_dbgCopyTexImage2D(target, level, internalformat, x, y, width, height, border)
 * 
 * cdef void __stdcall gil_dbgCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glCopyTexImage2D( target = ", target, ", level = ", level, ", internalformat = ", internalformat, ", x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", border = ", border, ", )")
 *     cgl_native.glCopyTexImage2D ( target, level, internalformat, x, y, width, height, border)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgCopyTexImage2D(GLenum __pyx_v_target, GLint __pyx_v_level, GLenum __pyx_v_internalformat, GLint __pyx_v_x, GLint __pyx_v_y, GLsizei __pyx_v_width, GLsizei __pyx_v_height, GLint __pyx_v_border) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  size_t __pyx_t_12;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgCopyTexImage2D", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":237
 * 
 * cdef void __stdcall gil_dbgCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) with gil:
 *     gl_debug_print("GL glCopyTexImage2D( target = ", target, ", level = ", level, ", internalformat = ", internalformat, ", x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", border = ", border, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glCopyTexImage2D ( target, level, internalformat, x, y, width, height, border)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 237, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_target); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 237, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLint(__pyx_v_level); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 237, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_GLenum(__pyx_v_internalformat); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 237, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyLong_From_GLint(__pyx_v_x); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 237, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyLong_From_GLint(__pyx_v_y); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 237, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = __Pyx_PyLong_From_GLsizei(__pyx_v_width); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 237, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_10 = __Pyx_PyLong_From_GLsizei(__pyx_v_height); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 237, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __pyx_t_11 = __Pyx_PyLong_From_GLint(__pyx_v_border); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 237, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  __pyx_t_12 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_12 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[18] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glCopyTexImage2D_target, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_level, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_internalformat, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_x_2, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u_y, __pyx_t_8, __pyx_mstate_global->__pyx_kp_u_width, __pyx_t_9, __pyx_mstate_global->__pyx_kp_u_height, __pyx_t_10, __pyx_mstate_global->__pyx_kp_u_border, __pyx_t_11, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_12, (18-__pyx_t_12) | (__pyx_t_12*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 237, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":238
 * cdef void __stdcall gil_dbgCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) with gil:
 *     gl_debug_print("GL glCopyTexImage2D( target = ", target, ", level = ", level, ", internalformat = ", internalformat, ", x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", border = ", border, ", )")
 *     cgl_native.glCopyTexImage2D ( target, level, internalformat, x, y, width, height, border)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->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); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 238, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":239
 *     gl_debug_print("GL glCopyTexImage2D( target = ", target, ", level = ", level, ", internalformat = ", internalformat, ", x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", border = ", border, ", )")
 *     cgl_native.glCopyTexImage2D ( target, level, internalformat, x, y, width, height, border)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 239, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  __pyx_t_12 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_11))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_11);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_11);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_11, __pyx__function);
    __pyx_t_12 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_11, __pyx_callargs+__pyx_t_12, (1-__pyx_t_12) | (__pyx_t_12*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 239, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":236
 *         gil_dbgCopyTexImage2D(target, level, internalformat, x, y, width, height, border)
 * 
 * cdef void __stdcall gil_dbgCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glCopyTexImage2D( target = ", target, ", level = ", level, ", internalformat = ", internalformat, ", x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", border = ", border, ", )")
 *     cgl_native.glCopyTexImage2D ( target, level, internalformat, x, y, width, height, border)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgCopyTexImage2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":241
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgCopyTexSubImage2D(GLenum __pyx_v_target, GLint __pyx_v_level, GLint __pyx_v_xoffset, GLint __pyx_v_yoffset, GLint __pyx_v_x, GLint __pyx_v_y, GLsizei __pyx_v_width, GLsizei __pyx_v_height) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":242
 * 
 * cdef void __stdcall dbgCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":243
 * cdef void __stdcall dbgCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) nogil:
 *     with gil:
 *         gil_dbgCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgCopyTexSubImage2D(__pyx_v_target, __pyx_v_level, __pyx_v_xoffset, __pyx_v_yoffset, __pyx_v_x, __pyx_v_y, __pyx_v_width, __pyx_v_height); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 243, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":242
 * 
 * cdef void __stdcall dbgCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":241
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgCopyTexSubImage2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":245
 *         gil_dbgCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height)
 * 
 * cdef void __stdcall gil_dbgCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glCopyTexSubImage2D( target = ", target, ", level = ", level, ", xoffset = ", xoffset, ", yoffset = ", yoffset, ", x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", )")
 *     cgl_native.glCopyTexSubImage2D ( target, level, xoffset, yoffset, x, y, width, height)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgCopyTexSubImage2D(GLenum __pyx_v_target, GLint __pyx_v_level, GLint __pyx_v_xoffset, GLint __pyx_v_yoffset, GLint __pyx_v_x, GLint __pyx_v_y, GLsizei __pyx_v_width, GLsizei __pyx_v_height) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  size_t __pyx_t_12;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgCopyTexSubImage2D", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":246
 * 
 * cdef void __stdcall gil_dbgCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) with gil:
 *     gl_debug_print("GL glCopyTexSubImage2D( target = ", target, ", level = ", level, ", xoffset = ", xoffset, ", yoffset = ", yoffset, ", x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glCopyTexSubImage2D ( target, level, xoffset, yoffset, x, y, width, height)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 246, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_target); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 246, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLint(__pyx_v_level); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 246, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_GLint(__pyx_v_xoffset); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 246, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyLong_From_GLint(__pyx_v_yoffset); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 246, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyLong_From_GLint(__pyx_v_x); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 246, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = __Pyx_PyLong_From_GLint(__pyx_v_y); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 246, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_10 = __Pyx_PyLong_From_GLsizei(__pyx_v_width); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 246, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __pyx_t_11 = __Pyx_PyLong_From_GLsizei(__pyx_v_height); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 246, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  __pyx_t_12 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_12 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[18] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glCopyTexSubImage2D_target, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_level, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_xoffset, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_yoffset, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u_x_2, __pyx_t_8, __pyx_mstate_global->__pyx_kp_u_y, __pyx_t_9, __pyx_mstate_global->__pyx_kp_u_width, __pyx_t_10, __pyx_mstate_global->__pyx_kp_u_height, __pyx_t_11, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_12, (18-__pyx_t_12) | (__pyx_t_12*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 246, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":247
 * cdef void __stdcall gil_dbgCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) with gil:
 *     gl_debug_print("GL glCopyTexSubImage2D( target = ", target, ", level = ", level, ", xoffset = ", xoffset, ", yoffset = ", yoffset, ", x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", )")
 *     cgl_native.glCopyTexSubImage2D ( target, level, xoffset, yoffset, x, y, width, height)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->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); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 247, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":248
 *     gl_debug_print("GL glCopyTexSubImage2D( target = ", target, ", level = ", level, ", xoffset = ", xoffset, ", yoffset = ", yoffset, ", x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", )")
 *     cgl_native.glCopyTexSubImage2D ( target, level, xoffset, yoffset, x, y, width, height)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef GLuint __stdcall dbgCreateProgram () nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_11, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 248, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  __pyx_t_12 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_11))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_11);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_11);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_11, __pyx__function);
    __pyx_t_12 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_11, __pyx_callargs+__pyx_t_12, (1-__pyx_t_12) | (__pyx_t_12*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 248, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":245
 *         gil_dbgCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height)
 * 
 * cdef void __stdcall gil_dbgCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glCopyTexSubImage2D( target = ", target, ", level = ", level, ", xoffset = ", xoffset, ", yoffset = ", yoffset, ", x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", )")
 *     cgl_native.glCopyTexSubImage2D ( target, level, xoffset, yoffset, x, y, width, height)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgCopyTexSubImage2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":250
 *     gl_check_error()
 * 
 * cdef GLuint __stdcall dbgCreateProgram () nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         return gil_dbgCreateProgram()
*/

static GLuint __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgCreateProgram(void) {
  GLuint __pyx_r;
  GLuint __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":251
 * 
 * cdef GLuint __stdcall dbgCreateProgram () nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         return gil_dbgCreateProgram()
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":252
 * cdef GLuint __stdcall dbgCreateProgram () nogil:
 *     with gil:
 *         return gil_dbgCreateProgram()             # <<<<<<<<<<<<<<
 * 
 * cdef GLuint __stdcall gil_dbgCreateProgram () with gil:
*/
        __pyx_t_1 = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgCreateProgram(); if (unlikely(__pyx_t_1 == ((GLuint)-1) && PyErr_Occurred())) __PYX_ERR(0, 252, __pyx_L4_error)
        __pyx_r = __pyx_t_1;
        goto __pyx_L3_return;
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":251
 * 
 * cdef GLuint __stdcall dbgCreateProgram () nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         return gil_dbgCreateProgram()
 * 
*/
      /*finally:*/ {
        __pyx_L3_return: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L0;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":250
 *     gl_check_error()
 * 
 * cdef GLuint __stdcall dbgCreateProgram () nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         return gil_dbgCreateProgram()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgCreateProgram", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  return __pyx_r;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":254
 *         return gil_dbgCreateProgram()
 * 
 * cdef GLuint __stdcall gil_dbgCreateProgram () with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glCreateProgram( )")
 *     ret = cgl_native.glCreateProgram ()
*/

static GLuint __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgCreateProgram(void) {
  GLuint __pyx_v_ret;
  GLuint __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  GLuint __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgCreateProgram", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":255
 * 
 * cdef GLuint __stdcall gil_dbgCreateProgram () with gil:
 *     gl_debug_print("GL glCreateProgram( )")             # <<<<<<<<<<<<<<
 *     ret = cgl_native.glCreateProgram ()
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 255, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glCreateProgram};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 255, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":256
 * cdef GLuint __stdcall gil_dbgCreateProgram () with gil:
 *     gl_debug_print("GL glCreateProgram( )")
 *     ret = cgl_native.glCreateProgram ()             # <<<<<<<<<<<<<<
 *     gl_check_error()
 *     return ret
*/
  __pyx_t_5 = __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glCreateProgram(); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 256, __pyx_L1_error)
  __pyx_v_ret = __pyx_t_5;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":257
 *     gl_debug_print("GL glCreateProgram( )")
 *     ret = cgl_native.glCreateProgram ()
 *     gl_check_error()             # <<<<<<<<<<<<<<
 *     return ret
 * 
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 257, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_2, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 257, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":258
 *     ret = cgl_native.glCreateProgram ()
 *     gl_check_error()
 *     return ret             # <<<<<<<<<<<<<<
 * 
 * cdef GLuint __stdcall dbgCreateShader (GLenum type) nogil:
*/
  __pyx_r = __pyx_v_ret;
  goto __pyx_L0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":254
 *         return gil_dbgCreateProgram()
 * 
 * cdef GLuint __stdcall gil_dbgCreateProgram () with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glCreateProgram( )")
 *     ret = cgl_native.glCreateProgram ()
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgCreateProgram", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  return __pyx_r;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":260
 *     return ret
 * 
 * cdef GLuint __stdcall dbgCreateShader (GLenum type) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         return gil_dbgCreateShader(type)
*/

static GLuint __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgCreateShader(GLenum __pyx_v_type) {
  GLuint __pyx_r;
  GLuint __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":261
 * 
 * cdef GLuint __stdcall dbgCreateShader (GLenum type) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         return gil_dbgCreateShader(type)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":262
 * cdef GLuint __stdcall dbgCreateShader (GLenum type) nogil:
 *     with gil:
 *         return gil_dbgCreateShader(type)             # <<<<<<<<<<<<<<
 * 
 * cdef GLuint __stdcall gil_dbgCreateShader (GLenum type) with gil:
*/
        __pyx_t_1 = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgCreateShader(__pyx_v_type); if (unlikely(__pyx_t_1 == ((GLuint)-1) && PyErr_Occurred())) __PYX_ERR(0, 262, __pyx_L4_error)
        __pyx_r = __pyx_t_1;
        goto __pyx_L3_return;
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":261
 * 
 * cdef GLuint __stdcall dbgCreateShader (GLenum type) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         return gil_dbgCreateShader(type)
 * 
*/
      /*finally:*/ {
        __pyx_L3_return: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L0;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":260
 *     return ret
 * 
 * cdef GLuint __stdcall dbgCreateShader (GLenum type) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         return gil_dbgCreateShader(type)
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgCreateShader", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  return __pyx_r;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":264
 *         return gil_dbgCreateShader(type)
 * 
 * cdef GLuint __stdcall gil_dbgCreateShader (GLenum type) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glCreateShader( type = ", type, ", )")
 *     ret = cgl_native.glCreateShader ( type)
*/

static GLuint __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgCreateShader(GLenum __pyx_v_type) {
  GLuint __pyx_v_ret;
  GLuint __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  GLuint __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgCreateShader", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":265
 * 
 * cdef GLuint __stdcall gil_dbgCreateShader (GLenum type) with gil:
 *     gl_debug_print("GL glCreateShader( type = ", type, ", )")             # <<<<<<<<<<<<<<
 *     ret = cgl_native.glCreateShader ( type)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 265, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_type); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 265, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glCreateShader_type, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 265, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":266
 * cdef GLuint __stdcall gil_dbgCreateShader (GLenum type) with gil:
 *     gl_debug_print("GL glCreateShader( type = ", type, ", )")
 *     ret = cgl_native.glCreateShader ( type)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 *     return ret
*/
  __pyx_t_6 = __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glCreateShader(__pyx_v_type); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 266, __pyx_L1_error)
  __pyx_v_ret = __pyx_t_6;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":267
 *     gl_debug_print("GL glCreateShader( type = ", type, ", )")
 *     ret = cgl_native.glCreateShader ( type)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 *     return ret
 * 
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 267, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 267, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":268
 *     ret = cgl_native.glCreateShader ( type)
 *     gl_check_error()
 *     return ret             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgCullFace (GLenum mode) nogil:
*/
  __pyx_r = __pyx_v_ret;
  goto __pyx_L0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":264
 *         return gil_dbgCreateShader(type)
 * 
 * cdef GLuint __stdcall gil_dbgCreateShader (GLenum type) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glCreateShader( type = ", type, ", )")
 *     ret = cgl_native.glCreateShader ( type)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgCreateShader", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  return __pyx_r;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":270
 *     return ret
 * 
 * cdef void __stdcall dbgCullFace (GLenum mode) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgCullFace(mode)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgCullFace(GLenum __pyx_v_mode) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":271
 * 
 * cdef void __stdcall dbgCullFace (GLenum mode) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgCullFace(mode)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":272
 * cdef void __stdcall dbgCullFace (GLenum mode) nogil:
 *     with gil:
 *         gil_dbgCullFace(mode)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgCullFace (GLenum mode) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgCullFace(__pyx_v_mode); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 272, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":271
 * 
 * cdef void __stdcall dbgCullFace (GLenum mode) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgCullFace(mode)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":270
 *     return ret
 * 
 * cdef void __stdcall dbgCullFace (GLenum mode) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgCullFace(mode)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgCullFace", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":274
 *         gil_dbgCullFace(mode)
 * 
 * cdef void __stdcall gil_dbgCullFace (GLenum mode) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glCullFace( mode = ", mode, ", )")
 *     cgl_native.glCullFace ( mode)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgCullFace(GLenum __pyx_v_mode) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgCullFace", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":275
 * 
 * cdef void __stdcall gil_dbgCullFace (GLenum mode) with gil:
 *     gl_debug_print("GL glCullFace( mode = ", mode, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glCullFace ( mode)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_mode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glCullFace_mode, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 275, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":276
 * cdef void __stdcall gil_dbgCullFace (GLenum mode) with gil:
 *     gl_debug_print("GL glCullFace( mode = ", mode, ", )")
 *     cgl_native.glCullFace ( mode)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glCullFace(__pyx_v_mode); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 276, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":277
 *     gl_debug_print("GL glCullFace( mode = ", mode, ", )")
 *     cgl_native.glCullFace ( mode)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgDeleteBuffers (GLsizei n, const GLuint* buffers) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 277, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":274
 *         gil_dbgCullFace(mode)
 * 
 * cdef void __stdcall gil_dbgCullFace (GLenum mode) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glCullFace( mode = ", mode, ", )")
 *     cgl_native.glCullFace ( mode)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgCullFace", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":279
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgDeleteBuffers (GLsizei n, const GLuint* buffers) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgDeleteBuffers(n, buffers)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDeleteBuffers(GLsizei __pyx_v_n, GLuint const *__pyx_v_buffers) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":280
 * 
 * cdef void __stdcall dbgDeleteBuffers (GLsizei n, const GLuint* buffers) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgDeleteBuffers(n, buffers)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":281
 * cdef void __stdcall dbgDeleteBuffers (GLsizei n, const GLuint* buffers) nogil:
 *     with gil:
 *         gil_dbgDeleteBuffers(n, buffers)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgDeleteBuffers (GLsizei n, const GLuint* buffers) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDeleteBuffers(__pyx_v_n, __pyx_v_buffers); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 281, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":280
 * 
 * cdef void __stdcall dbgDeleteBuffers (GLsizei n, const GLuint* buffers) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgDeleteBuffers(n, buffers)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":279
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgDeleteBuffers (GLsizei n, const GLuint* buffers) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgDeleteBuffers(n, buffers)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgDeleteBuffers", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":283
 *         gil_dbgDeleteBuffers(n, buffers)
 * 
 * cdef void __stdcall gil_dbgDeleteBuffers (GLsizei n, const GLuint* buffers) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glDeleteBuffers( n = ", n, ", buffers*=", repr(hex(<long long> buffers)), ", )")
 *     cgl_native.glDeleteBuffers ( n, buffers)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDeleteBuffers(GLsizei __pyx_v_n, GLuint const *__pyx_v_buffers) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgDeleteBuffers", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":284
 * 
 * cdef void __stdcall gil_dbgDeleteBuffers (GLsizei n, const GLuint* buffers) with gil:
 *     gl_debug_print("GL glDeleteBuffers( n = ", n, ", buffers*=", repr(hex(<long long> buffers)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glDeleteBuffers ( n, buffers)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 284, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLsizei(__pyx_v_n); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 284, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_buffers)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 284, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyNumber_Hex(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 284, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = PyObject_Repr(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 284, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[6] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glDeleteBuffers_n, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_buffers, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_7, (6-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 284, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":285
 * cdef void __stdcall gil_dbgDeleteBuffers (GLsizei n, const GLuint* buffers) with gil:
 *     gl_debug_print("GL glDeleteBuffers( n = ", n, ", buffers*=", repr(hex(<long long> buffers)), ", )")
 *     cgl_native.glDeleteBuffers ( n, buffers)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glDeleteBuffers(__pyx_v_n, __pyx_v_buffers); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 285, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":286
 *     gl_debug_print("GL glDeleteBuffers( n = ", n, ", buffers*=", repr(hex(<long long> buffers)), ", )")
 *     cgl_native.glDeleteBuffers ( n, buffers)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgDeleteFramebuffers (GLsizei n, const GLuint* framebuffers) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 286, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 286, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":283
 *         gil_dbgDeleteBuffers(n, buffers)
 * 
 * cdef void __stdcall gil_dbgDeleteBuffers (GLsizei n, const GLuint* buffers) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glDeleteBuffers( n = ", n, ", buffers*=", repr(hex(<long long> buffers)), ", )")
 *     cgl_native.glDeleteBuffers ( n, buffers)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgDeleteBuffers", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":288
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgDeleteFramebuffers (GLsizei n, const GLuint* framebuffers) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgDeleteFramebuffers(n, framebuffers)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDeleteFramebuffers(GLsizei __pyx_v_n, GLuint const *__pyx_v_framebuffers) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":289
 * 
 * cdef void __stdcall dbgDeleteFramebuffers (GLsizei n, const GLuint* framebuffers) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgDeleteFramebuffers(n, framebuffers)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":290
 * cdef void __stdcall dbgDeleteFramebuffers (GLsizei n, const GLuint* framebuffers) nogil:
 *     with gil:
 *         gil_dbgDeleteFramebuffers(n, framebuffers)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgDeleteFramebuffers (GLsizei n, const GLuint* framebuffers) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDeleteFramebuffers(__pyx_v_n, __pyx_v_framebuffers); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 290, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":289
 * 
 * cdef void __stdcall dbgDeleteFramebuffers (GLsizei n, const GLuint* framebuffers) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgDeleteFramebuffers(n, framebuffers)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":288
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgDeleteFramebuffers (GLsizei n, const GLuint* framebuffers) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgDeleteFramebuffers(n, framebuffers)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgDeleteFramebuffers", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":292
 *         gil_dbgDeleteFramebuffers(n, framebuffers)
 * 
 * cdef void __stdcall gil_dbgDeleteFramebuffers (GLsizei n, const GLuint* framebuffers) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glDeleteFramebuffers( n = ", n, ", framebuffers*=", repr(hex(<long long> framebuffers)), ", )")
 *     cgl_native.glDeleteFramebuffers ( n, framebuffers)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDeleteFramebuffers(GLsizei __pyx_v_n, GLuint const *__pyx_v_framebuffers) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgDeleteFramebuffers", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":293
 * 
 * cdef void __stdcall gil_dbgDeleteFramebuffers (GLsizei n, const GLuint* framebuffers) with gil:
 *     gl_debug_print("GL glDeleteFramebuffers( n = ", n, ", framebuffers*=", repr(hex(<long long> framebuffers)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glDeleteFramebuffers ( n, framebuffers)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 293, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLsizei(__pyx_v_n); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 293, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_framebuffers)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 293, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyNumber_Hex(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 293, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = PyObject_Repr(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 293, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[6] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glDeleteFramebuffers_n, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_framebuffers, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_7, (6-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 293, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":294
 * cdef void __stdcall gil_dbgDeleteFramebuffers (GLsizei n, const GLuint* framebuffers) with gil:
 *     gl_debug_print("GL glDeleteFramebuffers( n = ", n, ", framebuffers*=", repr(hex(<long long> framebuffers)), ", )")
 *     cgl_native.glDeleteFramebuffers ( n, framebuffers)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glDeleteFramebuffers(__pyx_v_n, __pyx_v_framebuffers); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 294, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":295
 *     gl_debug_print("GL glDeleteFramebuffers( n = ", n, ", framebuffers*=", repr(hex(<long long> framebuffers)), ", )")
 *     cgl_native.glDeleteFramebuffers ( n, framebuffers)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgDeleteProgram (GLuint program) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 295, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 295, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":292
 *         gil_dbgDeleteFramebuffers(n, framebuffers)
 * 
 * cdef void __stdcall gil_dbgDeleteFramebuffers (GLsizei n, const GLuint* framebuffers) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glDeleteFramebuffers( n = ", n, ", framebuffers*=", repr(hex(<long long> framebuffers)), ", )")
 *     cgl_native.glDeleteFramebuffers ( n, framebuffers)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgDeleteFramebuffers", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":297
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgDeleteProgram (GLuint program) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgDeleteProgram(program)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDeleteProgram(GLuint __pyx_v_program) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":298
 * 
 * cdef void __stdcall dbgDeleteProgram (GLuint program) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgDeleteProgram(program)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":299
 * cdef void __stdcall dbgDeleteProgram (GLuint program) nogil:
 *     with gil:
 *         gil_dbgDeleteProgram(program)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgDeleteProgram (GLuint program) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDeleteProgram(__pyx_v_program); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 299, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":298
 * 
 * cdef void __stdcall dbgDeleteProgram (GLuint program) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgDeleteProgram(program)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":297
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgDeleteProgram (GLuint program) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgDeleteProgram(program)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgDeleteProgram", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":301
 *         gil_dbgDeleteProgram(program)
 * 
 * cdef void __stdcall gil_dbgDeleteProgram (GLuint program) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glDeleteProgram( program = ", program, ", )")
 *     cgl_native.glDeleteProgram ( program)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDeleteProgram(GLuint __pyx_v_program) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgDeleteProgram", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":302
 * 
 * cdef void __stdcall gil_dbgDeleteProgram (GLuint program) with gil:
 *     gl_debug_print("GL glDeleteProgram( program = ", program, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glDeleteProgram ( program)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 302, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_program); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 302, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glDeleteProgram_program, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 302, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":303
 * cdef void __stdcall gil_dbgDeleteProgram (GLuint program) with gil:
 *     gl_debug_print("GL glDeleteProgram( program = ", program, ", )")
 *     cgl_native.glDeleteProgram ( program)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glDeleteProgram(__pyx_v_program); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 303, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":304
 *     gl_debug_print("GL glDeleteProgram( program = ", program, ", )")
 *     cgl_native.glDeleteProgram ( program)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgDeleteRenderbuffers (GLsizei n, const GLuint* renderbuffers) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 304, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 304, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":301
 *         gil_dbgDeleteProgram(program)
 * 
 * cdef void __stdcall gil_dbgDeleteProgram (GLuint program) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glDeleteProgram( program = ", program, ", )")
 *     cgl_native.glDeleteProgram ( program)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgDeleteProgram", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":306
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgDeleteRenderbuffers (GLsizei n, const GLuint* renderbuffers) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgDeleteRenderbuffers(n, renderbuffers)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDeleteRenderbuffers(GLsizei __pyx_v_n, GLuint const *__pyx_v_renderbuffers) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":307
 * 
 * cdef void __stdcall dbgDeleteRenderbuffers (GLsizei n, const GLuint* renderbuffers) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgDeleteRenderbuffers(n, renderbuffers)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":308
 * cdef void __stdcall dbgDeleteRenderbuffers (GLsizei n, const GLuint* renderbuffers) nogil:
 *     with gil:
 *         gil_dbgDeleteRenderbuffers(n, renderbuffers)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgDeleteRenderbuffers (GLsizei n, const GLuint* renderbuffers) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDeleteRenderbuffers(__pyx_v_n, __pyx_v_renderbuffers); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 308, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":307
 * 
 * cdef void __stdcall dbgDeleteRenderbuffers (GLsizei n, const GLuint* renderbuffers) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgDeleteRenderbuffers(n, renderbuffers)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":306
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgDeleteRenderbuffers (GLsizei n, const GLuint* renderbuffers) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgDeleteRenderbuffers(n, renderbuffers)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgDeleteRenderbuffers", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":310
 *         gil_dbgDeleteRenderbuffers(n, renderbuffers)
 * 
 * cdef void __stdcall gil_dbgDeleteRenderbuffers (GLsizei n, const GLuint* renderbuffers) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glDeleteRenderbuffers( n = ", n, ", renderbuffers*=", repr(hex(<long long> renderbuffers)), ", )")
 *     cgl_native.glDeleteRenderbuffers ( n, renderbuffers)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDeleteRenderbuffers(GLsizei __pyx_v_n, GLuint const *__pyx_v_renderbuffers) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgDeleteRenderbuffers", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":311
 * 
 * cdef void __stdcall gil_dbgDeleteRenderbuffers (GLsizei n, const GLuint* renderbuffers) with gil:
 *     gl_debug_print("GL glDeleteRenderbuffers( n = ", n, ", renderbuffers*=", repr(hex(<long long> renderbuffers)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glDeleteRenderbuffers ( n, renderbuffers)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 311, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLsizei(__pyx_v_n); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 311, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_renderbuffers)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 311, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyNumber_Hex(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 311, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = PyObject_Repr(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 311, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[6] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glDeleteRenderbuffers_n, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_renderbuffers, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_7, (6-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 311, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":312
 * cdef void __stdcall gil_dbgDeleteRenderbuffers (GLsizei n, const GLuint* renderbuffers) with gil:
 *     gl_debug_print("GL glDeleteRenderbuffers( n = ", n, ", renderbuffers*=", repr(hex(<long long> renderbuffers)), ", )")
 *     cgl_native.glDeleteRenderbuffers ( n, renderbuffers)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glDeleteRenderbuffers(__pyx_v_n, __pyx_v_renderbuffers); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 312, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":313
 *     gl_debug_print("GL glDeleteRenderbuffers( n = ", n, ", renderbuffers*=", repr(hex(<long long> renderbuffers)), ", )")
 *     cgl_native.glDeleteRenderbuffers ( n, renderbuffers)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgDeleteShader (GLuint shader) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 313, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 313, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":310
 *         gil_dbgDeleteRenderbuffers(n, renderbuffers)
 * 
 * cdef void __stdcall gil_dbgDeleteRenderbuffers (GLsizei n, const GLuint* renderbuffers) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glDeleteRenderbuffers( n = ", n, ", renderbuffers*=", repr(hex(<long long> renderbuffers)), ", )")
 *     cgl_native.glDeleteRenderbuffers ( n, renderbuffers)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgDeleteRenderbuffers", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":315
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgDeleteShader (GLuint shader) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgDeleteShader(shader)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDeleteShader(GLuint __pyx_v_shader) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":316
 * 
 * cdef void __stdcall dbgDeleteShader (GLuint shader) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgDeleteShader(shader)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":317
 * cdef void __stdcall dbgDeleteShader (GLuint shader) nogil:
 *     with gil:
 *         gil_dbgDeleteShader(shader)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgDeleteShader (GLuint shader) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDeleteShader(__pyx_v_shader); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 317, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":316
 * 
 * cdef void __stdcall dbgDeleteShader (GLuint shader) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgDeleteShader(shader)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":315
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgDeleteShader (GLuint shader) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgDeleteShader(shader)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgDeleteShader", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":319
 *         gil_dbgDeleteShader(shader)
 * 
 * cdef void __stdcall gil_dbgDeleteShader (GLuint shader) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glDeleteShader( shader = ", shader, ", )")
 *     cgl_native.glDeleteShader ( shader)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDeleteShader(GLuint __pyx_v_shader) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgDeleteShader", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":320
 * 
 * cdef void __stdcall gil_dbgDeleteShader (GLuint shader) with gil:
 *     gl_debug_print("GL glDeleteShader( shader = ", shader, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glDeleteShader ( shader)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 320, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_shader); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 320, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glDeleteShader_shader, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 320, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":321
 * cdef void __stdcall gil_dbgDeleteShader (GLuint shader) with gil:
 *     gl_debug_print("GL glDeleteShader( shader = ", shader, ", )")
 *     cgl_native.glDeleteShader ( shader)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glDeleteShader(__pyx_v_shader); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 321, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":322
 *     gl_debug_print("GL glDeleteShader( shader = ", shader, ", )")
 *     cgl_native.glDeleteShader ( shader)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgDeleteTextures (GLsizei n, const GLuint* textures) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 322, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 322, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":319
 *         gil_dbgDeleteShader(shader)
 * 
 * cdef void __stdcall gil_dbgDeleteShader (GLuint shader) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glDeleteShader( shader = ", shader, ", )")
 *     cgl_native.glDeleteShader ( shader)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgDeleteShader", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":324
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgDeleteTextures (GLsizei n, const GLuint* textures) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgDeleteTextures(n, textures)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDeleteTextures(GLsizei __pyx_v_n, GLuint const *__pyx_v_textures) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":325
 * 
 * cdef void __stdcall dbgDeleteTextures (GLsizei n, const GLuint* textures) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgDeleteTextures(n, textures)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":326
 * cdef void __stdcall dbgDeleteTextures (GLsizei n, const GLuint* textures) nogil:
 *     with gil:
 *         gil_dbgDeleteTextures(n, textures)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgDeleteTextures (GLsizei n, const GLuint* textures) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDeleteTextures(__pyx_v_n, __pyx_v_textures); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 326, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":325
 * 
 * cdef void __stdcall dbgDeleteTextures (GLsizei n, const GLuint* textures) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgDeleteTextures(n, textures)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":324
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgDeleteTextures (GLsizei n, const GLuint* textures) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgDeleteTextures(n, textures)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgDeleteTextures", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":328
 *         gil_dbgDeleteTextures(n, textures)
 * 
 * cdef void __stdcall gil_dbgDeleteTextures (GLsizei n, const GLuint* textures) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glDeleteTextures( n = ", n, ", textures*=", repr(hex(<long long> textures)), ", )")
 *     cgl_native.glDeleteTextures ( n, textures)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDeleteTextures(GLsizei __pyx_v_n, GLuint const *__pyx_v_textures) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgDeleteTextures", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":329
 * 
 * cdef void __stdcall gil_dbgDeleteTextures (GLsizei n, const GLuint* textures) with gil:
 *     gl_debug_print("GL glDeleteTextures( n = ", n, ", textures*=", repr(hex(<long long> textures)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glDeleteTextures ( n, textures)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 329, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLsizei(__pyx_v_n); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 329, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_textures)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 329, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyNumber_Hex(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 329, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = PyObject_Repr(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 329, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[6] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glDeleteTextures_n, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_textures, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_7, (6-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 329, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":330
 * cdef void __stdcall gil_dbgDeleteTextures (GLsizei n, const GLuint* textures) with gil:
 *     gl_debug_print("GL glDeleteTextures( n = ", n, ", textures*=", repr(hex(<long long> textures)), ", )")
 *     cgl_native.glDeleteTextures ( n, textures)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glDeleteTextures(__pyx_v_n, __pyx_v_textures); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 330, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":331
 *     gl_debug_print("GL glDeleteTextures( n = ", n, ", textures*=", repr(hex(<long long> textures)), ", )")
 *     cgl_native.glDeleteTextures ( n, textures)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgDepthFunc (GLenum func) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 331, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 331, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":328
 *         gil_dbgDeleteTextures(n, textures)
 * 
 * cdef void __stdcall gil_dbgDeleteTextures (GLsizei n, const GLuint* textures) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glDeleteTextures( n = ", n, ", textures*=", repr(hex(<long long> textures)), ", )")
 *     cgl_native.glDeleteTextures ( n, textures)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgDeleteTextures", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":333
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgDepthFunc (GLenum func) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgDepthFunc(func)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDepthFunc(GLenum __pyx_v_func) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":334
 * 
 * cdef void __stdcall dbgDepthFunc (GLenum func) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgDepthFunc(func)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":335
 * cdef void __stdcall dbgDepthFunc (GLenum func) nogil:
 *     with gil:
 *         gil_dbgDepthFunc(func)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgDepthFunc (GLenum func) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDepthFunc(__pyx_v_func); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 335, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":334
 * 
 * cdef void __stdcall dbgDepthFunc (GLenum func) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgDepthFunc(func)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":333
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgDepthFunc (GLenum func) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgDepthFunc(func)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgDepthFunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":337
 *         gil_dbgDepthFunc(func)
 * 
 * cdef void __stdcall gil_dbgDepthFunc (GLenum func) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glDepthFunc( func = ", func, ", )")
 *     cgl_native.glDepthFunc ( func)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDepthFunc(GLenum __pyx_v_func) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgDepthFunc", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":338
 * 
 * cdef void __stdcall gil_dbgDepthFunc (GLenum func) with gil:
 *     gl_debug_print("GL glDepthFunc( func = ", func, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glDepthFunc ( func)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 338, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_func); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 338, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glDepthFunc_func, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 338, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":339
 * cdef void __stdcall gil_dbgDepthFunc (GLenum func) with gil:
 *     gl_debug_print("GL glDepthFunc( func = ", func, ", )")
 *     cgl_native.glDepthFunc ( func)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glDepthFunc(__pyx_v_func); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 339, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":340
 *     gl_debug_print("GL glDepthFunc( func = ", func, ", )")
 *     cgl_native.glDepthFunc ( func)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgDepthMask (GLboolean flag) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 340, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 340, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":337
 *         gil_dbgDepthFunc(func)
 * 
 * cdef void __stdcall gil_dbgDepthFunc (GLenum func) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glDepthFunc( func = ", func, ", )")
 *     cgl_native.glDepthFunc ( func)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgDepthFunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":342
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgDepthMask (GLboolean flag) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgDepthMask(flag)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDepthMask(GLboolean __pyx_v_flag) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":343
 * 
 * cdef void __stdcall dbgDepthMask (GLboolean flag) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgDepthMask(flag)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":344
 * cdef void __stdcall dbgDepthMask (GLboolean flag) nogil:
 *     with gil:
 *         gil_dbgDepthMask(flag)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgDepthMask (GLboolean flag) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDepthMask(__pyx_v_flag); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 344, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":343
 * 
 * cdef void __stdcall dbgDepthMask (GLboolean flag) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgDepthMask(flag)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":342
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgDepthMask (GLboolean flag) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgDepthMask(flag)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgDepthMask", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":346
 *         gil_dbgDepthMask(flag)
 * 
 * cdef void __stdcall gil_dbgDepthMask (GLboolean flag) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glDepthMask( flag = ", flag, ", )")
 *     cgl_native.glDepthMask ( flag)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDepthMask(GLboolean __pyx_v_flag) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgDepthMask", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":347
 * 
 * cdef void __stdcall gil_dbgDepthMask (GLboolean flag) with gil:
 *     gl_debug_print("GL glDepthMask( flag = ", flag, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glDepthMask ( flag)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 347, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLboolean(__pyx_v_flag); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 347, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glDepthMask_flag, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 347, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":348
 * cdef void __stdcall gil_dbgDepthMask (GLboolean flag) with gil:
 *     gl_debug_print("GL glDepthMask( flag = ", flag, ", )")
 *     cgl_native.glDepthMask ( flag)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glDepthMask(__pyx_v_flag); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 348, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":349
 *     gl_debug_print("GL glDepthMask( flag = ", flag, ", )")
 *     cgl_native.glDepthMask ( flag)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * #crash on android platform
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 349, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 349, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":346
 *         gil_dbgDepthMask(flag)
 * 
 * cdef void __stdcall gil_dbgDepthMask (GLboolean flag) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glDepthMask( flag = ", flag, ", )")
 *     cgl_native.glDepthMask ( flag)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgDepthMask", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":361
 * #    if ret: print("ERR %d / %x" % (ret, ret))
 * 
 * cdef void __stdcall dbgDetachShader (GLuint program, GLuint shader) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgDetachShader(program, shader)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDetachShader(GLuint __pyx_v_program, GLuint __pyx_v_shader) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":362
 * 
 * cdef void __stdcall dbgDetachShader (GLuint program, GLuint shader) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgDetachShader(program, shader)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":363
 * cdef void __stdcall dbgDetachShader (GLuint program, GLuint shader) nogil:
 *     with gil:
 *         gil_dbgDetachShader(program, shader)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgDetachShader (GLuint program, GLuint shader) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDetachShader(__pyx_v_program, __pyx_v_shader); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 363, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":362
 * 
 * cdef void __stdcall dbgDetachShader (GLuint program, GLuint shader) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgDetachShader(program, shader)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":361
 * #    if ret: print("ERR %d / %x" % (ret, ret))
 * 
 * cdef void __stdcall dbgDetachShader (GLuint program, GLuint shader) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgDetachShader(program, shader)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgDetachShader", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":365
 *         gil_dbgDetachShader(program, shader)
 * 
 * cdef void __stdcall gil_dbgDetachShader (GLuint program, GLuint shader) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glDetachShader( program = ", program, ", shader = ", shader, ", )")
 *     cgl_native.glDetachShader ( program, shader)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDetachShader(GLuint __pyx_v_program, GLuint __pyx_v_shader) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgDetachShader", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":366
 * 
 * cdef void __stdcall gil_dbgDetachShader (GLuint program, GLuint shader) with gil:
 *     gl_debug_print("GL glDetachShader( program = ", program, ", shader = ", shader, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glDetachShader ( program, shader)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 366, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_program); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 366, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLuint(__pyx_v_shader); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 366, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[6] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glDetachShader_program, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_shader, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_6, (6-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 366, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":367
 * cdef void __stdcall gil_dbgDetachShader (GLuint program, GLuint shader) with gil:
 *     gl_debug_print("GL glDetachShader( program = ", program, ", shader = ", shader, ", )")
 *     cgl_native.glDetachShader ( program, shader)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glDetachShader(__pyx_v_program, __pyx_v_shader); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 367, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":368
 *     gl_debug_print("GL glDetachShader( program = ", program, ", shader = ", shader, ", )")
 *     cgl_native.glDetachShader ( program, shader)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgDisable (GLenum cap) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 368, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 368, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":365
 *         gil_dbgDetachShader(program, shader)
 * 
 * cdef void __stdcall gil_dbgDetachShader (GLuint program, GLuint shader) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glDetachShader( program = ", program, ", shader = ", shader, ", )")
 *     cgl_native.glDetachShader ( program, shader)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgDetachShader", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":370
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgDisable (GLenum cap) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgDisable(cap)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDisable(GLenum __pyx_v_cap) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":371
 * 
 * cdef void __stdcall dbgDisable (GLenum cap) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgDisable(cap)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":372
 * cdef void __stdcall dbgDisable (GLenum cap) nogil:
 *     with gil:
 *         gil_dbgDisable(cap)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgDisable (GLenum cap) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDisable(__pyx_v_cap); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 372, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":371
 * 
 * cdef void __stdcall dbgDisable (GLenum cap) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgDisable(cap)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":370
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgDisable (GLenum cap) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgDisable(cap)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgDisable", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":374
 *         gil_dbgDisable(cap)
 * 
 * cdef void __stdcall gil_dbgDisable (GLenum cap) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glDisable( cap = ", cap, ", )")
 *     cgl_native.glDisable ( cap)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDisable(GLenum __pyx_v_cap) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgDisable", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":375
 * 
 * cdef void __stdcall gil_dbgDisable (GLenum cap) with gil:
 *     gl_debug_print("GL glDisable( cap = ", cap, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glDisable ( cap)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 375, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_cap); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 375, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glDisable_cap, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 375, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":376
 * cdef void __stdcall gil_dbgDisable (GLenum cap) with gil:
 *     gl_debug_print("GL glDisable( cap = ", cap, ", )")
 *     cgl_native.glDisable ( cap)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glDisable(__pyx_v_cap); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 376, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":377
 *     gl_debug_print("GL glDisable( cap = ", cap, ", )")
 *     cgl_native.glDisable ( cap)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgDisableVertexAttribArray (GLuint index) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 377, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 377, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":374
 *         gil_dbgDisable(cap)
 * 
 * cdef void __stdcall gil_dbgDisable (GLenum cap) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glDisable( cap = ", cap, ", )")
 *     cgl_native.glDisable ( cap)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgDisable", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":379
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgDisableVertexAttribArray (GLuint index) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgDisableVertexAttribArray(index)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDisableVertexAttribArray(GLuint __pyx_v_index) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":380
 * 
 * cdef void __stdcall dbgDisableVertexAttribArray (GLuint index) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgDisableVertexAttribArray(index)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":381
 * cdef void __stdcall dbgDisableVertexAttribArray (GLuint index) nogil:
 *     with gil:
 *         gil_dbgDisableVertexAttribArray(index)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgDisableVertexAttribArray (GLuint index) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDisableVertexAttribArray(__pyx_v_index); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 381, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":380
 * 
 * cdef void __stdcall dbgDisableVertexAttribArray (GLuint index) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgDisableVertexAttribArray(index)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":379
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgDisableVertexAttribArray (GLuint index) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgDisableVertexAttribArray(index)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgDisableVertexAttribArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":383
 *         gil_dbgDisableVertexAttribArray(index)
 * 
 * cdef void __stdcall gil_dbgDisableVertexAttribArray (GLuint index) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glDisableVertexAttribArray( index = ", index, ", )")
 *     cgl_native.glDisableVertexAttribArray ( index)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDisableVertexAttribArray(GLuint __pyx_v_index) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgDisableVertexAttribArray", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":384
 * 
 * cdef void __stdcall gil_dbgDisableVertexAttribArray (GLuint index) with gil:
 *     gl_debug_print("GL glDisableVertexAttribArray( index = ", index, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glDisableVertexAttribArray ( index)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 384, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_index); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 384, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glDisableVertexAttribArray_in, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 384, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":385
 * cdef void __stdcall gil_dbgDisableVertexAttribArray (GLuint index) with gil:
 *     gl_debug_print("GL glDisableVertexAttribArray( index = ", index, ", )")
 *     cgl_native.glDisableVertexAttribArray ( index)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glDisableVertexAttribArray(__pyx_v_index); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 385, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":386
 *     gl_debug_print("GL glDisableVertexAttribArray( index = ", index, ", )")
 *     cgl_native.glDisableVertexAttribArray ( index)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgDrawArrays (GLenum mode, GLint first, GLsizei count) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 386, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 386, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":383
 *         gil_dbgDisableVertexAttribArray(index)
 * 
 * cdef void __stdcall gil_dbgDisableVertexAttribArray (GLuint index) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glDisableVertexAttribArray( index = ", index, ", )")
 *     cgl_native.glDisableVertexAttribArray ( index)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgDisableVertexAttribArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":388
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgDrawArrays (GLenum mode, GLint first, GLsizei count) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgDrawArrays(mode, first, count)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDrawArrays(GLenum __pyx_v_mode, GLint __pyx_v_first, GLsizei __pyx_v_count) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":389
 * 
 * cdef void __stdcall dbgDrawArrays (GLenum mode, GLint first, GLsizei count) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgDrawArrays(mode, first, count)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":390
 * cdef void __stdcall dbgDrawArrays (GLenum mode, GLint first, GLsizei count) nogil:
 *     with gil:
 *         gil_dbgDrawArrays(mode, first, count)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgDrawArrays (GLenum mode, GLint first, GLsizei count) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDrawArrays(__pyx_v_mode, __pyx_v_first, __pyx_v_count); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 390, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":389
 * 
 * cdef void __stdcall dbgDrawArrays (GLenum mode, GLint first, GLsizei count) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgDrawArrays(mode, first, count)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":388
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgDrawArrays (GLenum mode, GLint first, GLsizei count) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgDrawArrays(mode, first, count)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgDrawArrays", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":392
 *         gil_dbgDrawArrays(mode, first, count)
 * 
 * cdef void __stdcall gil_dbgDrawArrays (GLenum mode, GLint first, GLsizei count) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glDrawArrays( mode = ", mode, ", first = ", first, ", count = ", count, ", )")
 *     cgl_native.glDrawArrays ( mode, first, count)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDrawArrays(GLenum __pyx_v_mode, GLint __pyx_v_first, GLsizei __pyx_v_count) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgDrawArrays", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":393
 * 
 * cdef void __stdcall gil_dbgDrawArrays (GLenum mode, GLint first, GLsizei count) with gil:
 *     gl_debug_print("GL glDrawArrays( mode = ", mode, ", first = ", first, ", count = ", count, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glDrawArrays ( mode, first, count)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 393, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_mode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 393, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLint(__pyx_v_first); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 393, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_GLsizei(__pyx_v_count); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 393, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[8] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glDrawArrays_mode, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_first, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_count, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_7, (8-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 393, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":394
 * cdef void __stdcall gil_dbgDrawArrays (GLenum mode, GLint first, GLsizei count) with gil:
 *     gl_debug_print("GL glDrawArrays( mode = ", mode, ", first = ", first, ", count = ", count, ", )")
 *     cgl_native.glDrawArrays ( mode, first, count)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glDrawArrays(__pyx_v_mode, __pyx_v_first, __pyx_v_count); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 394, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":395
 *     gl_debug_print("GL glDrawArrays( mode = ", mode, ", first = ", first, ", count = ", count, ", )")
 *     cgl_native.glDrawArrays ( mode, first, count)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid* indices) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 395, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 395, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":392
 *         gil_dbgDrawArrays(mode, first, count)
 * 
 * cdef void __stdcall gil_dbgDrawArrays (GLenum mode, GLint first, GLsizei count) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glDrawArrays( mode = ", mode, ", first = ", first, ", count = ", count, ", )")
 *     cgl_native.glDrawArrays ( mode, first, count)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgDrawArrays", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":397
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid* indices) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgDrawElements(mode, count, type, <GLvoid*>indices)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDrawElements(GLenum __pyx_v_mode, GLsizei __pyx_v_count, GLenum __pyx_v_type, GLvoid const *__pyx_v_indices) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":398
 * 
 * cdef void __stdcall dbgDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid* indices) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgDrawElements(mode, count, type, <GLvoid*>indices)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":399
 * cdef void __stdcall dbgDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid* indices) nogil:
 *     with gil:
 *         gil_dbgDrawElements(mode, count, type, <GLvoid*>indices)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgDrawElements (GLenum mode, GLsizei count, GLenum type,  GLvoid* indices) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDrawElements(__pyx_v_mode, __pyx_v_count, __pyx_v_type, ((GLvoid *)__pyx_v_indices)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 399, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":398
 * 
 * cdef void __stdcall dbgDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid* indices) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgDrawElements(mode, count, type, <GLvoid*>indices)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":397
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid* indices) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgDrawElements(mode, count, type, <GLvoid*>indices)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgDrawElements", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":401
 *         gil_dbgDrawElements(mode, count, type, <GLvoid*>indices)
 * 
 * cdef void __stdcall gil_dbgDrawElements (GLenum mode, GLsizei count, GLenum type,  GLvoid* indices) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glDrawElements( mode = ", mode, ", count = ", count, ", type = ", type, ", indices*=", repr(hex(<long long> indices)), ", )")
 *     cgl_native.glDrawElements ( mode, count, type, indices)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgDrawElements(GLenum __pyx_v_mode, GLsizei __pyx_v_count, GLenum __pyx_v_type, GLvoid *__pyx_v_indices) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  size_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgDrawElements", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":402
 * 
 * cdef void __stdcall gil_dbgDrawElements (GLenum mode, GLsizei count, GLenum type,  GLvoid* indices) with gil:
 *     gl_debug_print("GL glDrawElements( mode = ", mode, ", count = ", count, ", type = ", type, ", indices*=", repr(hex(<long long> indices)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glDrawElements ( mode, count, type, indices)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 402, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_mode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 402, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLsizei(__pyx_v_count); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 402, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_GLenum(__pyx_v_type); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 402, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_indices)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 402, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyNumber_Hex(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 402, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyObject_Repr(__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 402, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_9 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_9 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[10] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glDrawElements_mode, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_count, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_type, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_indices, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_9, (10-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 402, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":403
 * cdef void __stdcall gil_dbgDrawElements (GLenum mode, GLsizei count, GLenum type,  GLvoid* indices) with gil:
 *     gl_debug_print("GL glDrawElements( mode = ", mode, ", count = ", count, ", type = ", type, ", indices*=", repr(hex(<long long> indices)), ", )")
 *     cgl_native.glDrawElements ( mode, count, type, indices)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glDrawElements(__pyx_v_mode, __pyx_v_count, __pyx_v_type, __pyx_v_indices); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 403, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":404
 *     gl_debug_print("GL glDrawElements( mode = ", mode, ", count = ", count, ", type = ", type, ", indices*=", repr(hex(<long long> indices)), ", )")
 *     cgl_native.glDrawElements ( mode, count, type, indices)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgEnable (GLenum cap) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 404, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_9 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_9 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_9, (1-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 404, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":401
 *         gil_dbgDrawElements(mode, count, type, <GLvoid*>indices)
 * 
 * cdef void __stdcall gil_dbgDrawElements (GLenum mode, GLsizei count, GLenum type,  GLvoid* indices) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glDrawElements( mode = ", mode, ", count = ", count, ", type = ", type, ", indices*=", repr(hex(<long long> indices)), ", )")
 *     cgl_native.glDrawElements ( mode, count, type, indices)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgDrawElements", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":406
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgEnable (GLenum cap) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgEnable(cap)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgEnable(GLenum __pyx_v_cap) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":407
 * 
 * cdef void __stdcall dbgEnable (GLenum cap) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgEnable(cap)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":408
 * cdef void __stdcall dbgEnable (GLenum cap) nogil:
 *     with gil:
 *         gil_dbgEnable(cap)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgEnable (GLenum cap) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgEnable(__pyx_v_cap); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 408, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":407
 * 
 * cdef void __stdcall dbgEnable (GLenum cap) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgEnable(cap)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":406
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgEnable (GLenum cap) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgEnable(cap)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgEnable", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":410
 *         gil_dbgEnable(cap)
 * 
 * cdef void __stdcall gil_dbgEnable (GLenum cap) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glEnable( cap = ", cap, ", )")
 *     cgl_native.glEnable ( cap)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgEnable(GLenum __pyx_v_cap) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgEnable", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":411
 * 
 * cdef void __stdcall gil_dbgEnable (GLenum cap) with gil:
 *     gl_debug_print("GL glEnable( cap = ", cap, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glEnable ( cap)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 411, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_cap); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 411, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glEnable_cap, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 411, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":412
 * cdef void __stdcall gil_dbgEnable (GLenum cap) with gil:
 *     gl_debug_print("GL glEnable( cap = ", cap, ", )")
 *     cgl_native.glEnable ( cap)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glEnable(__pyx_v_cap); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 412, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":413
 *     gl_debug_print("GL glEnable( cap = ", cap, ", )")
 *     cgl_native.glEnable ( cap)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgEnableVertexAttribArray (GLuint index) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 413, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 413, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":410
 *         gil_dbgEnable(cap)
 * 
 * cdef void __stdcall gil_dbgEnable (GLenum cap) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glEnable( cap = ", cap, ", )")
 *     cgl_native.glEnable ( cap)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgEnable", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":415
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgEnableVertexAttribArray (GLuint index) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgEnableVertexAttribArray(index)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgEnableVertexAttribArray(GLuint __pyx_v_index) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":416
 * 
 * cdef void __stdcall dbgEnableVertexAttribArray (GLuint index) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgEnableVertexAttribArray(index)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":417
 * cdef void __stdcall dbgEnableVertexAttribArray (GLuint index) nogil:
 *     with gil:
 *         gil_dbgEnableVertexAttribArray(index)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgEnableVertexAttribArray (GLuint index) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgEnableVertexAttribArray(__pyx_v_index); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 417, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":416
 * 
 * cdef void __stdcall dbgEnableVertexAttribArray (GLuint index) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgEnableVertexAttribArray(index)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":415
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgEnableVertexAttribArray (GLuint index) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgEnableVertexAttribArray(index)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgEnableVertexAttribArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":419
 *         gil_dbgEnableVertexAttribArray(index)
 * 
 * cdef void __stdcall gil_dbgEnableVertexAttribArray (GLuint index) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glEnableVertexAttribArray( index = ", index, ", )")
 *     cgl_native.glEnableVertexAttribArray ( index)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgEnableVertexAttribArray(GLuint __pyx_v_index) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgEnableVertexAttribArray", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":420
 * 
 * cdef void __stdcall gil_dbgEnableVertexAttribArray (GLuint index) with gil:
 *     gl_debug_print("GL glEnableVertexAttribArray( index = ", index, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glEnableVertexAttribArray ( index)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 420, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_index); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 420, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glEnableVertexAttribArray_ind, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 420, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":421
 * cdef void __stdcall gil_dbgEnableVertexAttribArray (GLuint index) with gil:
 *     gl_debug_print("GL glEnableVertexAttribArray( index = ", index, ", )")
 *     cgl_native.glEnableVertexAttribArray ( index)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glEnableVertexAttribArray(__pyx_v_index); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 421, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":422
 *     gl_debug_print("GL glEnableVertexAttribArray( index = ", index, ", )")
 *     cgl_native.glEnableVertexAttribArray ( index)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgFinish () nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 422, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 422, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":419
 *         gil_dbgEnableVertexAttribArray(index)
 * 
 * cdef void __stdcall gil_dbgEnableVertexAttribArray (GLuint index) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glEnableVertexAttribArray( index = ", index, ", )")
 *     cgl_native.glEnableVertexAttribArray ( index)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgEnableVertexAttribArray", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":424
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgFinish () nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgFinish()
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgFinish(void) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":425
 * 
 * cdef void __stdcall dbgFinish () nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgFinish()
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":426
 * cdef void __stdcall dbgFinish () nogil:
 *     with gil:
 *         gil_dbgFinish()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgFinish () with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgFinish(); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 426, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":425
 * 
 * cdef void __stdcall dbgFinish () nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgFinish()
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":424
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgFinish () nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgFinish()
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgFinish", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":428
 *         gil_dbgFinish()
 * 
 * cdef void __stdcall gil_dbgFinish () with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glFinish( )")
 *     cgl_native.glFinish ()
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgFinish(void) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgFinish", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":429
 * 
 * cdef void __stdcall gil_dbgFinish () with gil:
 *     gl_debug_print("GL glFinish( )")             # <<<<<<<<<<<<<<
 *     cgl_native.glFinish ()
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 429, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glFinish};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 429, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":430
 * cdef void __stdcall gil_dbgFinish () with gil:
 *     gl_debug_print("GL glFinish( )")
 *     cgl_native.glFinish ()             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glFinish(); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 430, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":431
 *     gl_debug_print("GL glFinish( )")
 *     cgl_native.glFinish ()
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgFlush () nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 431, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_2, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 431, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":428
 *         gil_dbgFinish()
 * 
 * cdef void __stdcall gil_dbgFinish () with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glFinish( )")
 *     cgl_native.glFinish ()
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgFinish", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":433
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgFlush () nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgFlush()
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgFlush(void) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":434
 * 
 * cdef void __stdcall dbgFlush () nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgFlush()
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":435
 * cdef void __stdcall dbgFlush () nogil:
 *     with gil:
 *         gil_dbgFlush()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgFlush () with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgFlush(); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 435, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":434
 * 
 * cdef void __stdcall dbgFlush () nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgFlush()
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":433
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgFlush () nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgFlush()
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgFlush", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":437
 *         gil_dbgFlush()
 * 
 * cdef void __stdcall gil_dbgFlush () with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glFlush( )")
 *     cgl_native.glFlush ()
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgFlush(void) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  size_t __pyx_t_4;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgFlush", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":438
 * 
 * cdef void __stdcall gil_dbgFlush () with gil:
 *     gl_debug_print("GL glFlush( )")             # <<<<<<<<<<<<<<
 *     cgl_native.glFlush ()
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 438, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glFlush};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_4, (2-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 438, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":439
 * cdef void __stdcall gil_dbgFlush () with gil:
 *     gl_debug_print("GL glFlush( )")
 *     cgl_native.glFlush ()             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glFlush(); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 439, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":440
 *     gl_debug_print("GL glFlush( )")
 *     cgl_native.glFlush ()
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_2, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 440, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_4 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_2))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_2);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_2, __pyx__function);
    __pyx_t_4 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_2, __pyx_callargs+__pyx_t_4, (1-__pyx_t_4) | (__pyx_t_4*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 440, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":437
 *         gil_dbgFlush()
 * 
 * cdef void __stdcall gil_dbgFlush () with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glFlush( )")
 *     cgl_native.glFlush ()
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgFlush", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":442
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgFramebufferRenderbuffer(GLenum __pyx_v_target, GLenum __pyx_v_attachment, GLenum __pyx_v_renderbuffertarget, GLuint __pyx_v_renderbuffer) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":443
 * 
 * cdef void __stdcall dbgFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":444
 * cdef void __stdcall dbgFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) nogil:
 *     with gil:
 *         gil_dbgFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgFramebufferRenderbuffer(__pyx_v_target, __pyx_v_attachment, __pyx_v_renderbuffertarget, __pyx_v_renderbuffer); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 444, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":443
 * 
 * cdef void __stdcall dbgFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":442
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgFramebufferRenderbuffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":446
 *         gil_dbgFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer)
 * 
 * cdef void __stdcall gil_dbgFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glFramebufferRenderbuffer( target = ", target, ", attachment = ", attachment, ", renderbuffertarget = ", renderbuffertarget, ", renderbuffer = ", renderbuffer, ", )")
 *     cgl_native.glFramebufferRenderbuffer ( target, attachment, renderbuffertarget, renderbuffer)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgFramebufferRenderbuffer(GLenum __pyx_v_target, GLenum __pyx_v_attachment, GLenum __pyx_v_renderbuffertarget, GLuint __pyx_v_renderbuffer) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgFramebufferRenderbuffer", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":447
 * 
 * cdef void __stdcall gil_dbgFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) with gil:
 *     gl_debug_print("GL glFramebufferRenderbuffer( target = ", target, ", attachment = ", attachment, ", renderbuffertarget = ", renderbuffertarget, ", renderbuffer = ", renderbuffer, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glFramebufferRenderbuffer ( target, attachment, renderbuffertarget, renderbuffer)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 447, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_target); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 447, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLenum(__pyx_v_attachment); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 447, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_GLenum(__pyx_v_renderbuffertarget); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 447, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyLong_From_GLuint(__pyx_v_renderbuffer); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 447, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[10] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glFramebufferRenderbuffer_tar, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_attachment, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_renderbuffertarget, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_renderbuffer, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (10-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 447, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":448
 * cdef void __stdcall gil_dbgFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) with gil:
 *     gl_debug_print("GL glFramebufferRenderbuffer( target = ", target, ", attachment = ", attachment, ", renderbuffertarget = ", renderbuffertarget, ", renderbuffer = ", renderbuffer, ", )")
 *     cgl_native.glFramebufferRenderbuffer ( target, attachment, renderbuffertarget, renderbuffer)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glFramebufferRenderbuffer(__pyx_v_target, __pyx_v_attachment, __pyx_v_renderbuffertarget, __pyx_v_renderbuffer); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 448, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":449
 *     gl_debug_print("GL glFramebufferRenderbuffer( target = ", target, ", attachment = ", attachment, ", renderbuffertarget = ", renderbuffertarget, ", renderbuffer = ", renderbuffer, ", )")
 *     cgl_native.glFramebufferRenderbuffer ( target, attachment, renderbuffertarget, renderbuffer)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 449, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 449, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":446
 *         gil_dbgFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer)
 * 
 * cdef void __stdcall gil_dbgFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glFramebufferRenderbuffer( target = ", target, ", attachment = ", attachment, ", renderbuffertarget = ", renderbuffertarget, ", renderbuffer = ", renderbuffer, ", )")
 *     cgl_native.glFramebufferRenderbuffer ( target, attachment, renderbuffertarget, renderbuffer)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgFramebufferRenderbuffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":451
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgFramebufferTexture2D(target, attachment, textarget, texture, level)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgFramebufferTexture2D(GLenum __pyx_v_target, GLenum __pyx_v_attachment, GLenum __pyx_v_textarget, GLuint __pyx_v_texture, GLint __pyx_v_level) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":452
 * 
 * cdef void __stdcall dbgFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgFramebufferTexture2D(target, attachment, textarget, texture, level)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":453
 * cdef void __stdcall dbgFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) nogil:
 *     with gil:
 *         gil_dbgFramebufferTexture2D(target, attachment, textarget, texture, level)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgFramebufferTexture2D(__pyx_v_target, __pyx_v_attachment, __pyx_v_textarget, __pyx_v_texture, __pyx_v_level); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 453, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":452
 * 
 * cdef void __stdcall dbgFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgFramebufferTexture2D(target, attachment, textarget, texture, level)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":451
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgFramebufferTexture2D(target, attachment, textarget, texture, level)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgFramebufferTexture2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":455
 *         gil_dbgFramebufferTexture2D(target, attachment, textarget, texture, level)
 * 
 * cdef void __stdcall gil_dbgFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glFramebufferTexture2D( target = ", target, ", attachment = ", attachment, ", textarget = ", textarget, ", texture = ", texture, ", level = ", level, ", )")
 *     cgl_native.glFramebufferTexture2D ( target, attachment, textarget, texture, level)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgFramebufferTexture2D(GLenum __pyx_v_target, GLenum __pyx_v_attachment, GLenum __pyx_v_textarget, GLuint __pyx_v_texture, GLint __pyx_v_level) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  size_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgFramebufferTexture2D", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":456
 * 
 * cdef void __stdcall gil_dbgFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) with gil:
 *     gl_debug_print("GL glFramebufferTexture2D( target = ", target, ", attachment = ", attachment, ", textarget = ", textarget, ", texture = ", texture, ", level = ", level, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glFramebufferTexture2D ( target, attachment, textarget, texture, level)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 456, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_target); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 456, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLenum(__pyx_v_attachment); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 456, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_GLenum(__pyx_v_textarget); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 456, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyLong_From_GLuint(__pyx_v_texture); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 456, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyLong_From_GLint(__pyx_v_level); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 456, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_9 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[12] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glFramebufferTexture2D_target, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_attachment, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_textarget, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_texture, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u_level, __pyx_t_8, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_9, (12-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 456, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":457
 * cdef void __stdcall gil_dbgFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) with gil:
 *     gl_debug_print("GL glFramebufferTexture2D( target = ", target, ", attachment = ", attachment, ", textarget = ", textarget, ", texture = ", texture, ", level = ", level, ", )")
 *     cgl_native.glFramebufferTexture2D ( target, attachment, textarget, texture, level)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glFramebufferTexture2D(__pyx_v_target, __pyx_v_attachment, __pyx_v_textarget, __pyx_v_texture, __pyx_v_level); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 457, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":458
 *     gl_debug_print("GL glFramebufferTexture2D( target = ", target, ", attachment = ", attachment, ", textarget = ", textarget, ", texture = ", texture, ", level = ", level, ", )")
 *     cgl_native.glFramebufferTexture2D ( target, attachment, textarget, texture, level)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgFrontFace (GLenum mode) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 458, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_8))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_8);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_8);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_8, __pyx__function);
    __pyx_t_9 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_8, __pyx_callargs+__pyx_t_9, (1-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 458, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":455
 *         gil_dbgFramebufferTexture2D(target, attachment, textarget, texture, level)
 * 
 * cdef void __stdcall gil_dbgFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glFramebufferTexture2D( target = ", target, ", attachment = ", attachment, ", textarget = ", textarget, ", texture = ", texture, ", level = ", level, ", )")
 *     cgl_native.glFramebufferTexture2D ( target, attachment, textarget, texture, level)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgFramebufferTexture2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":460
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgFrontFace (GLenum mode) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgFrontFace(mode)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgFrontFace(GLenum __pyx_v_mode) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":461
 * 
 * cdef void __stdcall dbgFrontFace (GLenum mode) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgFrontFace(mode)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":462
 * cdef void __stdcall dbgFrontFace (GLenum mode) nogil:
 *     with gil:
 *         gil_dbgFrontFace(mode)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgFrontFace (GLenum mode) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgFrontFace(__pyx_v_mode); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 462, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":461
 * 
 * cdef void __stdcall dbgFrontFace (GLenum mode) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgFrontFace(mode)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":460
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgFrontFace (GLenum mode) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgFrontFace(mode)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgFrontFace", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":464
 *         gil_dbgFrontFace(mode)
 * 
 * cdef void __stdcall gil_dbgFrontFace (GLenum mode) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glFrontFace( mode = ", mode, ", )")
 *     cgl_native.glFrontFace ( mode)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgFrontFace(GLenum __pyx_v_mode) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgFrontFace", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":465
 * 
 * cdef void __stdcall gil_dbgFrontFace (GLenum mode) with gil:
 *     gl_debug_print("GL glFrontFace( mode = ", mode, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glFrontFace ( mode)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 465, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_mode); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 465, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glFrontFace_mode, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 465, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":466
 * cdef void __stdcall gil_dbgFrontFace (GLenum mode) with gil:
 *     gl_debug_print("GL glFrontFace( mode = ", mode, ", )")
 *     cgl_native.glFrontFace ( mode)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glFrontFace(__pyx_v_mode); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 466, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":467
 *     gl_debug_print("GL glFrontFace( mode = ", mode, ", )")
 *     cgl_native.glFrontFace ( mode)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgGenBuffers (GLsizei n, GLuint* buffers) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 467, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 467, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":464
 *         gil_dbgFrontFace(mode)
 * 
 * cdef void __stdcall gil_dbgFrontFace (GLenum mode) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glFrontFace( mode = ", mode, ", )")
 *     cgl_native.glFrontFace ( mode)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgFrontFace", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":469
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGenBuffers (GLsizei n, GLuint* buffers) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGenBuffers(n, buffers)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGenBuffers(GLsizei __pyx_v_n, GLuint *__pyx_v_buffers) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":470
 * 
 * cdef void __stdcall dbgGenBuffers (GLsizei n, GLuint* buffers) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGenBuffers(n, buffers)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":471
 * cdef void __stdcall dbgGenBuffers (GLsizei n, GLuint* buffers) nogil:
 *     with gil:
 *         gil_dbgGenBuffers(n, buffers)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgGenBuffers (GLsizei n, GLuint* buffers) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGenBuffers(__pyx_v_n, __pyx_v_buffers); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 471, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":470
 * 
 * cdef void __stdcall dbgGenBuffers (GLsizei n, GLuint* buffers) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGenBuffers(n, buffers)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":469
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGenBuffers (GLsizei n, GLuint* buffers) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGenBuffers(n, buffers)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgGenBuffers", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":473
 *         gil_dbgGenBuffers(n, buffers)
 * 
 * cdef void __stdcall gil_dbgGenBuffers (GLsizei n, GLuint* buffers) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGenBuffers( n = ", n, ", buffers*=", repr(hex(<long long> buffers)), ", )")
 *     cgl_native.glGenBuffers ( n, buffers)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGenBuffers(GLsizei __pyx_v_n, GLuint *__pyx_v_buffers) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgGenBuffers", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":474
 * 
 * cdef void __stdcall gil_dbgGenBuffers (GLsizei n, GLuint* buffers) with gil:
 *     gl_debug_print("GL glGenBuffers( n = ", n, ", buffers*=", repr(hex(<long long> buffers)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glGenBuffers ( n, buffers)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 474, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLsizei(__pyx_v_n); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 474, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_buffers)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 474, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyNumber_Hex(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 474, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = PyObject_Repr(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 474, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[6] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glGenBuffers_n, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_buffers, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_7, (6-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 474, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":475
 * cdef void __stdcall gil_dbgGenBuffers (GLsizei n, GLuint* buffers) with gil:
 *     gl_debug_print("GL glGenBuffers( n = ", n, ", buffers*=", repr(hex(<long long> buffers)), ", )")
 *     cgl_native.glGenBuffers ( n, buffers)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glGenBuffers(__pyx_v_n, __pyx_v_buffers); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 475, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":476
 *     gl_debug_print("GL glGenBuffers( n = ", n, ", buffers*=", repr(hex(<long long> buffers)), ", )")
 *     cgl_native.glGenBuffers ( n, buffers)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgGenerateMipmap (GLenum target) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 476, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 476, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":473
 *         gil_dbgGenBuffers(n, buffers)
 * 
 * cdef void __stdcall gil_dbgGenBuffers (GLsizei n, GLuint* buffers) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGenBuffers( n = ", n, ", buffers*=", repr(hex(<long long> buffers)), ", )")
 *     cgl_native.glGenBuffers ( n, buffers)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgGenBuffers", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":478
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGenerateMipmap (GLenum target) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGenerateMipmap(target)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGenerateMipmap(GLenum __pyx_v_target) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":479
 * 
 * cdef void __stdcall dbgGenerateMipmap (GLenum target) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGenerateMipmap(target)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":480
 * cdef void __stdcall dbgGenerateMipmap (GLenum target) nogil:
 *     with gil:
 *         gil_dbgGenerateMipmap(target)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgGenerateMipmap (GLenum target) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGenerateMipmap(__pyx_v_target); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 480, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":479
 * 
 * cdef void __stdcall dbgGenerateMipmap (GLenum target) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGenerateMipmap(target)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":478
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGenerateMipmap (GLenum target) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGenerateMipmap(target)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgGenerateMipmap", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":482
 *         gil_dbgGenerateMipmap(target)
 * 
 * cdef void __stdcall gil_dbgGenerateMipmap (GLenum target) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGenerateMipmap( target = ", target, ", )")
 *     cgl_native.glGenerateMipmap ( target)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGenerateMipmap(GLenum __pyx_v_target) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgGenerateMipmap", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":483
 * 
 * cdef void __stdcall gil_dbgGenerateMipmap (GLenum target) with gil:
 *     gl_debug_print("GL glGenerateMipmap( target = ", target, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glGenerateMipmap ( target)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 483, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_target); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 483, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glGenerateMipmap_target, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 483, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":484
 * cdef void __stdcall gil_dbgGenerateMipmap (GLenum target) with gil:
 *     gl_debug_print("GL glGenerateMipmap( target = ", target, ", )")
 *     cgl_native.glGenerateMipmap ( target)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glGenerateMipmap(__pyx_v_target); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 484, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":485
 *     gl_debug_print("GL glGenerateMipmap( target = ", target, ", )")
 *     cgl_native.glGenerateMipmap ( target)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgGenFramebuffers (GLsizei n, GLuint* framebuffers) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 485, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 485, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":482
 *         gil_dbgGenerateMipmap(target)
 * 
 * cdef void __stdcall gil_dbgGenerateMipmap (GLenum target) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGenerateMipmap( target = ", target, ", )")
 *     cgl_native.glGenerateMipmap ( target)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgGenerateMipmap", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":487
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGenFramebuffers (GLsizei n, GLuint* framebuffers) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGenFramebuffers(n,  framebuffers)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGenFramebuffers(GLsizei __pyx_v_n, GLuint *__pyx_v_framebuffers) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":488
 * 
 * cdef void __stdcall dbgGenFramebuffers (GLsizei n, GLuint* framebuffers) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGenFramebuffers(n,  framebuffers)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":489
 * cdef void __stdcall dbgGenFramebuffers (GLsizei n, GLuint* framebuffers) nogil:
 *     with gil:
 *         gil_dbgGenFramebuffers(n,  framebuffers)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgGenFramebuffers (GLsizei n, GLuint* framebuffers) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGenFramebuffers(__pyx_v_n, __pyx_v_framebuffers); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 489, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":488
 * 
 * cdef void __stdcall dbgGenFramebuffers (GLsizei n, GLuint* framebuffers) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGenFramebuffers(n,  framebuffers)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":487
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGenFramebuffers (GLsizei n, GLuint* framebuffers) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGenFramebuffers(n,  framebuffers)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgGenFramebuffers", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":491
 *         gil_dbgGenFramebuffers(n,  framebuffers)
 * 
 * cdef void __stdcall gil_dbgGenFramebuffers (GLsizei n, GLuint* framebuffers) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGenFramebuffers( n = ", n, ", framebuffers*=", repr(hex(<long long> framebuffers)), ", )")
 *     cgl_native.glGenFramebuffers ( n, framebuffers)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGenFramebuffers(GLsizei __pyx_v_n, GLuint *__pyx_v_framebuffers) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgGenFramebuffers", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":492
 * 
 * cdef void __stdcall gil_dbgGenFramebuffers (GLsizei n, GLuint* framebuffers) with gil:
 *     gl_debug_print("GL glGenFramebuffers( n = ", n, ", framebuffers*=", repr(hex(<long long> framebuffers)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glGenFramebuffers ( n, framebuffers)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 492, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLsizei(__pyx_v_n); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 492, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_framebuffers)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 492, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyNumber_Hex(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 492, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = PyObject_Repr(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 492, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[6] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glGenFramebuffers_n, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_framebuffers, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_7, (6-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 492, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":493
 * cdef void __stdcall gil_dbgGenFramebuffers (GLsizei n, GLuint* framebuffers) with gil:
 *     gl_debug_print("GL glGenFramebuffers( n = ", n, ", framebuffers*=", repr(hex(<long long> framebuffers)), ", )")
 *     cgl_native.glGenFramebuffers ( n, framebuffers)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glGenFramebuffers(__pyx_v_n, __pyx_v_framebuffers); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 493, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":494
 *     gl_debug_print("GL glGenFramebuffers( n = ", n, ", framebuffers*=", repr(hex(<long long> framebuffers)), ", )")
 *     cgl_native.glGenFramebuffers ( n, framebuffers)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgGenRenderbuffers (GLsizei n, GLuint* renderbuffers) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 494, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 494, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":491
 *         gil_dbgGenFramebuffers(n,  framebuffers)
 * 
 * cdef void __stdcall gil_dbgGenFramebuffers (GLsizei n, GLuint* framebuffers) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGenFramebuffers( n = ", n, ", framebuffers*=", repr(hex(<long long> framebuffers)), ", )")
 *     cgl_native.glGenFramebuffers ( n, framebuffers)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgGenFramebuffers", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":496
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGenRenderbuffers (GLsizei n, GLuint* renderbuffers) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGenRenderbuffers(n, renderbuffers)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGenRenderbuffers(GLsizei __pyx_v_n, GLuint *__pyx_v_renderbuffers) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":497
 * 
 * cdef void __stdcall dbgGenRenderbuffers (GLsizei n, GLuint* renderbuffers) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGenRenderbuffers(n, renderbuffers)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":498
 * cdef void __stdcall dbgGenRenderbuffers (GLsizei n, GLuint* renderbuffers) nogil:
 *     with gil:
 *         gil_dbgGenRenderbuffers(n, renderbuffers)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgGenRenderbuffers (GLsizei n, GLuint* renderbuffers) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGenRenderbuffers(__pyx_v_n, __pyx_v_renderbuffers); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 498, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":497
 * 
 * cdef void __stdcall dbgGenRenderbuffers (GLsizei n, GLuint* renderbuffers) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGenRenderbuffers(n, renderbuffers)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":496
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGenRenderbuffers (GLsizei n, GLuint* renderbuffers) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGenRenderbuffers(n, renderbuffers)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgGenRenderbuffers", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":500
 *         gil_dbgGenRenderbuffers(n, renderbuffers)
 * 
 * cdef void __stdcall gil_dbgGenRenderbuffers (GLsizei n, GLuint* renderbuffers) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGenRenderbuffers( n = ", n, ", renderbuffers*=", repr(hex(<long long> renderbuffers)), ", )")
 *     cgl_native.glGenRenderbuffers ( n, renderbuffers)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGenRenderbuffers(GLsizei __pyx_v_n, GLuint *__pyx_v_renderbuffers) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgGenRenderbuffers", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":501
 * 
 * cdef void __stdcall gil_dbgGenRenderbuffers (GLsizei n, GLuint* renderbuffers) with gil:
 *     gl_debug_print("GL glGenRenderbuffers( n = ", n, ", renderbuffers*=", repr(hex(<long long> renderbuffers)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glGenRenderbuffers ( n, renderbuffers)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 501, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLsizei(__pyx_v_n); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 501, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_renderbuffers)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 501, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyNumber_Hex(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 501, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = PyObject_Repr(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 501, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[6] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glGenRenderbuffers_n, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_renderbuffers, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_7, (6-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 501, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":502
 * cdef void __stdcall gil_dbgGenRenderbuffers (GLsizei n, GLuint* renderbuffers) with gil:
 *     gl_debug_print("GL glGenRenderbuffers( n = ", n, ", renderbuffers*=", repr(hex(<long long> renderbuffers)), ", )")
 *     cgl_native.glGenRenderbuffers ( n, renderbuffers)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glGenRenderbuffers(__pyx_v_n, __pyx_v_renderbuffers); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 502, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":503
 *     gl_debug_print("GL glGenRenderbuffers( n = ", n, ", renderbuffers*=", repr(hex(<long long> renderbuffers)), ", )")
 *     cgl_native.glGenRenderbuffers ( n, renderbuffers)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgGenTextures (GLsizei n, GLuint* textures) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 503, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 503, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":500
 *         gil_dbgGenRenderbuffers(n, renderbuffers)
 * 
 * cdef void __stdcall gil_dbgGenRenderbuffers (GLsizei n, GLuint* renderbuffers) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGenRenderbuffers( n = ", n, ", renderbuffers*=", repr(hex(<long long> renderbuffers)), ", )")
 *     cgl_native.glGenRenderbuffers ( n, renderbuffers)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgGenRenderbuffers", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":505
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGenTextures (GLsizei n, GLuint* textures) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGenTextures(n, textures)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGenTextures(GLsizei __pyx_v_n, GLuint *__pyx_v_textures) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":506
 * 
 * cdef void __stdcall dbgGenTextures (GLsizei n, GLuint* textures) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGenTextures(n, textures)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":507
 * cdef void __stdcall dbgGenTextures (GLsizei n, GLuint* textures) nogil:
 *     with gil:
 *         gil_dbgGenTextures(n, textures)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgGenTextures (GLsizei n, GLuint* textures) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGenTextures(__pyx_v_n, __pyx_v_textures); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 507, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":506
 * 
 * cdef void __stdcall dbgGenTextures (GLsizei n, GLuint* textures) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGenTextures(n, textures)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":505
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGenTextures (GLsizei n, GLuint* textures) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGenTextures(n, textures)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgGenTextures", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":509
 *         gil_dbgGenTextures(n, textures)
 * 
 * cdef void __stdcall gil_dbgGenTextures (GLsizei n, GLuint* textures) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGenTextures( n = ", n, ", textures*=", repr(hex(<long long> textures)), ", )")
 *     cgl_native.glGenTextures ( n, textures)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGenTextures(GLsizei __pyx_v_n, GLuint *__pyx_v_textures) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgGenTextures", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":510
 * 
 * cdef void __stdcall gil_dbgGenTextures (GLsizei n, GLuint* textures) with gil:
 *     gl_debug_print("GL glGenTextures( n = ", n, ", textures*=", repr(hex(<long long> textures)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glGenTextures ( n, textures)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 510, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLsizei(__pyx_v_n); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 510, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_textures)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 510, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyNumber_Hex(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 510, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = PyObject_Repr(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 510, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[6] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glGenTextures_n, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_textures, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_7, (6-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 510, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":511
 * cdef void __stdcall gil_dbgGenTextures (GLsizei n, GLuint* textures) with gil:
 *     gl_debug_print("GL glGenTextures( n = ", n, ", textures*=", repr(hex(<long long> textures)), ", )")
 *     cgl_native.glGenTextures ( n, textures)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glGenTextures(__pyx_v_n, __pyx_v_textures); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 511, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":512
 *     gl_debug_print("GL glGenTextures( n = ", n, ", textures*=", repr(hex(<long long> textures)), ", )")
 *     cgl_native.glGenTextures ( n, textures)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgGetActiveAttrib (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 512, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 512, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":509
 *         gil_dbgGenTextures(n, textures)
 * 
 * cdef void __stdcall gil_dbgGenTextures (GLsizei n, GLuint* textures) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGenTextures( n = ", n, ", textures*=", repr(hex(<long long> textures)), ", )")
 *     cgl_native.glGenTextures ( n, textures)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgGenTextures", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":514
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGetActiveAttrib (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetActiveAttrib(program, index, bufsize,  length,  size,  type,  name)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetActiveAttrib(GLuint __pyx_v_program, GLuint __pyx_v_index, GLsizei __pyx_v_bufsize, GLsizei *__pyx_v_length, GLint *__pyx_v_size, GLenum *__pyx_v_type, GLchar *__pyx_v_name) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":515
 * 
 * cdef void __stdcall dbgGetActiveAttrib (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetActiveAttrib(program, index, bufsize,  length,  size,  type,  name)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":516
 * cdef void __stdcall dbgGetActiveAttrib (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) nogil:
 *     with gil:
 *         gil_dbgGetActiveAttrib(program, index, bufsize,  length,  size,  type,  name)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgGetActiveAttrib (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetActiveAttrib(__pyx_v_program, __pyx_v_index, __pyx_v_bufsize, __pyx_v_length, __pyx_v_size, __pyx_v_type, __pyx_v_name); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 516, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":515
 * 
 * cdef void __stdcall dbgGetActiveAttrib (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetActiveAttrib(program, index, bufsize,  length,  size,  type,  name)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":514
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGetActiveAttrib (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetActiveAttrib(program, index, bufsize,  length,  size,  type,  name)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgGetActiveAttrib", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":518
 *         gil_dbgGetActiveAttrib(program, index, bufsize,  length,  size,  type,  name)
 * 
 * cdef void __stdcall gil_dbgGetActiveAttrib (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetActiveAttrib( program = ", program, ", index = ", index, ", bufsize = ", bufsize, ", length*=", repr(hex(<long long> length)), ", size*=", repr(hex(<long long> size)), ", type*=", repr(hex(<long long> type)), ", name*=", repr(hex(<long long> name)), ", )")
 *     cgl_native.glGetActiveAttrib ( program, index, bufsize, length, size, type, name)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetActiveAttrib(GLuint __pyx_v_program, GLuint __pyx_v_index, GLsizei __pyx_v_bufsize, GLsizei *__pyx_v_length, GLint *__pyx_v_size, GLenum *__pyx_v_type, GLchar *__pyx_v_name) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  size_t __pyx_t_12;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgGetActiveAttrib", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":519
 * 
 * cdef void __stdcall gil_dbgGetActiveAttrib (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) with gil:
 *     gl_debug_print("GL glGetActiveAttrib( program = ", program, ", index = ", index, ", bufsize = ", bufsize, ", length*=", repr(hex(<long long> length)), ", size*=", repr(hex(<long long> size)), ", type*=", repr(hex(<long long> type)), ", name*=", repr(hex(<long long> name)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glGetActiveAttrib ( program, index, bufsize, length, size, type, name)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 519, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_program); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 519, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLuint(__pyx_v_index); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 519, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_GLsizei(__pyx_v_bufsize); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 519, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_length)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 519, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyNumber_Hex(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 519, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyObject_Repr(__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 519, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_size)); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 519, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = __Pyx_PyNumber_Hex(__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 519, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyObject_Repr(__pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 519, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __pyx_t_9 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_type)); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 519, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_10 = __Pyx_PyNumber_Hex(__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 519, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __pyx_t_9 = PyObject_Repr(__pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 519, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  __pyx_t_10 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_name)); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 519, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __pyx_t_11 = __Pyx_PyNumber_Hex(__pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 519, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  __pyx_t_10 = PyObject_Repr(__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 519, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
  __pyx_t_12 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_12 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[16] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glGetActiveAttrib_program, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_index, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_bufsize, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_length, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u_size_2, __pyx_t_8, __pyx_mstate_global->__pyx_kp_u_type_2, __pyx_t_9, __pyx_mstate_global->__pyx_kp_u_name, __pyx_t_10, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_12, (16-__pyx_t_12) | (__pyx_t_12*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 519, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":520
 * cdef void __stdcall gil_dbgGetActiveAttrib (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) with gil:
 *     gl_debug_print("GL glGetActiveAttrib( program = ", program, ", index = ", index, ", bufsize = ", bufsize, ", length*=", repr(hex(<long long> length)), ", size*=", repr(hex(<long long> size)), ", type*=", repr(hex(<long long> type)), ", name*=", repr(hex(<long long> name)), ", )")
 *     cgl_native.glGetActiveAttrib ( program, index, bufsize, length, size, type, name)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glGetActiveAttrib(__pyx_v_program, __pyx_v_index, __pyx_v_bufsize, __pyx_v_length, __pyx_v_size, __pyx_v_type, __pyx_v_name); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 520, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":521
 *     gl_debug_print("GL glGetActiveAttrib( program = ", program, ", index = ", index, ", bufsize = ", bufsize, ", length*=", repr(hex(<long long> length)), ", size*=", repr(hex(<long long> size)), ", type*=", repr(hex(<long long> type)), ", name*=", repr(hex(<long long> name)), ", )")
 *     cgl_native.glGetActiveAttrib ( program, index, bufsize, length, size, type, name)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgGetActiveUniform (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 521, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __pyx_t_12 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_10))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_10);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_10);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_10, __pyx__function);
    __pyx_t_12 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_10, __pyx_callargs+__pyx_t_12, (1-__pyx_t_12) | (__pyx_t_12*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 521, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":518
 *         gil_dbgGetActiveAttrib(program, index, bufsize,  length,  size,  type,  name)
 * 
 * cdef void __stdcall gil_dbgGetActiveAttrib (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetActiveAttrib( program = ", program, ", index = ", index, ", bufsize = ", bufsize, ", length*=", repr(hex(<long long> length)), ", size*=", repr(hex(<long long> size)), ", type*=", repr(hex(<long long> type)), ", name*=", repr(hex(<long long> name)), ", )")
 *     cgl_native.glGetActiveAttrib ( program, index, bufsize, length, size, type, name)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgGetActiveAttrib", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":523
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGetActiveUniform (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetActiveUniform(program, index, bufsize,  length,  size,  type,  name)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetActiveUniform(GLuint __pyx_v_program, GLuint __pyx_v_index, GLsizei __pyx_v_bufsize, GLsizei *__pyx_v_length, GLint *__pyx_v_size, GLenum *__pyx_v_type, GLchar *__pyx_v_name) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":524
 * 
 * cdef void __stdcall dbgGetActiveUniform (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetActiveUniform(program, index, bufsize,  length,  size,  type,  name)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":525
 * cdef void __stdcall dbgGetActiveUniform (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) nogil:
 *     with gil:
 *         gil_dbgGetActiveUniform(program, index, bufsize,  length,  size,  type,  name)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgGetActiveUniform (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetActiveUniform(__pyx_v_program, __pyx_v_index, __pyx_v_bufsize, __pyx_v_length, __pyx_v_size, __pyx_v_type, __pyx_v_name); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 525, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":524
 * 
 * cdef void __stdcall dbgGetActiveUniform (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetActiveUniform(program, index, bufsize,  length,  size,  type,  name)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":523
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGetActiveUniform (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetActiveUniform(program, index, bufsize,  length,  size,  type,  name)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgGetActiveUniform", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":527
 *         gil_dbgGetActiveUniform(program, index, bufsize,  length,  size,  type,  name)
 * 
 * cdef void __stdcall gil_dbgGetActiveUniform (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetActiveUniform( program = ", program, ", index = ", index, ", bufsize = ", bufsize, ", length*=", repr(hex(<long long> length)), ", size*=", repr(hex(<long long> size)), ", type*=", repr(hex(<long long> type)), ", name*=", repr(hex(<long long> name)), ", )")
 *     cgl_native.glGetActiveUniform ( program, index, bufsize, length, size, type, name)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetActiveUniform(GLuint __pyx_v_program, GLuint __pyx_v_index, GLsizei __pyx_v_bufsize, GLsizei *__pyx_v_length, GLint *__pyx_v_size, GLenum *__pyx_v_type, GLchar *__pyx_v_name) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  size_t __pyx_t_12;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgGetActiveUniform", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":528
 * 
 * cdef void __stdcall gil_dbgGetActiveUniform (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) with gil:
 *     gl_debug_print("GL glGetActiveUniform( program = ", program, ", index = ", index, ", bufsize = ", bufsize, ", length*=", repr(hex(<long long> length)), ", size*=", repr(hex(<long long> size)), ", type*=", repr(hex(<long long> type)), ", name*=", repr(hex(<long long> name)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glGetActiveUniform ( program, index, bufsize, length, size, type, name)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 528, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_program); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 528, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLuint(__pyx_v_index); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 528, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_GLsizei(__pyx_v_bufsize); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 528, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_length)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 528, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyNumber_Hex(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 528, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyObject_Repr(__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 528, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_size)); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 528, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = __Pyx_PyNumber_Hex(__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 528, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_8 = PyObject_Repr(__pyx_t_9); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 528, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __pyx_t_9 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_type)); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 528, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_10 = __Pyx_PyNumber_Hex(__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 528, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __pyx_t_9 = PyObject_Repr(__pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 528, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  __pyx_t_10 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_name)); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 528, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __pyx_t_11 = __Pyx_PyNumber_Hex(__pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 528, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  __pyx_t_10 = PyObject_Repr(__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 528, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
  __pyx_t_12 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_12 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[16] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glGetActiveUniform_program, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_index, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_bufsize, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_length, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u_size_2, __pyx_t_8, __pyx_mstate_global->__pyx_kp_u_type_2, __pyx_t_9, __pyx_mstate_global->__pyx_kp_u_name, __pyx_t_10, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_12, (16-__pyx_t_12) | (__pyx_t_12*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 528, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":529
 * cdef void __stdcall gil_dbgGetActiveUniform (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) with gil:
 *     gl_debug_print("GL glGetActiveUniform( program = ", program, ", index = ", index, ", bufsize = ", bufsize, ", length*=", repr(hex(<long long> length)), ", size*=", repr(hex(<long long> size)), ", type*=", repr(hex(<long long> type)), ", name*=", repr(hex(<long long> name)), ", )")
 *     cgl_native.glGetActiveUniform ( program, index, bufsize, length, size, type, name)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glGetActiveUniform(__pyx_v_program, __pyx_v_index, __pyx_v_bufsize, __pyx_v_length, __pyx_v_size, __pyx_v_type, __pyx_v_name); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 529, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":530
 *     gl_debug_print("GL glGetActiveUniform( program = ", program, ", index = ", index, ", bufsize = ", bufsize, ", length*=", repr(hex(<long long> length)), ", size*=", repr(hex(<long long> size)), ", type*=", repr(hex(<long long> type)), ", name*=", repr(hex(<long long> name)), ", )")
 *     cgl_native.glGetActiveUniform ( program, index, bufsize, length, size, type, name)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgGetAttachedShaders (GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 530, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __pyx_t_12 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_10))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_10);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_10);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_10, __pyx__function);
    __pyx_t_12 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_10, __pyx_callargs+__pyx_t_12, (1-__pyx_t_12) | (__pyx_t_12*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 530, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":527
 *         gil_dbgGetActiveUniform(program, index, bufsize,  length,  size,  type,  name)
 * 
 * cdef void __stdcall gil_dbgGetActiveUniform (GLuint program, GLuint index, GLsizei bufsize, GLsizei* length, GLint* size, GLenum* type, GLchar* name) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetActiveUniform( program = ", program, ", index = ", index, ", bufsize = ", bufsize, ", length*=", repr(hex(<long long> length)), ", size*=", repr(hex(<long long> size)), ", type*=", repr(hex(<long long> type)), ", name*=", repr(hex(<long long> name)), ", )")
 *     cgl_native.glGetActiveUniform ( program, index, bufsize, length, size, type, name)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgGetActiveUniform", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":532
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGetAttachedShaders (GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetAttachedShaders(program, maxcount,  count,  shaders)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetAttachedShaders(GLuint __pyx_v_program, GLsizei __pyx_v_maxcount, GLsizei *__pyx_v_count, GLuint *__pyx_v_shaders) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":533
 * 
 * cdef void __stdcall dbgGetAttachedShaders (GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetAttachedShaders(program, maxcount,  count,  shaders)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":534
 * cdef void __stdcall dbgGetAttachedShaders (GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) nogil:
 *     with gil:
 *         gil_dbgGetAttachedShaders(program, maxcount,  count,  shaders)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgGetAttachedShaders (GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetAttachedShaders(__pyx_v_program, __pyx_v_maxcount, __pyx_v_count, __pyx_v_shaders); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 534, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":533
 * 
 * cdef void __stdcall dbgGetAttachedShaders (GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetAttachedShaders(program, maxcount,  count,  shaders)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":532
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGetAttachedShaders (GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetAttachedShaders(program, maxcount,  count,  shaders)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgGetAttachedShaders", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":536
 *         gil_dbgGetAttachedShaders(program, maxcount,  count,  shaders)
 * 
 * cdef void __stdcall gil_dbgGetAttachedShaders (GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetAttachedShaders( program = ", program, ", maxcount = ", maxcount, ", count*=", repr(hex(<long long> count)), ", shaders*=", repr(hex(<long long> shaders)), ", )")
 *     cgl_native.glGetAttachedShaders ( program, maxcount, count, shaders)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetAttachedShaders(GLuint __pyx_v_program, GLsizei __pyx_v_maxcount, GLsizei *__pyx_v_count, GLuint *__pyx_v_shaders) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  size_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgGetAttachedShaders", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":537
 * 
 * cdef void __stdcall gil_dbgGetAttachedShaders (GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) with gil:
 *     gl_debug_print("GL glGetAttachedShaders( program = ", program, ", maxcount = ", maxcount, ", count*=", repr(hex(<long long> count)), ", shaders*=", repr(hex(<long long> shaders)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glGetAttachedShaders ( program, maxcount, count, shaders)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 537, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_program); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 537, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLsizei(__pyx_v_maxcount); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 537, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_count)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 537, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyNumber_Hex(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 537, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyObject_Repr(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 537, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_shaders)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 537, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyNumber_Hex(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 537, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyObject_Repr(__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 537, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_9 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_9 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[10] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glGetAttachedShaders_program, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_maxcount, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_count_2, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_shaders, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_9, (10-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 537, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":538
 * cdef void __stdcall gil_dbgGetAttachedShaders (GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) with gil:
 *     gl_debug_print("GL glGetAttachedShaders( program = ", program, ", maxcount = ", maxcount, ", count*=", repr(hex(<long long> count)), ", shaders*=", repr(hex(<long long> shaders)), ", )")
 *     cgl_native.glGetAttachedShaders ( program, maxcount, count, shaders)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glGetAttachedShaders(__pyx_v_program, __pyx_v_maxcount, __pyx_v_count, __pyx_v_shaders); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 538, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":539
 *     gl_debug_print("GL glGetAttachedShaders( program = ", program, ", maxcount = ", maxcount, ", count*=", repr(hex(<long long> count)), ", shaders*=", repr(hex(<long long> shaders)), ", )")
 *     cgl_native.glGetAttachedShaders ( program, maxcount, count, shaders)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef int  __stdcall dbgGetAttribLocation (GLuint program, const GLchar* name) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 539, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_9 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_9 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_9, (1-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 539, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":536
 *         gil_dbgGetAttachedShaders(program, maxcount,  count,  shaders)
 * 
 * cdef void __stdcall gil_dbgGetAttachedShaders (GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetAttachedShaders( program = ", program, ", maxcount = ", maxcount, ", count*=", repr(hex(<long long> count)), ", shaders*=", repr(hex(<long long> shaders)), ", )")
 *     cgl_native.glGetAttachedShaders ( program, maxcount, count, shaders)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgGetAttachedShaders", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":541
 *     gl_check_error()
 * 
 * cdef int  __stdcall dbgGetAttribLocation (GLuint program, const GLchar* name) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         return gil_dbgGetAttribLocation(program,  <GLchar*>name)
*/

static int __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetAttribLocation(GLuint __pyx_v_program, GLchar const *__pyx_v_name) {
  int __pyx_r;
  int __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":542
 * 
 * cdef int  __stdcall dbgGetAttribLocation (GLuint program, const GLchar* name) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         return gil_dbgGetAttribLocation(program,  <GLchar*>name)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":543
 * cdef int  __stdcall dbgGetAttribLocation (GLuint program, const GLchar* name) nogil:
 *     with gil:
 *         return gil_dbgGetAttribLocation(program,  <GLchar*>name)             # <<<<<<<<<<<<<<
 * 
 * cdef int  __stdcall gil_dbgGetAttribLocation (GLuint program,  GLchar* name) with gil:
*/
        __pyx_t_1 = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetAttribLocation(__pyx_v_program, ((GLchar *)__pyx_v_name)); if (unlikely(__pyx_t_1 == ((int)-1) && PyErr_Occurred())) __PYX_ERR(0, 543, __pyx_L4_error)
        __pyx_r = __pyx_t_1;
        goto __pyx_L3_return;
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":542
 * 
 * cdef int  __stdcall dbgGetAttribLocation (GLuint program, const GLchar* name) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         return gil_dbgGetAttribLocation(program,  <GLchar*>name)
 * 
*/
      /*finally:*/ {
        __pyx_L3_return: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L0;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":541
 *     gl_check_error()
 * 
 * cdef int  __stdcall dbgGetAttribLocation (GLuint program, const GLchar* name) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         return gil_dbgGetAttribLocation(program,  <GLchar*>name)
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgGetAttribLocation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  return __pyx_r;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":545
 *         return gil_dbgGetAttribLocation(program,  <GLchar*>name)
 * 
 * cdef int  __stdcall gil_dbgGetAttribLocation (GLuint program,  GLchar* name) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetAttribLocation( program = ", program, ", name*=", repr(hex(<long long> name)), ", )")
 *     ret = cgl_native.glGetAttribLocation ( program, name)
*/

static int __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetAttribLocation(GLuint __pyx_v_program, GLchar *__pyx_v_name) {
  GLint __pyx_v_ret;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  GLint __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgGetAttribLocation", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":546
 * 
 * cdef int  __stdcall gil_dbgGetAttribLocation (GLuint program,  GLchar* name) with gil:
 *     gl_debug_print("GL glGetAttribLocation( program = ", program, ", name*=", repr(hex(<long long> name)), ", )")             # <<<<<<<<<<<<<<
 *     ret = cgl_native.glGetAttribLocation ( program, name)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 546, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_program); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 546, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_name)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 546, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyNumber_Hex(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 546, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = PyObject_Repr(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 546, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[6] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glGetAttribLocation_program, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_name, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_7, (6-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 546, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":547
 * cdef int  __stdcall gil_dbgGetAttribLocation (GLuint program,  GLchar* name) with gil:
 *     gl_debug_print("GL glGetAttribLocation( program = ", program, ", name*=", repr(hex(<long long> name)), ", )")
 *     ret = cgl_native.glGetAttribLocation ( program, name)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 *     return ret
*/
  __pyx_t_8 = __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glGetAttribLocation(__pyx_v_program, __pyx_v_name); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 547, __pyx_L1_error)
  __pyx_v_ret = __pyx_t_8;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":548
 *     gl_debug_print("GL glGetAttribLocation( program = ", program, ", name*=", repr(hex(<long long> name)), ", )")
 *     ret = cgl_native.glGetAttribLocation ( program, name)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 *     return ret
 * 
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 548, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 548, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":549
 *     ret = cgl_native.glGetAttribLocation ( program, name)
 *     gl_check_error()
 *     return ret             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgGetBooleanv (GLenum pname, GLboolean* params) nogil:
*/
  __pyx_r = __pyx_v_ret;
  goto __pyx_L0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":545
 *         return gil_dbgGetAttribLocation(program,  <GLchar*>name)
 * 
 * cdef int  __stdcall gil_dbgGetAttribLocation (GLuint program,  GLchar* name) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetAttribLocation( program = ", program, ", name*=", repr(hex(<long long> name)), ", )")
 *     ret = cgl_native.glGetAttribLocation ( program, name)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgGetAttribLocation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  return __pyx_r;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":551
 *     return ret
 * 
 * cdef void __stdcall dbgGetBooleanv (GLenum pname, GLboolean* params) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetBooleanv(pname,  params)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetBooleanv(GLenum __pyx_v_pname, GLboolean *__pyx_v_params) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":552
 * 
 * cdef void __stdcall dbgGetBooleanv (GLenum pname, GLboolean* params) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetBooleanv(pname,  params)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":553
 * cdef void __stdcall dbgGetBooleanv (GLenum pname, GLboolean* params) nogil:
 *     with gil:
 *         gil_dbgGetBooleanv(pname,  params)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgGetBooleanv (GLenum pname, GLboolean* params) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetBooleanv(__pyx_v_pname, __pyx_v_params); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 553, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":552
 * 
 * cdef void __stdcall dbgGetBooleanv (GLenum pname, GLboolean* params) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetBooleanv(pname,  params)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":551
 *     return ret
 * 
 * cdef void __stdcall dbgGetBooleanv (GLenum pname, GLboolean* params) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetBooleanv(pname,  params)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgGetBooleanv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":555
 *         gil_dbgGetBooleanv(pname,  params)
 * 
 * cdef void __stdcall gil_dbgGetBooleanv (GLenum pname, GLboolean* params) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetBooleanv( pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetBooleanv ( pname, params)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetBooleanv(GLenum __pyx_v_pname, GLboolean *__pyx_v_params) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgGetBooleanv", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":556
 * 
 * cdef void __stdcall gil_dbgGetBooleanv (GLenum pname, GLboolean* params) with gil:
 *     gl_debug_print("GL glGetBooleanv( pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glGetBooleanv ( pname, params)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 556, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_pname); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 556, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_params)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 556, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyNumber_Hex(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 556, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = PyObject_Repr(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 556, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[6] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glGetBooleanv_pname, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_params, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_7, (6-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 556, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":557
 * cdef void __stdcall gil_dbgGetBooleanv (GLenum pname, GLboolean* params) with gil:
 *     gl_debug_print("GL glGetBooleanv( pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetBooleanv ( pname, params)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glGetBooleanv(__pyx_v_pname, __pyx_v_params); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 557, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":558
 *     gl_debug_print("GL glGetBooleanv( pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetBooleanv ( pname, params)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgGetBufferParameteriv (GLenum target, GLenum pname, GLint* params) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 558, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 558, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":555
 *         gil_dbgGetBooleanv(pname,  params)
 * 
 * cdef void __stdcall gil_dbgGetBooleanv (GLenum pname, GLboolean* params) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetBooleanv( pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetBooleanv ( pname, params)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgGetBooleanv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":560
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGetBufferParameteriv (GLenum target, GLenum pname, GLint* params) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetBufferParameteriv(target, pname,  params)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetBufferParameteriv(GLenum __pyx_v_target, GLenum __pyx_v_pname, GLint *__pyx_v_params) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":561
 * 
 * cdef void __stdcall dbgGetBufferParameteriv (GLenum target, GLenum pname, GLint* params) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetBufferParameteriv(target, pname,  params)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":562
 * cdef void __stdcall dbgGetBufferParameteriv (GLenum target, GLenum pname, GLint* params) nogil:
 *     with gil:
 *         gil_dbgGetBufferParameteriv(target, pname,  params)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgGetBufferParameteriv (GLenum target, GLenum pname, GLint* params) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetBufferParameteriv(__pyx_v_target, __pyx_v_pname, __pyx_v_params); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 562, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":561
 * 
 * cdef void __stdcall dbgGetBufferParameteriv (GLenum target, GLenum pname, GLint* params) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetBufferParameteriv(target, pname,  params)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":560
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGetBufferParameteriv (GLenum target, GLenum pname, GLint* params) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetBufferParameteriv(target, pname,  params)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgGetBufferParameteriv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":564
 *         gil_dbgGetBufferParameteriv(target, pname,  params)
 * 
 * cdef void __stdcall gil_dbgGetBufferParameteriv (GLenum target, GLenum pname, GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetBufferParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetBufferParameteriv ( target, pname, params)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetBufferParameteriv(GLenum __pyx_v_target, GLenum __pyx_v_pname, GLint *__pyx_v_params) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgGetBufferParameteriv", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":565
 * 
 * cdef void __stdcall gil_dbgGetBufferParameteriv (GLenum target, GLenum pname, GLint* params) with gil:
 *     gl_debug_print("GL glGetBufferParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glGetBufferParameteriv ( target, pname, params)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 565, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_target); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 565, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLenum(__pyx_v_pname); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 565, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_params)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 565, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyNumber_Hex(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 565, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyObject_Repr(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 565, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[8] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glGetBufferParameteriv_target, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_pname, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_params, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (8-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 565, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":566
 * cdef void __stdcall gil_dbgGetBufferParameteriv (GLenum target, GLenum pname, GLint* params) with gil:
 *     gl_debug_print("GL glGetBufferParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetBufferParameteriv ( target, pname, params)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glGetBufferParameteriv(__pyx_v_target, __pyx_v_pname, __pyx_v_params); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 566, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":567
 *     gl_debug_print("GL glGetBufferParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetBufferParameteriv ( target, pname, params)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef GLenum __stdcall dbgGetError() nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 567, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 567, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":564
 *         gil_dbgGetBufferParameteriv(target, pname,  params)
 * 
 * cdef void __stdcall gil_dbgGetBufferParameteriv (GLenum target, GLenum pname, GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetBufferParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetBufferParameteriv ( target, pname, params)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgGetBufferParameteriv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":569
 *     gl_check_error()
 * 
 * cdef GLenum __stdcall dbgGetError() nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         return gil_dbgGetError()
*/

static GLenum __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetError(void) {
  GLenum __pyx_r;
  GLenum __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":570
 * 
 * cdef GLenum __stdcall dbgGetError() nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         return gil_dbgGetError()
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":571
 * cdef GLenum __stdcall dbgGetError() nogil:
 *     with gil:
 *         return gil_dbgGetError()             # <<<<<<<<<<<<<<
 * 
 * cdef GLenum __stdcall gil_dbgGetError () with gil:
*/
        __pyx_t_1 = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetError(); if (unlikely(__pyx_t_1 == ((GLenum)-1) && PyErr_Occurred())) __PYX_ERR(0, 571, __pyx_L4_error)
        __pyx_r = __pyx_t_1;
        goto __pyx_L3_return;
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":570
 * 
 * cdef GLenum __stdcall dbgGetError() nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         return gil_dbgGetError()
 * 
*/
      /*finally:*/ {
        __pyx_L3_return: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L0;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":569
 *     gl_check_error()
 * 
 * cdef GLenum __stdcall dbgGetError() nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         return gil_dbgGetError()
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgGetError", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  return __pyx_r;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":573
 *         return gil_dbgGetError()
 * 
 * cdef GLenum __stdcall gil_dbgGetError () with gil:             # <<<<<<<<<<<<<<
 *     # gl_debug_print("GL glGetError( )")
 *     return cgl_native.glGetError ()
*/

static GLenum __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetError(void) {
  GLenum __pyx_r;
  GLenum __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":575
 * cdef GLenum __stdcall gil_dbgGetError () with gil:
 *     # gl_debug_print("GL glGetError( )")
 *     return cgl_native.glGetError ()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgGetFloatv (GLenum pname, GLfloat* params) nogil:
*/
  __pyx_t_1 = __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glGetError(); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 575, __pyx_L1_error)
  __pyx_r = __pyx_t_1;
  goto __pyx_L0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":573
 *         return gil_dbgGetError()
 * 
 * cdef GLenum __stdcall gil_dbgGetError () with gil:             # <<<<<<<<<<<<<<
 *     # gl_debug_print("GL glGetError( )")
 *     return cgl_native.glGetError ()
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgGetError", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  return __pyx_r;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":577
 *     return cgl_native.glGetError ()
 * 
 * cdef void __stdcall dbgGetFloatv (GLenum pname, GLfloat* params) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetFloatv(pname,  params)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetFloatv(GLenum __pyx_v_pname, GLfloat *__pyx_v_params) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":578
 * 
 * cdef void __stdcall dbgGetFloatv (GLenum pname, GLfloat* params) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetFloatv(pname,  params)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":579
 * cdef void __stdcall dbgGetFloatv (GLenum pname, GLfloat* params) nogil:
 *     with gil:
 *         gil_dbgGetFloatv(pname,  params)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgGetFloatv (GLenum pname, GLfloat* params) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetFloatv(__pyx_v_pname, __pyx_v_params); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 579, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":578
 * 
 * cdef void __stdcall dbgGetFloatv (GLenum pname, GLfloat* params) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetFloatv(pname,  params)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":577
 *     return cgl_native.glGetError ()
 * 
 * cdef void __stdcall dbgGetFloatv (GLenum pname, GLfloat* params) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetFloatv(pname,  params)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgGetFloatv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":581
 *         gil_dbgGetFloatv(pname,  params)
 * 
 * cdef void __stdcall gil_dbgGetFloatv (GLenum pname, GLfloat* params) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetFloatv( pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetFloatv ( pname, params)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetFloatv(GLenum __pyx_v_pname, GLfloat *__pyx_v_params) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgGetFloatv", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":582
 * 
 * cdef void __stdcall gil_dbgGetFloatv (GLenum pname, GLfloat* params) with gil:
 *     gl_debug_print("GL glGetFloatv( pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glGetFloatv ( pname, params)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 582, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_pname); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 582, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_params)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 582, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyNumber_Hex(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 582, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = PyObject_Repr(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 582, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[6] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glGetFloatv_pname, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_params, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_7, (6-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 582, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":583
 * cdef void __stdcall gil_dbgGetFloatv (GLenum pname, GLfloat* params) with gil:
 *     gl_debug_print("GL glGetFloatv( pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetFloatv ( pname, params)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glGetFloatv(__pyx_v_pname, __pyx_v_params); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 583, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":584
 *     gl_debug_print("GL glGetFloatv( pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetFloatv ( pname, params)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint* params) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 584, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 584, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":581
 *         gil_dbgGetFloatv(pname,  params)
 * 
 * cdef void __stdcall gil_dbgGetFloatv (GLenum pname, GLfloat* params) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetFloatv( pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetFloatv ( pname, params)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgGetFloatv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":586
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint* params) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetFramebufferAttachmentParameteriv(target, attachment, pname,  params)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetFramebufferAttachmentParameteriv(GLenum __pyx_v_target, GLenum __pyx_v_attachment, GLenum __pyx_v_pname, GLint *__pyx_v_params) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":587
 * 
 * cdef void __stdcall dbgGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint* params) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetFramebufferAttachmentParameteriv(target, attachment, pname,  params)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":588
 * cdef void __stdcall dbgGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint* params) nogil:
 *     with gil:
 *         gil_dbgGetFramebufferAttachmentParameteriv(target, attachment, pname,  params)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint* params) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetFramebufferAttachmentParameteriv(__pyx_v_target, __pyx_v_attachment, __pyx_v_pname, __pyx_v_params); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 588, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":587
 * 
 * cdef void __stdcall dbgGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint* params) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetFramebufferAttachmentParameteriv(target, attachment, pname,  params)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":586
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint* params) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetFramebufferAttachmentParameteriv(target, attachment, pname,  params)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgGetFramebufferAttachmentParameteriv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":590
 *         gil_dbgGetFramebufferAttachmentParameteriv(target, attachment, pname,  params)
 * 
 * cdef void __stdcall gil_dbgGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetFramebufferAttachmentParameteriv( target = ", target, ", attachment = ", attachment, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetFramebufferAttachmentParameteriv ( target, attachment, pname, params)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetFramebufferAttachmentParameteriv(GLenum __pyx_v_target, GLenum __pyx_v_attachment, GLenum __pyx_v_pname, GLint *__pyx_v_params) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  size_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgGetFramebufferAttachmentParameteriv", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":591
 * 
 * cdef void __stdcall gil_dbgGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint* params) with gil:
 *     gl_debug_print("GL glGetFramebufferAttachmentParameteriv( target = ", target, ", attachment = ", attachment, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glGetFramebufferAttachmentParameteriv ( target, attachment, pname, params)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 591, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_target); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 591, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLenum(__pyx_v_attachment); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 591, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_GLenum(__pyx_v_pname); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 591, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_params)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 591, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyNumber_Hex(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 591, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyObject_Repr(__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 591, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_9 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_9 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[10] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glGetFramebufferAttachmentPar, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_attachment, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_pname, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_params, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_9, (10-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 591, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":592
 * cdef void __stdcall gil_dbgGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint* params) with gil:
 *     gl_debug_print("GL glGetFramebufferAttachmentParameteriv( target = ", target, ", attachment = ", attachment, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetFramebufferAttachmentParameteriv ( target, attachment, pname, params)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glGetFramebufferAttachmentParameteriv(__pyx_v_target, __pyx_v_attachment, __pyx_v_pname, __pyx_v_params); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 592, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":593
 *     gl_debug_print("GL glGetFramebufferAttachmentParameteriv( target = ", target, ", attachment = ", attachment, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetFramebufferAttachmentParameteriv ( target, attachment, pname, params)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgGetIntegerv (GLenum pname, GLint* params) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 593, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_9 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_9 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_9, (1-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 593, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":590
 *         gil_dbgGetFramebufferAttachmentParameteriv(target, attachment, pname,  params)
 * 
 * cdef void __stdcall gil_dbgGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetFramebufferAttachmentParameteriv( target = ", target, ", attachment = ", attachment, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetFramebufferAttachmentParameteriv ( target, attachment, pname, params)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgGetFramebufferAttachmentParameteriv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":595
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGetIntegerv (GLenum pname, GLint* params) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetIntegerv(pname,  params)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetIntegerv(GLenum __pyx_v_pname, GLint *__pyx_v_params) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":596
 * 
 * cdef void __stdcall dbgGetIntegerv (GLenum pname, GLint* params) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetIntegerv(pname,  params)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":597
 * cdef void __stdcall dbgGetIntegerv (GLenum pname, GLint* params) nogil:
 *     with gil:
 *         gil_dbgGetIntegerv(pname,  params)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgGetIntegerv (GLenum pname, GLint* params) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetIntegerv(__pyx_v_pname, __pyx_v_params); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 597, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":596
 * 
 * cdef void __stdcall dbgGetIntegerv (GLenum pname, GLint* params) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetIntegerv(pname,  params)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":595
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGetIntegerv (GLenum pname, GLint* params) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetIntegerv(pname,  params)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgGetIntegerv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":599
 *         gil_dbgGetIntegerv(pname,  params)
 * 
 * cdef void __stdcall gil_dbgGetIntegerv (GLenum pname, GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetIntegerv( pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetIntegerv ( pname, params)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetIntegerv(GLenum __pyx_v_pname, GLint *__pyx_v_params) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgGetIntegerv", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":600
 * 
 * cdef void __stdcall gil_dbgGetIntegerv (GLenum pname, GLint* params) with gil:
 *     gl_debug_print("GL glGetIntegerv( pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glGetIntegerv ( pname, params)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 600, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_pname); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 600, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_params)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 600, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyNumber_Hex(__pyx_t_5); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 600, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
  __pyx_t_5 = PyObject_Repr(__pyx_t_6); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 600, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[6] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glGetIntegerv_pname, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_params, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_7, (6-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 600, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":601
 * cdef void __stdcall gil_dbgGetIntegerv (GLenum pname, GLint* params) with gil:
 *     gl_debug_print("GL glGetIntegerv( pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetIntegerv ( pname, params)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glGetIntegerv(__pyx_v_pname, __pyx_v_params); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 601, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":602
 *     gl_debug_print("GL glGetIntegerv( pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetIntegerv ( pname, params)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgGetProgramiv (GLuint program, GLenum pname, GLint* params) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 602, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 602, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":599
 *         gil_dbgGetIntegerv(pname,  params)
 * 
 * cdef void __stdcall gil_dbgGetIntegerv (GLenum pname, GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetIntegerv( pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetIntegerv ( pname, params)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgGetIntegerv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":604
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGetProgramiv (GLuint program, GLenum pname, GLint* params) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetProgramiv(program, pname,  params)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetProgramiv(GLuint __pyx_v_program, GLenum __pyx_v_pname, GLint *__pyx_v_params) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":605
 * 
 * cdef void __stdcall dbgGetProgramiv (GLuint program, GLenum pname, GLint* params) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetProgramiv(program, pname,  params)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":606
 * cdef void __stdcall dbgGetProgramiv (GLuint program, GLenum pname, GLint* params) nogil:
 *     with gil:
 *         gil_dbgGetProgramiv(program, pname,  params)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgGetProgramiv (GLuint program, GLenum pname, GLint* params) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetProgramiv(__pyx_v_program, __pyx_v_pname, __pyx_v_params); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 606, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":605
 * 
 * cdef void __stdcall dbgGetProgramiv (GLuint program, GLenum pname, GLint* params) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetProgramiv(program, pname,  params)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":604
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGetProgramiv (GLuint program, GLenum pname, GLint* params) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetProgramiv(program, pname,  params)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgGetProgramiv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":608
 *         gil_dbgGetProgramiv(program, pname,  params)
 * 
 * cdef void __stdcall gil_dbgGetProgramiv (GLuint program, GLenum pname, GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetProgramiv( program = ", program, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetProgramiv ( program, pname, params)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetProgramiv(GLuint __pyx_v_program, GLenum __pyx_v_pname, GLint *__pyx_v_params) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgGetProgramiv", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":609
 * 
 * cdef void __stdcall gil_dbgGetProgramiv (GLuint program, GLenum pname, GLint* params) with gil:
 *     gl_debug_print("GL glGetProgramiv( program = ", program, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glGetProgramiv ( program, pname, params)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 609, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_program); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 609, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLenum(__pyx_v_pname); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 609, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_params)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 609, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyNumber_Hex(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 609, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyObject_Repr(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 609, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[8] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glGetProgramiv_program, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_pname, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_params, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (8-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 609, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":610
 * cdef void __stdcall gil_dbgGetProgramiv (GLuint program, GLenum pname, GLint* params) with gil:
 *     gl_debug_print("GL glGetProgramiv( program = ", program, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetProgramiv ( program, pname, params)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glGetProgramiv(__pyx_v_program, __pyx_v_pname, __pyx_v_params); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 610, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":611
 *     gl_debug_print("GL glGetProgramiv( program = ", program, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetProgramiv ( program, pname, params)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgGetProgramInfoLog (GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 611, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 611, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":608
 *         gil_dbgGetProgramiv(program, pname,  params)
 * 
 * cdef void __stdcall gil_dbgGetProgramiv (GLuint program, GLenum pname, GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetProgramiv( program = ", program, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetProgramiv ( program, pname, params)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgGetProgramiv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":613
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGetProgramInfoLog (GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetProgramInfoLog(program, bufsize,  length,  infolog)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetProgramInfoLog(GLuint __pyx_v_program, GLsizei __pyx_v_bufsize, GLsizei *__pyx_v_length, GLchar *__pyx_v_infolog) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":614
 * 
 * cdef void __stdcall dbgGetProgramInfoLog (GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetProgramInfoLog(program, bufsize,  length,  infolog)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":615
 * cdef void __stdcall dbgGetProgramInfoLog (GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog) nogil:
 *     with gil:
 *         gil_dbgGetProgramInfoLog(program, bufsize,  length,  infolog)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgGetProgramInfoLog (GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetProgramInfoLog(__pyx_v_program, __pyx_v_bufsize, __pyx_v_length, __pyx_v_infolog); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 615, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":614
 * 
 * cdef void __stdcall dbgGetProgramInfoLog (GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetProgramInfoLog(program, bufsize,  length,  infolog)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":613
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGetProgramInfoLog (GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetProgramInfoLog(program, bufsize,  length,  infolog)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgGetProgramInfoLog", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":617
 *         gil_dbgGetProgramInfoLog(program, bufsize,  length,  infolog)
 * 
 * cdef void __stdcall gil_dbgGetProgramInfoLog (GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetProgramInfoLog( program = ", program, ", bufsize = ", bufsize, ", length*=", repr(hex(<long long> length)), ", infolog*=", repr(hex(<long long> infolog)), ", )")
 *     cgl_native.glGetProgramInfoLog ( program, bufsize, length, infolog)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetProgramInfoLog(GLuint __pyx_v_program, GLsizei __pyx_v_bufsize, GLsizei *__pyx_v_length, GLchar *__pyx_v_infolog) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  size_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgGetProgramInfoLog", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":618
 * 
 * cdef void __stdcall gil_dbgGetProgramInfoLog (GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog) with gil:
 *     gl_debug_print("GL glGetProgramInfoLog( program = ", program, ", bufsize = ", bufsize, ", length*=", repr(hex(<long long> length)), ", infolog*=", repr(hex(<long long> infolog)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glGetProgramInfoLog ( program, bufsize, length, infolog)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 618, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_program); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 618, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLsizei(__pyx_v_bufsize); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 618, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_length)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 618, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyNumber_Hex(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 618, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyObject_Repr(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 618, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_infolog)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 618, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyNumber_Hex(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 618, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyObject_Repr(__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 618, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_9 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_9 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[10] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glGetProgramInfoLog_program, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_bufsize, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_length, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_infolog, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_9, (10-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 618, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":619
 * cdef void __stdcall gil_dbgGetProgramInfoLog (GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog) with gil:
 *     gl_debug_print("GL glGetProgramInfoLog( program = ", program, ", bufsize = ", bufsize, ", length*=", repr(hex(<long long> length)), ", infolog*=", repr(hex(<long long> infolog)), ", )")
 *     cgl_native.glGetProgramInfoLog ( program, bufsize, length, infolog)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glGetProgramInfoLog(__pyx_v_program, __pyx_v_bufsize, __pyx_v_length, __pyx_v_infolog); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 619, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":620
 *     gl_debug_print("GL glGetProgramInfoLog( program = ", program, ", bufsize = ", bufsize, ", length*=", repr(hex(<long long> length)), ", infolog*=", repr(hex(<long long> infolog)), ", )")
 *     cgl_native.glGetProgramInfoLog ( program, bufsize, length, infolog)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint* params) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 620, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_9 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_9 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_9, (1-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 620, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":617
 *         gil_dbgGetProgramInfoLog(program, bufsize,  length,  infolog)
 * 
 * cdef void __stdcall gil_dbgGetProgramInfoLog (GLuint program, GLsizei bufsize, GLsizei* length, GLchar* infolog) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetProgramInfoLog( program = ", program, ", bufsize = ", bufsize, ", length*=", repr(hex(<long long> length)), ", infolog*=", repr(hex(<long long> infolog)), ", )")
 *     cgl_native.glGetProgramInfoLog ( program, bufsize, length, infolog)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgGetProgramInfoLog", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":622
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint* params) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetRenderbufferParameteriv(target, pname,  params)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetRenderbufferParameteriv(GLenum __pyx_v_target, GLenum __pyx_v_pname, GLint *__pyx_v_params) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":623
 * 
 * cdef void __stdcall dbgGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint* params) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetRenderbufferParameteriv(target, pname,  params)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":624
 * cdef void __stdcall dbgGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint* params) nogil:
 *     with gil:
 *         gil_dbgGetRenderbufferParameteriv(target, pname,  params)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint* params) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetRenderbufferParameteriv(__pyx_v_target, __pyx_v_pname, __pyx_v_params); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 624, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":623
 * 
 * cdef void __stdcall dbgGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint* params) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetRenderbufferParameteriv(target, pname,  params)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":622
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint* params) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetRenderbufferParameteriv(target, pname,  params)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgGetRenderbufferParameteriv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":626
 *         gil_dbgGetRenderbufferParameteriv(target, pname,  params)
 * 
 * cdef void __stdcall gil_dbgGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetRenderbufferParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetRenderbufferParameteriv ( target, pname, params)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetRenderbufferParameteriv(GLenum __pyx_v_target, GLenum __pyx_v_pname, GLint *__pyx_v_params) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgGetRenderbufferParameteriv", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":627
 * 
 * cdef void __stdcall gil_dbgGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint* params) with gil:
 *     gl_debug_print("GL glGetRenderbufferParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glGetRenderbufferParameteriv ( target, pname, params)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 627, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_target); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 627, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLenum(__pyx_v_pname); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 627, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_params)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 627, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyNumber_Hex(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 627, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyObject_Repr(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 627, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[8] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glGetRenderbufferParameteriv, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_pname, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_params, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (8-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 627, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":628
 * cdef void __stdcall gil_dbgGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint* params) with gil:
 *     gl_debug_print("GL glGetRenderbufferParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetRenderbufferParameteriv ( target, pname, params)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glGetRenderbufferParameteriv(__pyx_v_target, __pyx_v_pname, __pyx_v_params); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 628, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":629
 *     gl_debug_print("GL glGetRenderbufferParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetRenderbufferParameteriv ( target, pname, params)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgGetShaderiv (GLuint shader, GLenum pname, GLint* params) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 629, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 629, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":626
 *         gil_dbgGetRenderbufferParameteriv(target, pname,  params)
 * 
 * cdef void __stdcall gil_dbgGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetRenderbufferParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetRenderbufferParameteriv ( target, pname, params)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgGetRenderbufferParameteriv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":631
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGetShaderiv (GLuint shader, GLenum pname, GLint* params) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetShaderiv(shader, pname,  params)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetShaderiv(GLuint __pyx_v_shader, GLenum __pyx_v_pname, GLint *__pyx_v_params) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":632
 * 
 * cdef void __stdcall dbgGetShaderiv (GLuint shader, GLenum pname, GLint* params) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetShaderiv(shader, pname,  params)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":633
 * cdef void __stdcall dbgGetShaderiv (GLuint shader, GLenum pname, GLint* params) nogil:
 *     with gil:
 *         gil_dbgGetShaderiv(shader, pname,  params)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgGetShaderiv (GLuint shader, GLenum pname, GLint* params) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetShaderiv(__pyx_v_shader, __pyx_v_pname, __pyx_v_params); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 633, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":632
 * 
 * cdef void __stdcall dbgGetShaderiv (GLuint shader, GLenum pname, GLint* params) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetShaderiv(shader, pname,  params)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":631
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGetShaderiv (GLuint shader, GLenum pname, GLint* params) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetShaderiv(shader, pname,  params)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgGetShaderiv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":635
 *         gil_dbgGetShaderiv(shader, pname,  params)
 * 
 * cdef void __stdcall gil_dbgGetShaderiv (GLuint shader, GLenum pname, GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetShaderiv( shader = ", shader, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetShaderiv ( shader, pname, params)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetShaderiv(GLuint __pyx_v_shader, GLenum __pyx_v_pname, GLint *__pyx_v_params) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgGetShaderiv", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":636
 * 
 * cdef void __stdcall gil_dbgGetShaderiv (GLuint shader, GLenum pname, GLint* params) with gil:
 *     gl_debug_print("GL glGetShaderiv( shader = ", shader, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glGetShaderiv ( shader, pname, params)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 636, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_shader); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 636, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLenum(__pyx_v_pname); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 636, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_params)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 636, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyNumber_Hex(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 636, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyObject_Repr(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 636, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[8] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glGetShaderiv_shader, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_pname, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_params, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (8-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 636, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":637
 * cdef void __stdcall gil_dbgGetShaderiv (GLuint shader, GLenum pname, GLint* params) with gil:
 *     gl_debug_print("GL glGetShaderiv( shader = ", shader, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetShaderiv ( shader, pname, params)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glGetShaderiv(__pyx_v_shader, __pyx_v_pname, __pyx_v_params); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 637, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":638
 *     gl_debug_print("GL glGetShaderiv( shader = ", shader, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetShaderiv ( shader, pname, params)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgGetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 638, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 638, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":635
 *         gil_dbgGetShaderiv(shader, pname,  params)
 * 
 * cdef void __stdcall gil_dbgGetShaderiv (GLuint shader, GLenum pname, GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetShaderiv( shader = ", shader, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetShaderiv ( shader, pname, params)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgGetShaderiv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":640
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetShaderInfoLog(shader, bufsize,  length,  infolog)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetShaderInfoLog(GLuint __pyx_v_shader, GLsizei __pyx_v_bufsize, GLsizei *__pyx_v_length, GLchar *__pyx_v_infolog) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":641
 * 
 * cdef void __stdcall dbgGetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetShaderInfoLog(shader, bufsize,  length,  infolog)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":642
 * cdef void __stdcall dbgGetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog) nogil:
 *     with gil:
 *         gil_dbgGetShaderInfoLog(shader, bufsize,  length,  infolog)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgGetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetShaderInfoLog(__pyx_v_shader, __pyx_v_bufsize, __pyx_v_length, __pyx_v_infolog); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 642, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":641
 * 
 * cdef void __stdcall dbgGetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetShaderInfoLog(shader, bufsize,  length,  infolog)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":640
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetShaderInfoLog(shader, bufsize,  length,  infolog)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgGetShaderInfoLog", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":644
 *         gil_dbgGetShaderInfoLog(shader, bufsize,  length,  infolog)
 * 
 * cdef void __stdcall gil_dbgGetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetShaderInfoLog( shader = ", shader, ", bufsize = ", bufsize, ", length*=", repr(hex(<long long> length)), ", infolog*=", repr(hex(<long long> infolog)), ", )")
 *     cgl_native.glGetShaderInfoLog ( shader, bufsize, length, infolog)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetShaderInfoLog(GLuint __pyx_v_shader, GLsizei __pyx_v_bufsize, GLsizei *__pyx_v_length, GLchar *__pyx_v_infolog) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  size_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgGetShaderInfoLog", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":645
 * 
 * cdef void __stdcall gil_dbgGetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog) with gil:
 *     gl_debug_print("GL glGetShaderInfoLog( shader = ", shader, ", bufsize = ", bufsize, ", length*=", repr(hex(<long long> length)), ", infolog*=", repr(hex(<long long> infolog)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glGetShaderInfoLog ( shader, bufsize, length, infolog)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 645, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_shader); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 645, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLsizei(__pyx_v_bufsize); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 645, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_length)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 645, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyNumber_Hex(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 645, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyObject_Repr(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 645, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_infolog)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 645, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyNumber_Hex(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 645, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyObject_Repr(__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 645, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_9 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_9 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[10] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glGetShaderInfoLog_shader, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_bufsize, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_length, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_infolog, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_9, (10-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 645, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":646
 * cdef void __stdcall gil_dbgGetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog) with gil:
 *     gl_debug_print("GL glGetShaderInfoLog( shader = ", shader, ", bufsize = ", bufsize, ", length*=", repr(hex(<long long> length)), ", infolog*=", repr(hex(<long long> infolog)), ", )")
 *     cgl_native.glGetShaderInfoLog ( shader, bufsize, length, infolog)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * # Skipping generation of: "#cdef void __stdcall dbgGetShaderPrecisionFormat (cgl_native.GLenum shadertype, cgl_native.GLenum precisiontype, cgl_native.GLint* range, cgl_native.GLint* precision)"
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glGetShaderInfoLog(__pyx_v_shader, __pyx_v_bufsize, __pyx_v_length, __pyx_v_infolog); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 646, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":647
 *     gl_debug_print("GL glGetShaderInfoLog( shader = ", shader, ", bufsize = ", bufsize, ", length*=", repr(hex(<long long> length)), ", infolog*=", repr(hex(<long long> infolog)), ", )")
 *     cgl_native.glGetShaderInfoLog ( shader, bufsize, length, infolog)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * # Skipping generation of: "#cdef void __stdcall dbgGetShaderPrecisionFormat (cgl_native.GLenum shadertype, cgl_native.GLenum precisiontype, cgl_native.GLint* range, cgl_native.GLint* precision)"
 * 
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 647, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_9 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_9 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_9, (1-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 647, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":644
 *         gil_dbgGetShaderInfoLog(shader, bufsize,  length,  infolog)
 * 
 * cdef void __stdcall gil_dbgGetShaderInfoLog (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* infolog) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetShaderInfoLog( shader = ", shader, ", bufsize = ", bufsize, ", length*=", repr(hex(<long long> length)), ", infolog*=", repr(hex(<long long> infolog)), ", )")
 *     cgl_native.glGetShaderInfoLog ( shader, bufsize, length, infolog)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgGetShaderInfoLog", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":650
 * # Skipping generation of: "#cdef void __stdcall dbgGetShaderPrecisionFormat (cgl_native.GLenum shadertype, cgl_native.GLenum precisiontype, cgl_native.GLint* range, cgl_native.GLint* precision)"
 * 
 * cdef void __stdcall dbgGetShaderSource (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetShaderSource(shader, bufsize,  length,  source)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetShaderSource(GLuint __pyx_v_shader, GLsizei __pyx_v_bufsize, GLsizei *__pyx_v_length, GLchar *__pyx_v_source) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":651
 * 
 * cdef void __stdcall dbgGetShaderSource (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetShaderSource(shader, bufsize,  length,  source)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":652
 * cdef void __stdcall dbgGetShaderSource (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source) nogil:
 *     with gil:
 *         gil_dbgGetShaderSource(shader, bufsize,  length,  source)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgGetShaderSource (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetShaderSource(__pyx_v_shader, __pyx_v_bufsize, __pyx_v_length, __pyx_v_source); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 652, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":651
 * 
 * cdef void __stdcall dbgGetShaderSource (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetShaderSource(shader, bufsize,  length,  source)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":650
 * # Skipping generation of: "#cdef void __stdcall dbgGetShaderPrecisionFormat (cgl_native.GLenum shadertype, cgl_native.GLenum precisiontype, cgl_native.GLint* range, cgl_native.GLint* precision)"
 * 
 * cdef void __stdcall dbgGetShaderSource (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetShaderSource(shader, bufsize,  length,  source)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgGetShaderSource", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":654
 *         gil_dbgGetShaderSource(shader, bufsize,  length,  source)
 * 
 * cdef void __stdcall gil_dbgGetShaderSource (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetShaderSource( shader = ", shader, ", bufsize = ", bufsize, ", length*=", repr(hex(<long long> length)), ", source*=", repr(hex(<long long> source)), ", )")
 *     cgl_native.glGetShaderSource ( shader, bufsize, length, source)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetShaderSource(GLuint __pyx_v_shader, GLsizei __pyx_v_bufsize, GLsizei *__pyx_v_length, GLchar *__pyx_v_source) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  size_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgGetShaderSource", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":655
 * 
 * cdef void __stdcall gil_dbgGetShaderSource (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source) with gil:
 *     gl_debug_print("GL glGetShaderSource( shader = ", shader, ", bufsize = ", bufsize, ", length*=", repr(hex(<long long> length)), ", source*=", repr(hex(<long long> source)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glGetShaderSource ( shader, bufsize, length, source)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 655, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_shader); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 655, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLsizei(__pyx_v_bufsize); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 655, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_length)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 655, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyNumber_Hex(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 655, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyObject_Repr(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 655, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_source)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 655, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyNumber_Hex(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 655, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyObject_Repr(__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 655, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_9 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_9 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[10] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glGetShaderSource_shader, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_bufsize, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_length, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_source, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_9, (10-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 655, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":656
 * cdef void __stdcall gil_dbgGetShaderSource (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source) with gil:
 *     gl_debug_print("GL glGetShaderSource( shader = ", shader, ", bufsize = ", bufsize, ", length*=", repr(hex(<long long> length)), ", source*=", repr(hex(<long long> source)), ", )")
 *     cgl_native.glGetShaderSource ( shader, bufsize, length, source)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glGetShaderSource(__pyx_v_shader, __pyx_v_bufsize, __pyx_v_length, __pyx_v_source); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 656, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":657
 *     gl_debug_print("GL glGetShaderSource( shader = ", shader, ", bufsize = ", bufsize, ", length*=", repr(hex(<long long> length)), ", source*=", repr(hex(<long long> source)), ", )")
 *     cgl_native.glGetShaderSource ( shader, bufsize, length, source)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef  const GLubyte* __stdcall dbgGetString (GLenum name) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 657, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_9 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_9 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_9, (1-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 657, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":654
 *         gil_dbgGetShaderSource(shader, bufsize,  length,  source)
 * 
 * cdef void __stdcall gil_dbgGetShaderSource (GLuint shader, GLsizei bufsize, GLsizei* length, GLchar* source) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetShaderSource( shader = ", shader, ", bufsize = ", bufsize, ", length*=", repr(hex(<long long> length)), ", source*=", repr(hex(<long long> source)), ", )")
 *     cgl_native.glGetShaderSource ( shader, bufsize, length, source)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgGetShaderSource", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":659
 *     gl_check_error()
 * 
 * cdef  const GLubyte* __stdcall dbgGetString (GLenum name) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         return gil_dbgGetString(name)
*/

static GLubyte const *__stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetString(GLenum __pyx_v_name) {
  GLubyte const *__pyx_r;
  GLubyte const *__pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":660
 * 
 * cdef  const GLubyte* __stdcall dbgGetString (GLenum name) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         return gil_dbgGetString(name)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":661
 * cdef  const GLubyte* __stdcall dbgGetString (GLenum name) nogil:
 *     with gil:
 *         return gil_dbgGetString(name)             # <<<<<<<<<<<<<<
 * 
 * cdef  const GLubyte* __stdcall gil_dbgGetString (GLenum name) with gil:
*/
        __pyx_t_1 = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetString(__pyx_v_name); if (unlikely(__pyx_t_1 == ((void *)NULL) && PyErr_Occurred())) __PYX_ERR(0, 661, __pyx_L4_error)
        __pyx_r = __pyx_t_1;
        goto __pyx_L3_return;
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":660
 * 
 * cdef  const GLubyte* __stdcall dbgGetString (GLenum name) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         return gil_dbgGetString(name)
 * 
*/
      /*finally:*/ {
        __pyx_L3_return: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L0;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":659
 *     gl_check_error()
 * 
 * cdef  const GLubyte* __stdcall dbgGetString (GLenum name) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         return gil_dbgGetString(name)
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgGetString", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  return __pyx_r;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":663
 *         return gil_dbgGetString(name)
 * 
 * cdef  const GLubyte* __stdcall gil_dbgGetString (GLenum name) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetString( name = ", name, ", )")
 *     return <const GLubyte*><const char*>cgl_native.glGetString ( name)
*/

static GLubyte const *__stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetString(GLenum __pyx_v_name) {
  GLubyte const *__pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  GLubyte const *__pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgGetString", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":664
 * 
 * cdef  const GLubyte* __stdcall gil_dbgGetString (GLenum name) with gil:
 *     gl_debug_print("GL glGetString( name = ", name, ", )")             # <<<<<<<<<<<<<<
 *     return <const GLubyte*><const char*>cgl_native.glGetString ( name)
 * 
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 664, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_name); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 664, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glGetString_name, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 664, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":665
 * cdef  const GLubyte* __stdcall gil_dbgGetString (GLenum name) with gil:
 *     gl_debug_print("GL glGetString( name = ", name, ", )")
 *     return <const GLubyte*><const char*>cgl_native.glGetString ( name)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgGetTexParameterfv (GLenum target, GLenum pname, GLfloat* params) nogil:
*/
  __pyx_t_6 = __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glGetString(__pyx_v_name); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 665, __pyx_L1_error)
  __pyx_r = ((GLubyte const *)((char const *)__pyx_t_6));
  goto __pyx_L0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":663
 *         return gil_dbgGetString(name)
 * 
 * cdef  const GLubyte* __stdcall gil_dbgGetString (GLenum name) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetString( name = ", name, ", )")
 *     return <const GLubyte*><const char*>cgl_native.glGetString ( name)
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgGetString", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  return __pyx_r;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":667
 *     return <const GLubyte*><const char*>cgl_native.glGetString ( name)
 * 
 * cdef void __stdcall dbgGetTexParameterfv (GLenum target, GLenum pname, GLfloat* params) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetTexParameterfv(target, pname,  params)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetTexParameterfv(GLenum __pyx_v_target, GLenum __pyx_v_pname, GLfloat *__pyx_v_params) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":668
 * 
 * cdef void __stdcall dbgGetTexParameterfv (GLenum target, GLenum pname, GLfloat* params) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetTexParameterfv(target, pname,  params)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":669
 * cdef void __stdcall dbgGetTexParameterfv (GLenum target, GLenum pname, GLfloat* params) nogil:
 *     with gil:
 *         gil_dbgGetTexParameterfv(target, pname,  params)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgGetTexParameterfv (GLenum target, GLenum pname, GLfloat* params) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetTexParameterfv(__pyx_v_target, __pyx_v_pname, __pyx_v_params); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 669, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":668
 * 
 * cdef void __stdcall dbgGetTexParameterfv (GLenum target, GLenum pname, GLfloat* params) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetTexParameterfv(target, pname,  params)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":667
 *     return <const GLubyte*><const char*>cgl_native.glGetString ( name)
 * 
 * cdef void __stdcall dbgGetTexParameterfv (GLenum target, GLenum pname, GLfloat* params) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetTexParameterfv(target, pname,  params)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgGetTexParameterfv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":671
 *         gil_dbgGetTexParameterfv(target, pname,  params)
 * 
 * cdef void __stdcall gil_dbgGetTexParameterfv (GLenum target, GLenum pname, GLfloat* params) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetTexParameterfv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetTexParameterfv ( target, pname, params)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetTexParameterfv(GLenum __pyx_v_target, GLenum __pyx_v_pname, GLfloat *__pyx_v_params) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgGetTexParameterfv", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":672
 * 
 * cdef void __stdcall gil_dbgGetTexParameterfv (GLenum target, GLenum pname, GLfloat* params) with gil:
 *     gl_debug_print("GL glGetTexParameterfv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glGetTexParameterfv ( target, pname, params)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 672, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_target); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 672, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLenum(__pyx_v_pname); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 672, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_params)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 672, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyNumber_Hex(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 672, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyObject_Repr(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 672, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[8] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glGetTexParameterfv_target, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_pname, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_params, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (8-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 672, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":673
 * cdef void __stdcall gil_dbgGetTexParameterfv (GLenum target, GLenum pname, GLfloat* params) with gil:
 *     gl_debug_print("GL glGetTexParameterfv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetTexParameterfv ( target, pname, params)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glGetTexParameterfv(__pyx_v_target, __pyx_v_pname, __pyx_v_params); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 673, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":674
 *     gl_debug_print("GL glGetTexParameterfv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetTexParameterfv ( target, pname, params)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgGetTexParameteriv (GLenum target, GLenum pname, GLint* params) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 674, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 674, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":671
 *         gil_dbgGetTexParameterfv(target, pname,  params)
 * 
 * cdef void __stdcall gil_dbgGetTexParameterfv (GLenum target, GLenum pname, GLfloat* params) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetTexParameterfv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetTexParameterfv ( target, pname, params)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgGetTexParameterfv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":676
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGetTexParameteriv (GLenum target, GLenum pname, GLint* params) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetTexParameteriv(target, pname,  params)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetTexParameteriv(GLenum __pyx_v_target, GLenum __pyx_v_pname, GLint *__pyx_v_params) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":677
 * 
 * cdef void __stdcall dbgGetTexParameteriv (GLenum target, GLenum pname, GLint* params) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetTexParameteriv(target, pname,  params)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":678
 * cdef void __stdcall dbgGetTexParameteriv (GLenum target, GLenum pname, GLint* params) nogil:
 *     with gil:
 *         gil_dbgGetTexParameteriv(target, pname,  params)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgGetTexParameteriv (GLenum target, GLenum pname, GLint* params) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetTexParameteriv(__pyx_v_target, __pyx_v_pname, __pyx_v_params); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 678, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":677
 * 
 * cdef void __stdcall dbgGetTexParameteriv (GLenum target, GLenum pname, GLint* params) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetTexParameteriv(target, pname,  params)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":676
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGetTexParameteriv (GLenum target, GLenum pname, GLint* params) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetTexParameteriv(target, pname,  params)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgGetTexParameteriv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":680
 *         gil_dbgGetTexParameteriv(target, pname,  params)
 * 
 * cdef void __stdcall gil_dbgGetTexParameteriv (GLenum target, GLenum pname, GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetTexParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetTexParameteriv ( target, pname, params)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetTexParameteriv(GLenum __pyx_v_target, GLenum __pyx_v_pname, GLint *__pyx_v_params) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgGetTexParameteriv", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":681
 * 
 * cdef void __stdcall gil_dbgGetTexParameteriv (GLenum target, GLenum pname, GLint* params) with gil:
 *     gl_debug_print("GL glGetTexParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glGetTexParameteriv ( target, pname, params)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 681, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_target); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 681, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLenum(__pyx_v_pname); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 681, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_params)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 681, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyNumber_Hex(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 681, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyObject_Repr(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 681, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[8] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glGetTexParameteriv_target, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_pname, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_params, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (8-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 681, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":682
 * cdef void __stdcall gil_dbgGetTexParameteriv (GLenum target, GLenum pname, GLint* params) with gil:
 *     gl_debug_print("GL glGetTexParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetTexParameteriv ( target, pname, params)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glGetTexParameteriv(__pyx_v_target, __pyx_v_pname, __pyx_v_params); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 682, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":683
 *     gl_debug_print("GL glGetTexParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetTexParameteriv ( target, pname, params)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgGetUniformfv (GLuint program, GLint location, GLfloat* params) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 683, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 683, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":680
 *         gil_dbgGetTexParameteriv(target, pname,  params)
 * 
 * cdef void __stdcall gil_dbgGetTexParameteriv (GLenum target, GLenum pname, GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetTexParameteriv( target = ", target, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetTexParameteriv ( target, pname, params)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgGetTexParameteriv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":685
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGetUniformfv (GLuint program, GLint location, GLfloat* params) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetUniformfv(program, location,  params)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetUniformfv(GLuint __pyx_v_program, GLint __pyx_v_location, GLfloat *__pyx_v_params) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":686
 * 
 * cdef void __stdcall dbgGetUniformfv (GLuint program, GLint location, GLfloat* params) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetUniformfv(program, location,  params)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":687
 * cdef void __stdcall dbgGetUniformfv (GLuint program, GLint location, GLfloat* params) nogil:
 *     with gil:
 *         gil_dbgGetUniformfv(program, location,  params)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgGetUniformfv (GLuint program, GLint location, GLfloat* params) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetUniformfv(__pyx_v_program, __pyx_v_location, __pyx_v_params); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 687, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":686
 * 
 * cdef void __stdcall dbgGetUniformfv (GLuint program, GLint location, GLfloat* params) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetUniformfv(program, location,  params)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":685
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGetUniformfv (GLuint program, GLint location, GLfloat* params) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetUniformfv(program, location,  params)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgGetUniformfv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":689
 *         gil_dbgGetUniformfv(program, location,  params)
 * 
 * cdef void __stdcall gil_dbgGetUniformfv (GLuint program, GLint location, GLfloat* params) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetUniformfv( program = ", program, ", location = ", location, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetUniformfv ( program, location, params)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetUniformfv(GLuint __pyx_v_program, GLint __pyx_v_location, GLfloat *__pyx_v_params) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgGetUniformfv", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":690
 * 
 * cdef void __stdcall gil_dbgGetUniformfv (GLuint program, GLint location, GLfloat* params) with gil:
 *     gl_debug_print("GL glGetUniformfv( program = ", program, ", location = ", location, ", params*=", repr(hex(<long long> params)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glGetUniformfv ( program, location, params)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 690, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_program); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 690, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLint(__pyx_v_location); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 690, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_params)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 690, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyNumber_Hex(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 690, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyObject_Repr(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 690, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[8] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glGetUniformfv_program, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_location, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_params, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (8-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 690, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":691
 * cdef void __stdcall gil_dbgGetUniformfv (GLuint program, GLint location, GLfloat* params) with gil:
 *     gl_debug_print("GL glGetUniformfv( program = ", program, ", location = ", location, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetUniformfv ( program, location, params)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glGetUniformfv(__pyx_v_program, __pyx_v_location, __pyx_v_params); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 691, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":692
 *     gl_debug_print("GL glGetUniformfv( program = ", program, ", location = ", location, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetUniformfv ( program, location, params)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgGetUniformiv (GLuint program, GLint location, GLint* params) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 692, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 692, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":689
 *         gil_dbgGetUniformfv(program, location,  params)
 * 
 * cdef void __stdcall gil_dbgGetUniformfv (GLuint program, GLint location, GLfloat* params) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetUniformfv( program = ", program, ", location = ", location, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetUniformfv ( program, location, params)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgGetUniformfv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":694
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGetUniformiv (GLuint program, GLint location, GLint* params) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetUniformiv(program, location,  params)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetUniformiv(GLuint __pyx_v_program, GLint __pyx_v_location, GLint *__pyx_v_params) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":695
 * 
 * cdef void __stdcall dbgGetUniformiv (GLuint program, GLint location, GLint* params) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetUniformiv(program, location,  params)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":696
 * cdef void __stdcall dbgGetUniformiv (GLuint program, GLint location, GLint* params) nogil:
 *     with gil:
 *         gil_dbgGetUniformiv(program, location,  params)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgGetUniformiv (GLuint program, GLint location, GLint* params) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetUniformiv(__pyx_v_program, __pyx_v_location, __pyx_v_params); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 696, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":695
 * 
 * cdef void __stdcall dbgGetUniformiv (GLuint program, GLint location, GLint* params) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetUniformiv(program, location,  params)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":694
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGetUniformiv (GLuint program, GLint location, GLint* params) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetUniformiv(program, location,  params)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgGetUniformiv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":698
 *         gil_dbgGetUniformiv(program, location,  params)
 * 
 * cdef void __stdcall gil_dbgGetUniformiv (GLuint program, GLint location, GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetUniformiv( program = ", program, ", location = ", location, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetUniformiv ( program, location, params)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetUniformiv(GLuint __pyx_v_program, GLint __pyx_v_location, GLint *__pyx_v_params) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgGetUniformiv", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":699
 * 
 * cdef void __stdcall gil_dbgGetUniformiv (GLuint program, GLint location, GLint* params) with gil:
 *     gl_debug_print("GL glGetUniformiv( program = ", program, ", location = ", location, ", params*=", repr(hex(<long long> params)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glGetUniformiv ( program, location, params)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 699, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_program); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 699, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLint(__pyx_v_location); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 699, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_params)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 699, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyNumber_Hex(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 699, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyObject_Repr(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 699, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[8] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glGetUniformiv_program, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_location, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_params, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (8-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 699, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":700
 * cdef void __stdcall gil_dbgGetUniformiv (GLuint program, GLint location, GLint* params) with gil:
 *     gl_debug_print("GL glGetUniformiv( program = ", program, ", location = ", location, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetUniformiv ( program, location, params)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glGetUniformiv(__pyx_v_program, __pyx_v_location, __pyx_v_params); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 700, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":701
 *     gl_debug_print("GL glGetUniformiv( program = ", program, ", location = ", location, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetUniformiv ( program, location, params)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef int  __stdcall dbgGetUniformLocation (GLuint program, const GLchar* name) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 701, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 701, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":698
 *         gil_dbgGetUniformiv(program, location,  params)
 * 
 * cdef void __stdcall gil_dbgGetUniformiv (GLuint program, GLint location, GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetUniformiv( program = ", program, ", location = ", location, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetUniformiv ( program, location, params)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgGetUniformiv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":703
 *     gl_check_error()
 * 
 * cdef int  __stdcall dbgGetUniformLocation (GLuint program, const GLchar* name) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         return gil_dbgGetUniformLocation(program,   <bytes>name)
*/

static int __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetUniformLocation(GLuint __pyx_v_program, GLchar const *__pyx_v_name) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  GLchar *__pyx_t_2;
  int __pyx_t_3;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;
  __Pyx_RefNannySetupContext("dbgGetUniformLocation", 1);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":704
 * 
 * cdef int  __stdcall dbgGetUniformLocation (GLuint program, const GLchar* name) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         return gil_dbgGetUniformLocation(program,   <bytes>name)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":705
 * cdef int  __stdcall dbgGetUniformLocation (GLuint program, const GLchar* name) nogil:
 *     with gil:
 *         return gil_dbgGetUniformLocation(program,   <bytes>name)             # <<<<<<<<<<<<<<
 * 
 * cdef int  __stdcall gil_dbgGetUniformLocation (GLuint program,  GLchar* name) with gil:
*/
        __pyx_t_1 = __Pyx_PyBytes_FromString(__pyx_v_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 705, __pyx_L4_error)
        __Pyx_GOTREF(__pyx_t_1);
        if (unlikely(__pyx_t_1 == Py_None)) {
          PyErr_SetString(PyExc_TypeError, "expected bytes, NoneType found");
          __PYX_ERR(0, 705, __pyx_L4_error)
        }
        __pyx_t_2 = __Pyx_PyBytes_AsWritableString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(0, 705, __pyx_L4_error)
        __pyx_t_3 = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetUniformLocation(__pyx_v_program, __pyx_t_2); if (unlikely(__pyx_t_3 == ((int)-1) && PyErr_Occurred())) __PYX_ERR(0, 705, __pyx_L4_error)
        __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
        __pyx_r = __pyx_t_3;
        goto __pyx_L3_return;
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":704
 * 
 * cdef int  __stdcall dbgGetUniformLocation (GLuint program, const GLchar* name) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         return gil_dbgGetUniformLocation(program,   <bytes>name)
 * 
*/
      /*finally:*/ {
        __pyx_L3_return: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L0;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":703
 *     gl_check_error()
 * 
 * cdef int  __stdcall dbgGetUniformLocation (GLuint program, const GLchar* name) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         return gil_dbgGetUniformLocation(program,   <bytes>name)
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgGetUniformLocation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  __Pyx_RefNannyFinishContextNogil()
  return __pyx_r;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":707
 *         return gil_dbgGetUniformLocation(program,   <bytes>name)
 * 
 * cdef int  __stdcall gil_dbgGetUniformLocation (GLuint program,  GLchar* name) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetUniformLocation( program = ", program, ", name*=", <bytes>name, ", )")
 *     gl_check_error()
*/

static int __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetUniformLocation(GLuint __pyx_v_program, GLchar *__pyx_v_name) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  GLint __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgGetUniformLocation", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":708
 * 
 * cdef int  __stdcall gil_dbgGetUniformLocation (GLuint program,  GLchar* name) with gil:
 *     gl_debug_print("GL glGetUniformLocation( program = ", program, ", name*=", <bytes>name, ", )")             # <<<<<<<<<<<<<<
 *     gl_check_error()
 *     return cgl_native.glGetUniformLocation ( program, name)
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 708, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_program); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 708, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyBytes_FromString(__pyx_v_name); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 708, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[6] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glGetUniformLocation_program, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_name, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_6, (6-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 708, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":709
 * cdef int  __stdcall gil_dbgGetUniformLocation (GLuint program,  GLchar* name) with gil:
 *     gl_debug_print("GL glGetUniformLocation( program = ", program, ", name*=", <bytes>name, ", )")
 *     gl_check_error()             # <<<<<<<<<<<<<<
 *     return cgl_native.glGetUniformLocation ( program, name)
 * 
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 709, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 709, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":710
 *     gl_debug_print("GL glGetUniformLocation( program = ", program, ", name*=", <bytes>name, ", )")
 *     gl_check_error()
 *     return cgl_native.glGetUniformLocation ( program, name)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgGetVertexAttribfv (GLuint index, GLenum pname, GLfloat* params) nogil:
*/
  __pyx_t_7 = __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glGetUniformLocation(__pyx_v_program, __pyx_v_name); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 710, __pyx_L1_error)
  __pyx_r = __pyx_t_7;
  goto __pyx_L0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":707
 *         return gil_dbgGetUniformLocation(program,   <bytes>name)
 * 
 * cdef int  __stdcall gil_dbgGetUniformLocation (GLuint program,  GLchar* name) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetUniformLocation( program = ", program, ", name*=", <bytes>name, ", )")
 *     gl_check_error()
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgGetUniformLocation", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  return __pyx_r;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":712
 *     return cgl_native.glGetUniformLocation ( program, name)
 * 
 * cdef void __stdcall dbgGetVertexAttribfv (GLuint index, GLenum pname, GLfloat* params) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetVertexAttribfv(index, pname, params)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetVertexAttribfv(GLuint __pyx_v_index, GLenum __pyx_v_pname, GLfloat *__pyx_v_params) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":713
 * 
 * cdef void __stdcall dbgGetVertexAttribfv (GLuint index, GLenum pname, GLfloat* params) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetVertexAttribfv(index, pname, params)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":714
 * cdef void __stdcall dbgGetVertexAttribfv (GLuint index, GLenum pname, GLfloat* params) nogil:
 *     with gil:
 *         gil_dbgGetVertexAttribfv(index, pname, params)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgGetVertexAttribfv (GLuint index, GLenum pname, GLfloat* params) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetVertexAttribfv(__pyx_v_index, __pyx_v_pname, __pyx_v_params); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 714, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":713
 * 
 * cdef void __stdcall dbgGetVertexAttribfv (GLuint index, GLenum pname, GLfloat* params) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetVertexAttribfv(index, pname, params)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":712
 *     return cgl_native.glGetUniformLocation ( program, name)
 * 
 * cdef void __stdcall dbgGetVertexAttribfv (GLuint index, GLenum pname, GLfloat* params) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetVertexAttribfv(index, pname, params)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgGetVertexAttribfv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":716
 *         gil_dbgGetVertexAttribfv(index, pname, params)
 * 
 * cdef void __stdcall gil_dbgGetVertexAttribfv (GLuint index, GLenum pname, GLfloat* params) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetVertexAttribfv( index = ", index, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetVertexAttribfv ( index, pname, params)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetVertexAttribfv(GLuint __pyx_v_index, GLenum __pyx_v_pname, GLfloat *__pyx_v_params) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgGetVertexAttribfv", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":717
 * 
 * cdef void __stdcall gil_dbgGetVertexAttribfv (GLuint index, GLenum pname, GLfloat* params) with gil:
 *     gl_debug_print("GL glGetVertexAttribfv( index = ", index, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glGetVertexAttribfv ( index, pname, params)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 717, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_index); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 717, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLenum(__pyx_v_pname); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 717, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_params)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 717, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyNumber_Hex(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 717, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyObject_Repr(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 717, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[8] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glGetVertexAttribfv_index, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_pname, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_params, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (8-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 717, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":718
 * cdef void __stdcall gil_dbgGetVertexAttribfv (GLuint index, GLenum pname, GLfloat* params) with gil:
 *     gl_debug_print("GL glGetVertexAttribfv( index = ", index, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetVertexAttribfv ( index, pname, params)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glGetVertexAttribfv(__pyx_v_index, __pyx_v_pname, __pyx_v_params); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 718, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":719
 *     gl_debug_print("GL glGetVertexAttribfv( index = ", index, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetVertexAttribfv ( index, pname, params)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgGetVertexAttribiv (GLuint index, GLenum pname, GLint* params) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 719, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 719, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":716
 *         gil_dbgGetVertexAttribfv(index, pname, params)
 * 
 * cdef void __stdcall gil_dbgGetVertexAttribfv (GLuint index, GLenum pname, GLfloat* params) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetVertexAttribfv( index = ", index, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetVertexAttribfv ( index, pname, params)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgGetVertexAttribfv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":721
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGetVertexAttribiv (GLuint index, GLenum pname, GLint* params) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetVertexAttribiv(index, pname,  params)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetVertexAttribiv(GLuint __pyx_v_index, GLenum __pyx_v_pname, GLint *__pyx_v_params) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":722
 * 
 * cdef void __stdcall dbgGetVertexAttribiv (GLuint index, GLenum pname, GLint* params) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetVertexAttribiv(index, pname,  params)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":723
 * cdef void __stdcall dbgGetVertexAttribiv (GLuint index, GLenum pname, GLint* params) nogil:
 *     with gil:
 *         gil_dbgGetVertexAttribiv(index, pname,  params)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgGetVertexAttribiv (GLuint index, GLenum pname, GLint* params) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetVertexAttribiv(__pyx_v_index, __pyx_v_pname, __pyx_v_params); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 723, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":722
 * 
 * cdef void __stdcall dbgGetVertexAttribiv (GLuint index, GLenum pname, GLint* params) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgGetVertexAttribiv(index, pname,  params)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":721
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgGetVertexAttribiv (GLuint index, GLenum pname, GLint* params) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgGetVertexAttribiv(index, pname,  params)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgGetVertexAttribiv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":725
 *         gil_dbgGetVertexAttribiv(index, pname,  params)
 * 
 * cdef void __stdcall gil_dbgGetVertexAttribiv (GLuint index, GLenum pname, GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetVertexAttribiv( index = ", index, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetVertexAttribiv ( index, pname, params)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgGetVertexAttribiv(GLuint __pyx_v_index, GLenum __pyx_v_pname, GLint *__pyx_v_params) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgGetVertexAttribiv", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":726
 * 
 * cdef void __stdcall gil_dbgGetVertexAttribiv (GLuint index, GLenum pname, GLint* params) with gil:
 *     gl_debug_print("GL glGetVertexAttribiv( index = ", index, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glGetVertexAttribiv ( index, pname, params)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 726, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_index); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 726, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLenum(__pyx_v_pname); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 726, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_params)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 726, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyNumber_Hex(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 726, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyObject_Repr(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 726, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[8] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glGetVertexAttribiv_index, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_pname, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_params, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (8-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 726, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":727
 * cdef void __stdcall gil_dbgGetVertexAttribiv (GLuint index, GLenum pname, GLint* params) with gil:
 *     gl_debug_print("GL glGetVertexAttribiv( index = ", index, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetVertexAttribiv ( index, pname, params)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glGetVertexAttribiv(__pyx_v_index, __pyx_v_pname, __pyx_v_params); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 727, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":728
 *     gl_debug_print("GL glGetVertexAttribiv( index = ", index, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetVertexAttribiv ( index, pname, params)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * # cdef void __stdcall dbgGetVertexAttribPointerv (GLuint index, GLenum pname, GLvoid** pointer) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 728, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 728, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":725
 *         gil_dbgGetVertexAttribiv(index, pname,  params)
 * 
 * cdef void __stdcall gil_dbgGetVertexAttribiv (GLuint index, GLenum pname, GLint* params) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glGetVertexAttribiv( index = ", index, ", pname = ", pname, ", params*=", repr(hex(<long long> params)), ", )")
 *     cgl_native.glGetVertexAttribiv ( index, pname, params)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgGetVertexAttribiv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":740
 * #     if ret: print("OpenGL Error %d / %x" % (ret, ret))
 * 
 * cdef void __stdcall dbgHint (GLenum target, GLenum mode) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgHint(target, mode)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgHint(GLenum __pyx_v_target, GLenum __pyx_v_mode) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":741
 * 
 * cdef void __stdcall dbgHint (GLenum target, GLenum mode) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgHint(target, mode)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":742
 * cdef void __stdcall dbgHint (GLenum target, GLenum mode) nogil:
 *     with gil:
 *         gil_dbgHint(target, mode)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgHint (GLenum target, GLenum mode) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgHint(__pyx_v_target, __pyx_v_mode); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 742, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":741
 * 
 * cdef void __stdcall dbgHint (GLenum target, GLenum mode) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgHint(target, mode)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":740
 * #     if ret: print("OpenGL Error %d / %x" % (ret, ret))
 * 
 * cdef void __stdcall dbgHint (GLenum target, GLenum mode) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgHint(target, mode)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgHint", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":744
 *         gil_dbgHint(target, mode)
 * 
 * cdef void __stdcall gil_dbgHint (GLenum target, GLenum mode) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glHint( target = ", target, ", mode = ", mode, ", )")
 *     cgl_native.glHint ( target, mode)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgHint(GLenum __pyx_v_target, GLenum __pyx_v_mode) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgHint", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":745
 * 
 * cdef void __stdcall gil_dbgHint (GLenum target, GLenum mode) with gil:
 *     gl_debug_print("GL glHint( target = ", target, ", mode = ", mode, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glHint ( target, mode)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 745, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_target); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 745, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLenum(__pyx_v_mode); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 745, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[6] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glHint_target, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_mode, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_6, (6-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 745, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":746
 * cdef void __stdcall gil_dbgHint (GLenum target, GLenum mode) with gil:
 *     gl_debug_print("GL glHint( target = ", target, ", mode = ", mode, ", )")
 *     cgl_native.glHint ( target, mode)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glHint(__pyx_v_target, __pyx_v_mode); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 746, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":747
 *     gl_debug_print("GL glHint( target = ", target, ", mode = ", mode, ", )")
 *     cgl_native.glHint ( target, mode)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef GLboolean __stdcall dbgIsBuffer (GLuint buffer) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 747, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 747, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":744
 *         gil_dbgHint(target, mode)
 * 
 * cdef void __stdcall gil_dbgHint (GLenum target, GLenum mode) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glHint( target = ", target, ", mode = ", mode, ", )")
 *     cgl_native.glHint ( target, mode)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgHint", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":749
 *     gl_check_error()
 * 
 * cdef GLboolean __stdcall dbgIsBuffer (GLuint buffer) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         return gil_dbgIsBuffer(buffer)
*/

static GLboolean __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgIsBuffer(GLuint __pyx_v_buffer) {
  GLboolean __pyx_r;
  GLboolean __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":750
 * 
 * cdef GLboolean __stdcall dbgIsBuffer (GLuint buffer) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         return gil_dbgIsBuffer(buffer)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":751
 * cdef GLboolean __stdcall dbgIsBuffer (GLuint buffer) nogil:
 *     with gil:
 *         return gil_dbgIsBuffer(buffer)             # <<<<<<<<<<<<<<
 * 
 * cdef GLboolean __stdcall gil_dbgIsBuffer (GLuint buffer) with gil:
*/
        __pyx_t_1 = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgIsBuffer(__pyx_v_buffer); if (unlikely(__pyx_t_1 == ((GLboolean)-1) && PyErr_Occurred())) __PYX_ERR(0, 751, __pyx_L4_error)
        __pyx_r = __pyx_t_1;
        goto __pyx_L3_return;
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":750
 * 
 * cdef GLboolean __stdcall dbgIsBuffer (GLuint buffer) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         return gil_dbgIsBuffer(buffer)
 * 
*/
      /*finally:*/ {
        __pyx_L3_return: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L0;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":749
 *     gl_check_error()
 * 
 * cdef GLboolean __stdcall dbgIsBuffer (GLuint buffer) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         return gil_dbgIsBuffer(buffer)
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgIsBuffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  return __pyx_r;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":753
 *         return gil_dbgIsBuffer(buffer)
 * 
 * cdef GLboolean __stdcall gil_dbgIsBuffer (GLuint buffer) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glIsBuffer( buffer = ", buffer, ", )")
 *     gl_check_error()
*/

static GLboolean __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgIsBuffer(GLuint __pyx_v_buffer) {
  GLboolean __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  GLboolean __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgIsBuffer", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":754
 * 
 * cdef GLboolean __stdcall gil_dbgIsBuffer (GLuint buffer) with gil:
 *     gl_debug_print("GL glIsBuffer( buffer = ", buffer, ", )")             # <<<<<<<<<<<<<<
 *     gl_check_error()
 *     return cgl_native.glIsBuffer ( buffer)
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 754, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_buffer); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 754, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glIsBuffer_buffer, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 754, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":755
 * cdef GLboolean __stdcall gil_dbgIsBuffer (GLuint buffer) with gil:
 *     gl_debug_print("GL glIsBuffer( buffer = ", buffer, ", )")
 *     gl_check_error()             # <<<<<<<<<<<<<<
 *     return cgl_native.glIsBuffer ( buffer)
 * 
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 755, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 755, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":756
 *     gl_debug_print("GL glIsBuffer( buffer = ", buffer, ", )")
 *     gl_check_error()
 *     return cgl_native.glIsBuffer ( buffer)             # <<<<<<<<<<<<<<
 * 
 * cdef GLboolean __stdcall dbgIsEnabled (GLenum cap) nogil:
*/
  __pyx_t_6 = __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glIsBuffer(__pyx_v_buffer); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 756, __pyx_L1_error)
  __pyx_r = __pyx_t_6;
  goto __pyx_L0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":753
 *         return gil_dbgIsBuffer(buffer)
 * 
 * cdef GLboolean __stdcall gil_dbgIsBuffer (GLuint buffer) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glIsBuffer( buffer = ", buffer, ", )")
 *     gl_check_error()
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgIsBuffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  return __pyx_r;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":758
 *     return cgl_native.glIsBuffer ( buffer)
 * 
 * cdef GLboolean __stdcall dbgIsEnabled (GLenum cap) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         return gil_dbgIsEnabled(cap)
*/

static GLboolean __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgIsEnabled(GLenum __pyx_v_cap) {
  GLboolean __pyx_r;
  GLboolean __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":759
 * 
 * cdef GLboolean __stdcall dbgIsEnabled (GLenum cap) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         return gil_dbgIsEnabled(cap)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":760
 * cdef GLboolean __stdcall dbgIsEnabled (GLenum cap) nogil:
 *     with gil:
 *         return gil_dbgIsEnabled(cap)             # <<<<<<<<<<<<<<
 * 
 * cdef GLboolean __stdcall gil_dbgIsEnabled (GLenum cap) with gil:
*/
        __pyx_t_1 = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgIsEnabled(__pyx_v_cap); if (unlikely(__pyx_t_1 == ((GLboolean)-1) && PyErr_Occurred())) __PYX_ERR(0, 760, __pyx_L4_error)
        __pyx_r = __pyx_t_1;
        goto __pyx_L3_return;
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":759
 * 
 * cdef GLboolean __stdcall dbgIsEnabled (GLenum cap) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         return gil_dbgIsEnabled(cap)
 * 
*/
      /*finally:*/ {
        __pyx_L3_return: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L0;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":758
 *     return cgl_native.glIsBuffer ( buffer)
 * 
 * cdef GLboolean __stdcall dbgIsEnabled (GLenum cap) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         return gil_dbgIsEnabled(cap)
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgIsEnabled", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  return __pyx_r;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":762
 *         return gil_dbgIsEnabled(cap)
 * 
 * cdef GLboolean __stdcall gil_dbgIsEnabled (GLenum cap) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glIsEnabled( cap = ", cap, ", )")
 *     gl_check_error()
*/

static GLboolean __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgIsEnabled(GLenum __pyx_v_cap) {
  GLboolean __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  GLboolean __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgIsEnabled", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":763
 * 
 * cdef GLboolean __stdcall gil_dbgIsEnabled (GLenum cap) with gil:
 *     gl_debug_print("GL glIsEnabled( cap = ", cap, ", )")             # <<<<<<<<<<<<<<
 *     gl_check_error()
 *     return cgl_native.glIsEnabled ( cap)
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 763, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_cap); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 763, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glIsEnabled_cap, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 763, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":764
 * cdef GLboolean __stdcall gil_dbgIsEnabled (GLenum cap) with gil:
 *     gl_debug_print("GL glIsEnabled( cap = ", cap, ", )")
 *     gl_check_error()             # <<<<<<<<<<<<<<
 *     return cgl_native.glIsEnabled ( cap)
 * 
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 764, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 764, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":765
 *     gl_debug_print("GL glIsEnabled( cap = ", cap, ", )")
 *     gl_check_error()
 *     return cgl_native.glIsEnabled ( cap)             # <<<<<<<<<<<<<<
 * 
 * cdef GLboolean __stdcall dbgIsFramebuffer (GLuint framebuffer) nogil:
*/
  __pyx_t_6 = __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glIsEnabled(__pyx_v_cap); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 765, __pyx_L1_error)
  __pyx_r = __pyx_t_6;
  goto __pyx_L0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":762
 *         return gil_dbgIsEnabled(cap)
 * 
 * cdef GLboolean __stdcall gil_dbgIsEnabled (GLenum cap) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glIsEnabled( cap = ", cap, ", )")
 *     gl_check_error()
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgIsEnabled", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  return __pyx_r;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":767
 *     return cgl_native.glIsEnabled ( cap)
 * 
 * cdef GLboolean __stdcall dbgIsFramebuffer (GLuint framebuffer) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         return gil_dbgIsFramebuffer(framebuffer)
*/

static GLboolean __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgIsFramebuffer(GLuint __pyx_v_framebuffer) {
  GLboolean __pyx_r;
  GLboolean __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":768
 * 
 * cdef GLboolean __stdcall dbgIsFramebuffer (GLuint framebuffer) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         return gil_dbgIsFramebuffer(framebuffer)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":769
 * cdef GLboolean __stdcall dbgIsFramebuffer (GLuint framebuffer) nogil:
 *     with gil:
 *         return gil_dbgIsFramebuffer(framebuffer)             # <<<<<<<<<<<<<<
 * 
 * cdef GLboolean __stdcall gil_dbgIsFramebuffer (GLuint framebuffer) with gil:
*/
        __pyx_t_1 = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgIsFramebuffer(__pyx_v_framebuffer); if (unlikely(__pyx_t_1 == ((GLboolean)-1) && PyErr_Occurred())) __PYX_ERR(0, 769, __pyx_L4_error)
        __pyx_r = __pyx_t_1;
        goto __pyx_L3_return;
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":768
 * 
 * cdef GLboolean __stdcall dbgIsFramebuffer (GLuint framebuffer) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         return gil_dbgIsFramebuffer(framebuffer)
 * 
*/
      /*finally:*/ {
        __pyx_L3_return: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L0;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":767
 *     return cgl_native.glIsEnabled ( cap)
 * 
 * cdef GLboolean __stdcall dbgIsFramebuffer (GLuint framebuffer) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         return gil_dbgIsFramebuffer(framebuffer)
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgIsFramebuffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  return __pyx_r;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":771
 *         return gil_dbgIsFramebuffer(framebuffer)
 * 
 * cdef GLboolean __stdcall gil_dbgIsFramebuffer (GLuint framebuffer) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glIsFramebuffer( framebuffer = ", framebuffer, ", )")
 *     gl_check_error()
*/

static GLboolean __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgIsFramebuffer(GLuint __pyx_v_framebuffer) {
  GLboolean __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  GLboolean __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgIsFramebuffer", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":772
 * 
 * cdef GLboolean __stdcall gil_dbgIsFramebuffer (GLuint framebuffer) with gil:
 *     gl_debug_print("GL glIsFramebuffer( framebuffer = ", framebuffer, ", )")             # <<<<<<<<<<<<<<
 *     gl_check_error()
 *     return cgl_native.glIsFramebuffer ( framebuffer)
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 772, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_framebuffer); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 772, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glIsFramebuffer_framebuffer, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 772, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":773
 * cdef GLboolean __stdcall gil_dbgIsFramebuffer (GLuint framebuffer) with gil:
 *     gl_debug_print("GL glIsFramebuffer( framebuffer = ", framebuffer, ", )")
 *     gl_check_error()             # <<<<<<<<<<<<<<
 *     return cgl_native.glIsFramebuffer ( framebuffer)
 * 
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 773, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 773, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":774
 *     gl_debug_print("GL glIsFramebuffer( framebuffer = ", framebuffer, ", )")
 *     gl_check_error()
 *     return cgl_native.glIsFramebuffer ( framebuffer)             # <<<<<<<<<<<<<<
 * 
 * cdef GLboolean __stdcall dbgIsProgram (GLuint program) nogil:
*/
  __pyx_t_6 = __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glIsFramebuffer(__pyx_v_framebuffer); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 774, __pyx_L1_error)
  __pyx_r = __pyx_t_6;
  goto __pyx_L0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":771
 *         return gil_dbgIsFramebuffer(framebuffer)
 * 
 * cdef GLboolean __stdcall gil_dbgIsFramebuffer (GLuint framebuffer) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glIsFramebuffer( framebuffer = ", framebuffer, ", )")
 *     gl_check_error()
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgIsFramebuffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  return __pyx_r;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":776
 *     return cgl_native.glIsFramebuffer ( framebuffer)
 * 
 * cdef GLboolean __stdcall dbgIsProgram (GLuint program) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         return gil_dbgIsProgram(program)
*/

static GLboolean __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgIsProgram(GLuint __pyx_v_program) {
  GLboolean __pyx_r;
  GLboolean __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":777
 * 
 * cdef GLboolean __stdcall dbgIsProgram (GLuint program) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         return gil_dbgIsProgram(program)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":778
 * cdef GLboolean __stdcall dbgIsProgram (GLuint program) nogil:
 *     with gil:
 *         return gil_dbgIsProgram(program)             # <<<<<<<<<<<<<<
 * 
 * cdef GLboolean __stdcall gil_dbgIsProgram (GLuint program) with gil:
*/
        __pyx_t_1 = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgIsProgram(__pyx_v_program); if (unlikely(__pyx_t_1 == ((GLboolean)-1) && PyErr_Occurred())) __PYX_ERR(0, 778, __pyx_L4_error)
        __pyx_r = __pyx_t_1;
        goto __pyx_L3_return;
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":777
 * 
 * cdef GLboolean __stdcall dbgIsProgram (GLuint program) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         return gil_dbgIsProgram(program)
 * 
*/
      /*finally:*/ {
        __pyx_L3_return: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L0;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":776
 *     return cgl_native.glIsFramebuffer ( framebuffer)
 * 
 * cdef GLboolean __stdcall dbgIsProgram (GLuint program) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         return gil_dbgIsProgram(program)
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgIsProgram", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  return __pyx_r;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":780
 *         return gil_dbgIsProgram(program)
 * 
 * cdef GLboolean __stdcall gil_dbgIsProgram (GLuint program) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glIsProgram( program = ", program, ", )")
 *     gl_check_error()
*/

static GLboolean __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgIsProgram(GLuint __pyx_v_program) {
  GLboolean __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  GLboolean __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgIsProgram", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":781
 * 
 * cdef GLboolean __stdcall gil_dbgIsProgram (GLuint program) with gil:
 *     gl_debug_print("GL glIsProgram( program = ", program, ", )")             # <<<<<<<<<<<<<<
 *     gl_check_error()
 *     return cgl_native.glIsProgram ( program)
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 781, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_program); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 781, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glIsProgram_program, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 781, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":782
 * cdef GLboolean __stdcall gil_dbgIsProgram (GLuint program) with gil:
 *     gl_debug_print("GL glIsProgram( program = ", program, ", )")
 *     gl_check_error()             # <<<<<<<<<<<<<<
 *     return cgl_native.glIsProgram ( program)
 * 
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 782, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 782, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":783
 *     gl_debug_print("GL glIsProgram( program = ", program, ", )")
 *     gl_check_error()
 *     return cgl_native.glIsProgram ( program)             # <<<<<<<<<<<<<<
 * 
 * cdef GLboolean __stdcall dbgIsRenderbuffer (GLuint renderbuffer) nogil:
*/
  __pyx_t_6 = __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glIsProgram(__pyx_v_program); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 783, __pyx_L1_error)
  __pyx_r = __pyx_t_6;
  goto __pyx_L0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":780
 *         return gil_dbgIsProgram(program)
 * 
 * cdef GLboolean __stdcall gil_dbgIsProgram (GLuint program) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glIsProgram( program = ", program, ", )")
 *     gl_check_error()
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgIsProgram", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  return __pyx_r;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":785
 *     return cgl_native.glIsProgram ( program)
 * 
 * cdef GLboolean __stdcall dbgIsRenderbuffer (GLuint renderbuffer) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         return gil_dbgIsRenderbuffer(renderbuffer)
*/

static GLboolean __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgIsRenderbuffer(GLuint __pyx_v_renderbuffer) {
  GLboolean __pyx_r;
  GLboolean __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":786
 * 
 * cdef GLboolean __stdcall dbgIsRenderbuffer (GLuint renderbuffer) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         return gil_dbgIsRenderbuffer(renderbuffer)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":787
 * cdef GLboolean __stdcall dbgIsRenderbuffer (GLuint renderbuffer) nogil:
 *     with gil:
 *         return gil_dbgIsRenderbuffer(renderbuffer)             # <<<<<<<<<<<<<<
 * 
 * cdef GLboolean __stdcall gil_dbgIsRenderbuffer (GLuint renderbuffer) with gil:
*/
        __pyx_t_1 = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgIsRenderbuffer(__pyx_v_renderbuffer); if (unlikely(__pyx_t_1 == ((GLboolean)-1) && PyErr_Occurred())) __PYX_ERR(0, 787, __pyx_L4_error)
        __pyx_r = __pyx_t_1;
        goto __pyx_L3_return;
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":786
 * 
 * cdef GLboolean __stdcall dbgIsRenderbuffer (GLuint renderbuffer) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         return gil_dbgIsRenderbuffer(renderbuffer)
 * 
*/
      /*finally:*/ {
        __pyx_L3_return: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L0;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":785
 *     return cgl_native.glIsProgram ( program)
 * 
 * cdef GLboolean __stdcall dbgIsRenderbuffer (GLuint renderbuffer) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         return gil_dbgIsRenderbuffer(renderbuffer)
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgIsRenderbuffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  return __pyx_r;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":789
 *         return gil_dbgIsRenderbuffer(renderbuffer)
 * 
 * cdef GLboolean __stdcall gil_dbgIsRenderbuffer (GLuint renderbuffer) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glIsRenderbuffer( renderbuffer = ", renderbuffer, ", )")
 *     gl_check_error()
*/

static GLboolean __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgIsRenderbuffer(GLuint __pyx_v_renderbuffer) {
  GLboolean __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  GLboolean __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgIsRenderbuffer", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":790
 * 
 * cdef GLboolean __stdcall gil_dbgIsRenderbuffer (GLuint renderbuffer) with gil:
 *     gl_debug_print("GL glIsRenderbuffer( renderbuffer = ", renderbuffer, ", )")             # <<<<<<<<<<<<<<
 *     gl_check_error()
 *     return cgl_native.glIsRenderbuffer ( renderbuffer)
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 790, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_renderbuffer); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 790, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glIsRenderbuffer_renderbuffer, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 790, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":791
 * cdef GLboolean __stdcall gil_dbgIsRenderbuffer (GLuint renderbuffer) with gil:
 *     gl_debug_print("GL glIsRenderbuffer( renderbuffer = ", renderbuffer, ", )")
 *     gl_check_error()             # <<<<<<<<<<<<<<
 *     return cgl_native.glIsRenderbuffer ( renderbuffer)
 * 
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 791, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 791, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":792
 *     gl_debug_print("GL glIsRenderbuffer( renderbuffer = ", renderbuffer, ", )")
 *     gl_check_error()
 *     return cgl_native.glIsRenderbuffer ( renderbuffer)             # <<<<<<<<<<<<<<
 * 
 * cdef GLboolean __stdcall dbgIsShader (GLuint shader) nogil:
*/
  __pyx_t_6 = __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glIsRenderbuffer(__pyx_v_renderbuffer); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 792, __pyx_L1_error)
  __pyx_r = __pyx_t_6;
  goto __pyx_L0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":789
 *         return gil_dbgIsRenderbuffer(renderbuffer)
 * 
 * cdef GLboolean __stdcall gil_dbgIsRenderbuffer (GLuint renderbuffer) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glIsRenderbuffer( renderbuffer = ", renderbuffer, ", )")
 *     gl_check_error()
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgIsRenderbuffer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  return __pyx_r;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":794
 *     return cgl_native.glIsRenderbuffer ( renderbuffer)
 * 
 * cdef GLboolean __stdcall dbgIsShader (GLuint shader) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         return gil_dbgIsShader(shader)
*/

static GLboolean __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgIsShader(GLuint __pyx_v_shader) {
  GLboolean __pyx_r;
  GLboolean __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":795
 * 
 * cdef GLboolean __stdcall dbgIsShader (GLuint shader) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         return gil_dbgIsShader(shader)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":796
 * cdef GLboolean __stdcall dbgIsShader (GLuint shader) nogil:
 *     with gil:
 *         return gil_dbgIsShader(shader)             # <<<<<<<<<<<<<<
 * 
 * cdef GLboolean __stdcall gil_dbgIsShader (GLuint shader) with gil:
*/
        __pyx_t_1 = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgIsShader(__pyx_v_shader); if (unlikely(__pyx_t_1 == ((GLboolean)-1) && PyErr_Occurred())) __PYX_ERR(0, 796, __pyx_L4_error)
        __pyx_r = __pyx_t_1;
        goto __pyx_L3_return;
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":795
 * 
 * cdef GLboolean __stdcall dbgIsShader (GLuint shader) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         return gil_dbgIsShader(shader)
 * 
*/
      /*finally:*/ {
        __pyx_L3_return: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L0;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":794
 *     return cgl_native.glIsRenderbuffer ( renderbuffer)
 * 
 * cdef GLboolean __stdcall dbgIsShader (GLuint shader) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         return gil_dbgIsShader(shader)
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgIsShader", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  return __pyx_r;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":798
 *         return gil_dbgIsShader(shader)
 * 
 * cdef GLboolean __stdcall gil_dbgIsShader (GLuint shader) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glIsShader( shader = ", shader, ", )")
 *     gl_check_error()
*/

static GLboolean __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgIsShader(GLuint __pyx_v_shader) {
  GLboolean __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  GLboolean __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgIsShader", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":799
 * 
 * cdef GLboolean __stdcall gil_dbgIsShader (GLuint shader) with gil:
 *     gl_debug_print("GL glIsShader( shader = ", shader, ", )")             # <<<<<<<<<<<<<<
 *     gl_check_error()
 *     return cgl_native.glIsShader ( shader)
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 799, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_shader); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 799, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glIsShader_shader, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 799, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":800
 * cdef GLboolean __stdcall gil_dbgIsShader (GLuint shader) with gil:
 *     gl_debug_print("GL glIsShader( shader = ", shader, ", )")
 *     gl_check_error()             # <<<<<<<<<<<<<<
 *     return cgl_native.glIsShader ( shader)
 * 
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 800, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 800, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":801
 *     gl_debug_print("GL glIsShader( shader = ", shader, ", )")
 *     gl_check_error()
 *     return cgl_native.glIsShader ( shader)             # <<<<<<<<<<<<<<
 * 
 * cdef GLboolean __stdcall dbgIsTexture (GLuint texture) nogil:
*/
  __pyx_t_6 = __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glIsShader(__pyx_v_shader); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 801, __pyx_L1_error)
  __pyx_r = __pyx_t_6;
  goto __pyx_L0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":798
 *         return gil_dbgIsShader(shader)
 * 
 * cdef GLboolean __stdcall gil_dbgIsShader (GLuint shader) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glIsShader( shader = ", shader, ", )")
 *     gl_check_error()
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgIsShader", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  return __pyx_r;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":803
 *     return cgl_native.glIsShader ( shader)
 * 
 * cdef GLboolean __stdcall dbgIsTexture (GLuint texture) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         return gil_dbgIsTexture(texture)
*/

static GLboolean __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgIsTexture(GLuint __pyx_v_texture) {
  GLboolean __pyx_r;
  GLboolean __pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":804
 * 
 * cdef GLboolean __stdcall dbgIsTexture (GLuint texture) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         return gil_dbgIsTexture(texture)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":805
 * cdef GLboolean __stdcall dbgIsTexture (GLuint texture) nogil:
 *     with gil:
 *         return gil_dbgIsTexture(texture)             # <<<<<<<<<<<<<<
 * 
 * cdef GLboolean __stdcall gil_dbgIsTexture (GLuint texture) with gil:
*/
        __pyx_t_1 = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgIsTexture(__pyx_v_texture); if (unlikely(__pyx_t_1 == ((GLboolean)-1) && PyErr_Occurred())) __PYX_ERR(0, 805, __pyx_L4_error)
        __pyx_r = __pyx_t_1;
        goto __pyx_L3_return;
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":804
 * 
 * cdef GLboolean __stdcall dbgIsTexture (GLuint texture) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         return gil_dbgIsTexture(texture)
 * 
*/
      /*finally:*/ {
        __pyx_L3_return: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L0;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":803
 *     return cgl_native.glIsShader ( shader)
 * 
 * cdef GLboolean __stdcall dbgIsTexture (GLuint texture) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         return gil_dbgIsTexture(texture)
*/

  /* function exit code */
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgIsTexture", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
  return __pyx_r;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":807
 *         return gil_dbgIsTexture(texture)
 * 
 * cdef GLboolean __stdcall gil_dbgIsTexture (GLuint texture) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glIsTexture( texture = ", texture, ", )")
 *     gl_check_error()
*/

static GLboolean __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgIsTexture(GLuint __pyx_v_texture) {
  GLboolean __pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  GLboolean __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgIsTexture", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":808
 * 
 * cdef GLboolean __stdcall gil_dbgIsTexture (GLuint texture) with gil:
 *     gl_debug_print("GL glIsTexture( texture = ", texture, ", )")             # <<<<<<<<<<<<<<
 *     gl_check_error()
 *     return cgl_native.glIsTexture ( texture)
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 808, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_texture); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 808, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glIsTexture_texture, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 808, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":809
 * cdef GLboolean __stdcall gil_dbgIsTexture (GLuint texture) with gil:
 *     gl_debug_print("GL glIsTexture( texture = ", texture, ", )")
 *     gl_check_error()             # <<<<<<<<<<<<<<
 *     return cgl_native.glIsTexture ( texture)
 * 
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 809, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 809, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":810
 *     gl_debug_print("GL glIsTexture( texture = ", texture, ", )")
 *     gl_check_error()
 *     return cgl_native.glIsTexture ( texture)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgLineWidth (GLfloat width) nogil:
*/
  __pyx_t_6 = __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glIsTexture(__pyx_v_texture); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 810, __pyx_L1_error)
  __pyx_r = __pyx_t_6;
  goto __pyx_L0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":807
 *         return gil_dbgIsTexture(texture)
 * 
 * cdef GLboolean __stdcall gil_dbgIsTexture (GLuint texture) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glIsTexture( texture = ", texture, ", )")
 *     gl_check_error()
*/

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgIsTexture", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  return __pyx_r;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":812
 *     return cgl_native.glIsTexture ( texture)
 * 
 * cdef void __stdcall dbgLineWidth (GLfloat width) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgLineWidth(width)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgLineWidth(GLfloat __pyx_v_width) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":813
 * 
 * cdef void __stdcall dbgLineWidth (GLfloat width) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgLineWidth(width)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":814
 * cdef void __stdcall dbgLineWidth (GLfloat width) nogil:
 *     with gil:
 *         gil_dbgLineWidth(width)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgLineWidth (GLfloat width) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgLineWidth(__pyx_v_width); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 814, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":813
 * 
 * cdef void __stdcall dbgLineWidth (GLfloat width) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgLineWidth(width)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":812
 *     return cgl_native.glIsTexture ( texture)
 * 
 * cdef void __stdcall dbgLineWidth (GLfloat width) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgLineWidth(width)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgLineWidth", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":816
 *         gil_dbgLineWidth(width)
 * 
 * cdef void __stdcall gil_dbgLineWidth (GLfloat width) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glLineWidth( width = ", width, ", )")
 *     cgl_native.glLineWidth ( width)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgLineWidth(GLfloat __pyx_v_width) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgLineWidth", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":817
 * 
 * cdef void __stdcall gil_dbgLineWidth (GLfloat width) with gil:
 *     gl_debug_print("GL glLineWidth( width = ", width, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glLineWidth ( width)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 817, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_width); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 817, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glLineWidth_width, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 817, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":818
 * cdef void __stdcall gil_dbgLineWidth (GLfloat width) with gil:
 *     gl_debug_print("GL glLineWidth( width = ", width, ", )")
 *     cgl_native.glLineWidth ( width)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glLineWidth(__pyx_v_width); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 818, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":819
 *     gl_debug_print("GL glLineWidth( width = ", width, ", )")
 *     cgl_native.glLineWidth ( width)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgLinkProgram (GLuint program) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 819, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 819, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":816
 *         gil_dbgLineWidth(width)
 * 
 * cdef void __stdcall gil_dbgLineWidth (GLfloat width) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glLineWidth( width = ", width, ", )")
 *     cgl_native.glLineWidth ( width)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgLineWidth", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":821
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgLinkProgram (GLuint program) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgLinkProgram(program)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgLinkProgram(GLuint __pyx_v_program) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":822
 * 
 * cdef void __stdcall dbgLinkProgram (GLuint program) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgLinkProgram(program)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":823
 * cdef void __stdcall dbgLinkProgram (GLuint program) nogil:
 *     with gil:
 *         gil_dbgLinkProgram(program)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgLinkProgram (GLuint program) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgLinkProgram(__pyx_v_program); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 823, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":822
 * 
 * cdef void __stdcall dbgLinkProgram (GLuint program) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgLinkProgram(program)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":821
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgLinkProgram (GLuint program) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgLinkProgram(program)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgLinkProgram", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":825
 *         gil_dbgLinkProgram(program)
 * 
 * cdef void __stdcall gil_dbgLinkProgram (GLuint program) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glLinkProgram( program = ", program, ", )")
 *     cgl_native.glLinkProgram ( program)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgLinkProgram(GLuint __pyx_v_program) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgLinkProgram", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":826
 * 
 * cdef void __stdcall gil_dbgLinkProgram (GLuint program) with gil:
 *     gl_debug_print("GL glLinkProgram( program = ", program, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glLinkProgram ( program)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 826, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_program); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 826, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glLinkProgram_program, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 826, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":827
 * cdef void __stdcall gil_dbgLinkProgram (GLuint program) with gil:
 *     gl_debug_print("GL glLinkProgram( program = ", program, ", )")
 *     cgl_native.glLinkProgram ( program)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glLinkProgram(__pyx_v_program); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 827, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":828
 *     gl_debug_print("GL glLinkProgram( program = ", program, ", )")
 *     cgl_native.glLinkProgram ( program)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgPixelStorei (GLenum pname, GLint param) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 828, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 828, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":825
 *         gil_dbgLinkProgram(program)
 * 
 * cdef void __stdcall gil_dbgLinkProgram (GLuint program) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glLinkProgram( program = ", program, ", )")
 *     cgl_native.glLinkProgram ( program)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgLinkProgram", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":830
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgPixelStorei (GLenum pname, GLint param) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgPixelStorei(pname, param)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgPixelStorei(GLenum __pyx_v_pname, GLint __pyx_v_param) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":831
 * 
 * cdef void __stdcall dbgPixelStorei (GLenum pname, GLint param) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgPixelStorei(pname, param)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":832
 * cdef void __stdcall dbgPixelStorei (GLenum pname, GLint param) nogil:
 *     with gil:
 *         gil_dbgPixelStorei(pname, param)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgPixelStorei (GLenum pname, GLint param) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgPixelStorei(__pyx_v_pname, __pyx_v_param); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 832, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":831
 * 
 * cdef void __stdcall dbgPixelStorei (GLenum pname, GLint param) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgPixelStorei(pname, param)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":830
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgPixelStorei (GLenum pname, GLint param) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgPixelStorei(pname, param)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgPixelStorei", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":834
 *         gil_dbgPixelStorei(pname, param)
 * 
 * cdef void __stdcall gil_dbgPixelStorei (GLenum pname, GLint param) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glPixelStorei( pname = ", pname, ", param = ", param, ", )")
 *     cgl_native.glPixelStorei ( pname, param)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgPixelStorei(GLenum __pyx_v_pname, GLint __pyx_v_param) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgPixelStorei", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":835
 * 
 * cdef void __stdcall gil_dbgPixelStorei (GLenum pname, GLint param) with gil:
 *     gl_debug_print("GL glPixelStorei( pname = ", pname, ", param = ", param, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glPixelStorei ( pname, param)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 835, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_pname); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 835, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLint(__pyx_v_param); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 835, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[6] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glPixelStorei_pname, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_param, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_6, (6-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 835, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":836
 * cdef void __stdcall gil_dbgPixelStorei (GLenum pname, GLint param) with gil:
 *     gl_debug_print("GL glPixelStorei( pname = ", pname, ", param = ", param, ", )")
 *     cgl_native.glPixelStorei ( pname, param)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glPixelStorei(__pyx_v_pname, __pyx_v_param); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 836, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":837
 *     gl_debug_print("GL glPixelStorei( pname = ", pname, ", param = ", param, ", )")
 *     cgl_native.glPixelStorei ( pname, param)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgPolygonOffset (GLfloat factor, GLfloat units) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 837, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 837, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":834
 *         gil_dbgPixelStorei(pname, param)
 * 
 * cdef void __stdcall gil_dbgPixelStorei (GLenum pname, GLint param) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glPixelStorei( pname = ", pname, ", param = ", param, ", )")
 *     cgl_native.glPixelStorei ( pname, param)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgPixelStorei", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":839
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgPolygonOffset (GLfloat factor, GLfloat units) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgPolygonOffset(factor, units)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgPolygonOffset(GLfloat __pyx_v_factor, GLfloat __pyx_v_units) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":840
 * 
 * cdef void __stdcall dbgPolygonOffset (GLfloat factor, GLfloat units) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgPolygonOffset(factor, units)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":841
 * cdef void __stdcall dbgPolygonOffset (GLfloat factor, GLfloat units) nogil:
 *     with gil:
 *         gil_dbgPolygonOffset(factor, units)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgPolygonOffset (GLfloat factor, GLfloat units) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgPolygonOffset(__pyx_v_factor, __pyx_v_units); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 841, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":840
 * 
 * cdef void __stdcall dbgPolygonOffset (GLfloat factor, GLfloat units) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgPolygonOffset(factor, units)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":839
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgPolygonOffset (GLfloat factor, GLfloat units) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgPolygonOffset(factor, units)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgPolygonOffset", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":843
 *         gil_dbgPolygonOffset(factor, units)
 * 
 * cdef void __stdcall gil_dbgPolygonOffset (GLfloat factor, GLfloat units) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glPolygonOffset( factor = ", factor, ", units = ", units, ", )")
 *     cgl_native.glPolygonOffset ( factor, units)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgPolygonOffset(GLfloat __pyx_v_factor, GLfloat __pyx_v_units) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgPolygonOffset", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":844
 * 
 * cdef void __stdcall gil_dbgPolygonOffset (GLfloat factor, GLfloat units) with gil:
 *     gl_debug_print("GL glPolygonOffset( factor = ", factor, ", units = ", units, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glPolygonOffset ( factor, units)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 844, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_factor); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 844, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_units); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 844, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[6] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glPolygonOffset_factor, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_units, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_6, (6-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 844, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":845
 * cdef void __stdcall gil_dbgPolygonOffset (GLfloat factor, GLfloat units) with gil:
 *     gl_debug_print("GL glPolygonOffset( factor = ", factor, ", units = ", units, ", )")
 *     cgl_native.glPolygonOffset ( factor, units)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glPolygonOffset(__pyx_v_factor, __pyx_v_units); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 845, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":846
 *     gl_debug_print("GL glPolygonOffset( factor = ", factor, ", units = ", units, ", )")
 *     cgl_native.glPolygonOffset ( factor, units)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 846, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 846, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":843
 *         gil_dbgPolygonOffset(factor, units)
 * 
 * cdef void __stdcall gil_dbgPolygonOffset (GLfloat factor, GLfloat units) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glPolygonOffset( factor = ", factor, ", units = ", units, ", )")
 *     cgl_native.glPolygonOffset ( factor, units)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgPolygonOffset", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":848
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgReadPixels(x, y, width, height, format, type,  pixels)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgReadPixels(GLint __pyx_v_x, GLint __pyx_v_y, GLsizei __pyx_v_width, GLsizei __pyx_v_height, GLenum __pyx_v_format, GLenum __pyx_v_type, GLvoid *__pyx_v_pixels) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":849
 * 
 * cdef void __stdcall dbgReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgReadPixels(x, y, width, height, format, type,  pixels)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":850
 * cdef void __stdcall dbgReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels) nogil:
 *     with gil:
 *         gil_dbgReadPixels(x, y, width, height, format, type,  pixels)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgReadPixels(__pyx_v_x, __pyx_v_y, __pyx_v_width, __pyx_v_height, __pyx_v_format, __pyx_v_type, __pyx_v_pixels); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 850, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":849
 * 
 * cdef void __stdcall dbgReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgReadPixels(x, y, width, height, format, type,  pixels)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":848
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgReadPixels(x, y, width, height, format, type,  pixels)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgReadPixels", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":852
 *         gil_dbgReadPixels(x, y, width, height, format, type,  pixels)
 * 
 * cdef void __stdcall gil_dbgReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glReadPixels( x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", format = ", format, ", type = ", type, ", pixels*=", repr(hex(<long long> pixels)), ", )")
 *     cgl_native.glReadPixels ( x, y, width, height, format, type, pixels)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgReadPixels(GLint __pyx_v_x, GLint __pyx_v_y, GLsizei __pyx_v_width, GLsizei __pyx_v_height, GLenum __pyx_v_format, GLenum __pyx_v_type, GLvoid *__pyx_v_pixels) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  size_t __pyx_t_12;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgReadPixels", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":853
 * 
 * cdef void __stdcall gil_dbgReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels) with gil:
 *     gl_debug_print("GL glReadPixels( x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", format = ", format, ", type = ", type, ", pixels*=", repr(hex(<long long> pixels)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glReadPixels ( x, y, width, height, format, type, pixels)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 853, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLint(__pyx_v_x); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 853, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLint(__pyx_v_y); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 853, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_GLsizei(__pyx_v_width); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 853, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyLong_From_GLsizei(__pyx_v_height); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 853, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyLong_From_GLenum(__pyx_v_format); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 853, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = __Pyx_PyLong_From_GLenum(__pyx_v_type); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 853, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_10 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_pixels)); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 853, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __pyx_t_11 = __Pyx_PyNumber_Hex(__pyx_t_10); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 853, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  __pyx_t_10 = PyObject_Repr(__pyx_t_11); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 853, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
  __pyx_t_12 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_12 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[16] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glReadPixels_x, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_y, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_width, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_height, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u_format, __pyx_t_8, __pyx_mstate_global->__pyx_kp_u_type, __pyx_t_9, __pyx_mstate_global->__pyx_kp_u_pixels, __pyx_t_10, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_12, (16-__pyx_t_12) | (__pyx_t_12*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 853, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":854
 * cdef void __stdcall gil_dbgReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels) with gil:
 *     gl_debug_print("GL glReadPixels( x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", format = ", format, ", type = ", type, ", pixels*=", repr(hex(<long long> pixels)), ", )")
 *     cgl_native.glReadPixels ( x, y, width, height, format, type, pixels)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * # Skipping generation of: "#cdef void __stdcall dbgReleaseShaderCompiler ()"
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glReadPixels(__pyx_v_x, __pyx_v_y, __pyx_v_width, __pyx_v_height, __pyx_v_format, __pyx_v_type, __pyx_v_pixels); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 854, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":855
 *     gl_debug_print("GL glReadPixels( x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", format = ", format, ", type = ", type, ", pixels*=", repr(hex(<long long> pixels)), ", )")
 *     cgl_native.glReadPixels ( x, y, width, height, format, type, pixels)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * # Skipping generation of: "#cdef void __stdcall dbgReleaseShaderCompiler ()"
 * 
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_10, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 855, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __pyx_t_12 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_10))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_10);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_10);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_10, __pyx__function);
    __pyx_t_12 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_10, __pyx_callargs+__pyx_t_12, (1-__pyx_t_12) | (__pyx_t_12*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 855, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":852
 *         gil_dbgReadPixels(x, y, width, height, format, type,  pixels)
 * 
 * cdef void __stdcall gil_dbgReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid* pixels) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glReadPixels( x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", format = ", format, ", type = ", type, ", pixels*=", repr(hex(<long long> pixels)), ", )")
 *     cgl_native.glReadPixels ( x, y, width, height, format, type, pixels)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgReadPixels", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":858
 * # Skipping generation of: "#cdef void __stdcall dbgReleaseShaderCompiler ()"
 * 
 * cdef void __stdcall dbgRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgRenderbufferStorage(target, internalformat, width, height)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgRenderbufferStorage(GLenum __pyx_v_target, GLenum __pyx_v_internalformat, GLsizei __pyx_v_width, GLsizei __pyx_v_height) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":859
 * 
 * cdef void __stdcall dbgRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgRenderbufferStorage(target, internalformat, width, height)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":860
 * cdef void __stdcall dbgRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height) nogil:
 *     with gil:
 *         gil_dbgRenderbufferStorage(target, internalformat, width, height)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgRenderbufferStorage(__pyx_v_target, __pyx_v_internalformat, __pyx_v_width, __pyx_v_height); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 860, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":859
 * 
 * cdef void __stdcall dbgRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgRenderbufferStorage(target, internalformat, width, height)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":858
 * # Skipping generation of: "#cdef void __stdcall dbgReleaseShaderCompiler ()"
 * 
 * cdef void __stdcall dbgRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgRenderbufferStorage(target, internalformat, width, height)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgRenderbufferStorage", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":862
 *         gil_dbgRenderbufferStorage(target, internalformat, width, height)
 * 
 * cdef void __stdcall gil_dbgRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glRenderbufferStorage( target = ", target, ", internalformat = ", internalformat, ", width = ", width, ", height = ", height, ", )")
 *     cgl_native.glRenderbufferStorage ( target, internalformat, width, height)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgRenderbufferStorage(GLenum __pyx_v_target, GLenum __pyx_v_internalformat, GLsizei __pyx_v_width, GLsizei __pyx_v_height) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgRenderbufferStorage", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":863
 * 
 * cdef void __stdcall gil_dbgRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height) with gil:
 *     gl_debug_print("GL glRenderbufferStorage( target = ", target, ", internalformat = ", internalformat, ", width = ", width, ", height = ", height, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glRenderbufferStorage ( target, internalformat, width, height)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 863, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_target); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 863, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLenum(__pyx_v_internalformat); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 863, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_GLsizei(__pyx_v_width); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 863, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyLong_From_GLsizei(__pyx_v_height); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 863, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[10] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glRenderbufferStorage_target, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_internalformat, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_width, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_height, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (10-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 863, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":864
 * cdef void __stdcall gil_dbgRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height) with gil:
 *     gl_debug_print("GL glRenderbufferStorage( target = ", target, ", internalformat = ", internalformat, ", width = ", width, ", height = ", height, ", )")
 *     cgl_native.glRenderbufferStorage ( target, internalformat, width, height)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glRenderbufferStorage(__pyx_v_target, __pyx_v_internalformat, __pyx_v_width, __pyx_v_height); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 864, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":865
 *     gl_debug_print("GL glRenderbufferStorage( target = ", target, ", internalformat = ", internalformat, ", width = ", width, ", height = ", height, ", )")
 *     cgl_native.glRenderbufferStorage ( target, internalformat, width, height)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgSampleCoverage (GLclampf value, GLboolean invert) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 865, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 865, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":862
 *         gil_dbgRenderbufferStorage(target, internalformat, width, height)
 * 
 * cdef void __stdcall gil_dbgRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glRenderbufferStorage( target = ", target, ", internalformat = ", internalformat, ", width = ", width, ", height = ", height, ", )")
 *     cgl_native.glRenderbufferStorage ( target, internalformat, width, height)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgRenderbufferStorage", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":867
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgSampleCoverage (GLclampf value, GLboolean invert) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgSampleCoverage(value, invert)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgSampleCoverage(GLclampf __pyx_v_value, GLboolean __pyx_v_invert) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":868
 * 
 * cdef void __stdcall dbgSampleCoverage (GLclampf value, GLboolean invert) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgSampleCoverage(value, invert)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":869
 * cdef void __stdcall dbgSampleCoverage (GLclampf value, GLboolean invert) nogil:
 *     with gil:
 *         gil_dbgSampleCoverage(value, invert)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgSampleCoverage (GLclampf value, GLboolean invert) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgSampleCoverage(__pyx_v_value, __pyx_v_invert); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 869, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":868
 * 
 * cdef void __stdcall dbgSampleCoverage (GLclampf value, GLboolean invert) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgSampleCoverage(value, invert)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":867
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgSampleCoverage (GLclampf value, GLboolean invert) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgSampleCoverage(value, invert)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgSampleCoverage", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":871
 *         gil_dbgSampleCoverage(value, invert)
 * 
 * cdef void __stdcall gil_dbgSampleCoverage (GLclampf value, GLboolean invert) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glSampleCoverage( value = ", value, ", invert = ", invert, ", )")
 *     cgl_native.glSampleCoverage ( value, invert)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgSampleCoverage(GLclampf __pyx_v_value, GLboolean __pyx_v_invert) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgSampleCoverage", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":872
 * 
 * cdef void __stdcall gil_dbgSampleCoverage (GLclampf value, GLboolean invert) with gil:
 *     gl_debug_print("GL glSampleCoverage( value = ", value, ", invert = ", invert, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glSampleCoverage ( value, invert)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 872, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_value); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 872, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLboolean(__pyx_v_invert); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 872, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[6] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glSampleCoverage_value, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_invert, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_6, (6-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 872, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":873
 * cdef void __stdcall gil_dbgSampleCoverage (GLclampf value, GLboolean invert) with gil:
 *     gl_debug_print("GL glSampleCoverage( value = ", value, ", invert = ", invert, ", )")
 *     cgl_native.glSampleCoverage ( value, invert)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glSampleCoverage(__pyx_v_value, __pyx_v_invert); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 873, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":874
 *     gl_debug_print("GL glSampleCoverage( value = ", value, ", invert = ", invert, ", )")
 *     cgl_native.glSampleCoverage ( value, invert)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgScissor (GLint x, GLint y, GLsizei width, GLsizei height) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 874, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 874, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":871
 *         gil_dbgSampleCoverage(value, invert)
 * 
 * cdef void __stdcall gil_dbgSampleCoverage (GLclampf value, GLboolean invert) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glSampleCoverage( value = ", value, ", invert = ", invert, ", )")
 *     cgl_native.glSampleCoverage ( value, invert)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgSampleCoverage", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":876
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgScissor (GLint x, GLint y, GLsizei width, GLsizei height) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgScissor(x, y, width, height)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgScissor(GLint __pyx_v_x, GLint __pyx_v_y, GLsizei __pyx_v_width, GLsizei __pyx_v_height) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":877
 * 
 * cdef void __stdcall dbgScissor (GLint x, GLint y, GLsizei width, GLsizei height) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgScissor(x, y, width, height)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":878
 * cdef void __stdcall dbgScissor (GLint x, GLint y, GLsizei width, GLsizei height) nogil:
 *     with gil:
 *         gil_dbgScissor(x, y, width, height)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgScissor (GLint x, GLint y, GLsizei width, GLsizei height) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgScissor(__pyx_v_x, __pyx_v_y, __pyx_v_width, __pyx_v_height); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 878, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":877
 * 
 * cdef void __stdcall dbgScissor (GLint x, GLint y, GLsizei width, GLsizei height) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgScissor(x, y, width, height)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":876
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgScissor (GLint x, GLint y, GLsizei width, GLsizei height) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgScissor(x, y, width, height)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgScissor", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":880
 *         gil_dbgScissor(x, y, width, height)
 * 
 * cdef void __stdcall gil_dbgScissor (GLint x, GLint y, GLsizei width, GLsizei height) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glScissor( x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", )")
 *     cgl_native.glScissor ( x, y, width, height)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgScissor(GLint __pyx_v_x, GLint __pyx_v_y, GLsizei __pyx_v_width, GLsizei __pyx_v_height) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgScissor", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":881
 * 
 * cdef void __stdcall gil_dbgScissor (GLint x, GLint y, GLsizei width, GLsizei height) with gil:
 *     gl_debug_print("GL glScissor( x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glScissor ( x, y, width, height)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 881, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLint(__pyx_v_x); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 881, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLint(__pyx_v_y); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 881, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_GLsizei(__pyx_v_width); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 881, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyLong_From_GLsizei(__pyx_v_height); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 881, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[10] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glScissor_x, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_y, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_width, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_height, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (10-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 881, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":882
 * cdef void __stdcall gil_dbgScissor (GLint x, GLint y, GLsizei width, GLsizei height) with gil:
 *     gl_debug_print("GL glScissor( x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", )")
 *     cgl_native.glScissor ( x, y, width, height)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * # Skipping generation of: "#cdef void __stdcall dbgShaderBinary (cgl_native.GLsizei n,  cgl_native.GLuint* shaders, cgl_native.GLenum binaryformat,  cgl_native.GLvoid* binary, cgl_native.GLsizei length)"
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glScissor(__pyx_v_x, __pyx_v_y, __pyx_v_width, __pyx_v_height); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 882, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":883
 *     gl_debug_print("GL glScissor( x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", )")
 *     cgl_native.glScissor ( x, y, width, height)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * # Skipping generation of: "#cdef void __stdcall dbgShaderBinary (cgl_native.GLsizei n,  cgl_native.GLuint* shaders, cgl_native.GLenum binaryformat,  cgl_native.GLvoid* binary, cgl_native.GLsizei length)"
 * 
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 883, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 883, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":880
 *         gil_dbgScissor(x, y, width, height)
 * 
 * cdef void __stdcall gil_dbgScissor (GLint x, GLint y, GLsizei width, GLsizei height) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glScissor( x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", )")
 *     cgl_native.glScissor ( x, y, width, height)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgScissor", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":886
 * # Skipping generation of: "#cdef void __stdcall dbgShaderBinary (cgl_native.GLsizei n,  cgl_native.GLuint* shaders, cgl_native.GLenum binaryformat,  cgl_native.GLvoid* binary, cgl_native.GLsizei length)"
 * 
 * cdef void __stdcall dbgShaderSource (GLuint shader, GLsizei count, const GLchar* const* string, const GLint* length) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgShaderSource(shader, count, string, length)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgShaderSource(GLuint __pyx_v_shader, GLsizei __pyx_v_count, GLchar const *const *__pyx_v_string, GLint const *__pyx_v_length) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":887
 * 
 * cdef void __stdcall dbgShaderSource (GLuint shader, GLsizei count, const GLchar* const* string, const GLint* length) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgShaderSource(shader, count, string, length)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":888
 * cdef void __stdcall dbgShaderSource (GLuint shader, GLsizei count, const GLchar* const* string, const GLint* length) nogil:
 *     with gil:
 *         gil_dbgShaderSource(shader, count, string, length)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgShaderSource (GLuint shader, GLsizei count,  const GLchar* const* string, const GLint* length) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgShaderSource(__pyx_v_shader, __pyx_v_count, __pyx_v_string, __pyx_v_length); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 888, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":887
 * 
 * cdef void __stdcall dbgShaderSource (GLuint shader, GLsizei count, const GLchar* const* string, const GLint* length) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgShaderSource(shader, count, string, length)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":886
 * # Skipping generation of: "#cdef void __stdcall dbgShaderBinary (cgl_native.GLsizei n,  cgl_native.GLuint* shaders, cgl_native.GLenum binaryformat,  cgl_native.GLvoid* binary, cgl_native.GLsizei length)"
 * 
 * cdef void __stdcall dbgShaderSource (GLuint shader, GLsizei count, const GLchar* const* string, const GLint* length) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgShaderSource(shader, count, string, length)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgShaderSource", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":890
 *         gil_dbgShaderSource(shader, count, string, length)
 * 
 * cdef void __stdcall gil_dbgShaderSource (GLuint shader, GLsizei count,  const GLchar* const* string, const GLint* length) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glShaderSource( shader = ", shader, ", count = ", count, ", string**=", repr(hex(<long long> string)), ", length*=", repr(hex(<long long> length)), ", )")
 *     cgl_native.glShaderSource ( shader, count, <const_char_ptr*>string, length)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgShaderSource(GLuint __pyx_v_shader, GLsizei __pyx_v_count, GLchar const *const *__pyx_v_string, GLint const *__pyx_v_length) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  size_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgShaderSource", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":891
 * 
 * cdef void __stdcall gil_dbgShaderSource (GLuint shader, GLsizei count,  const GLchar* const* string, const GLint* length) with gil:
 *     gl_debug_print("GL glShaderSource( shader = ", shader, ", count = ", count, ", string**=", repr(hex(<long long> string)), ", length*=", repr(hex(<long long> length)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glShaderSource ( shader, count, <const_char_ptr*>string, length)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 891, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_shader); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 891, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLsizei(__pyx_v_count); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 891, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_string)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 891, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyNumber_Hex(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 891, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyObject_Repr(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 891, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_length)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 891, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyNumber_Hex(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 891, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyObject_Repr(__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 891, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_9 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_9 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[10] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glShaderSource_shader, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_count, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_string, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_length, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_9, (10-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 891, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":892
 * cdef void __stdcall gil_dbgShaderSource (GLuint shader, GLsizei count,  const GLchar* const* string, const GLint* length) with gil:
 *     gl_debug_print("GL glShaderSource( shader = ", shader, ", count = ", count, ", string**=", repr(hex(<long long> string)), ", length*=", repr(hex(<long long> length)), ", )")
 *     cgl_native.glShaderSource ( shader, count, <const_char_ptr*>string, length)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glShaderSource(__pyx_v_shader, __pyx_v_count, ((const char* *)__pyx_v_string), __pyx_v_length); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 892, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":893
 *     gl_debug_print("GL glShaderSource( shader = ", shader, ", count = ", count, ", string**=", repr(hex(<long long> string)), ", length*=", repr(hex(<long long> length)), ", )")
 *     cgl_native.glShaderSource ( shader, count, <const_char_ptr*>string, length)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgStencilFunc (GLenum func, GLint ref, GLuint mask) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 893, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_9 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_9 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_9, (1-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 893, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":890
 *         gil_dbgShaderSource(shader, count, string, length)
 * 
 * cdef void __stdcall gil_dbgShaderSource (GLuint shader, GLsizei count,  const GLchar* const* string, const GLint* length) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glShaderSource( shader = ", shader, ", count = ", count, ", string**=", repr(hex(<long long> string)), ", length*=", repr(hex(<long long> length)), ", )")
 *     cgl_native.glShaderSource ( shader, count, <const_char_ptr*>string, length)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgShaderSource", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":895
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgStencilFunc (GLenum func, GLint ref, GLuint mask) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgStencilFunc(func, ref, mask)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgStencilFunc(GLenum __pyx_v_func, GLint __pyx_v_ref, GLuint __pyx_v_mask) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":896
 * 
 * cdef void __stdcall dbgStencilFunc (GLenum func, GLint ref, GLuint mask) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgStencilFunc(func, ref, mask)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":897
 * cdef void __stdcall dbgStencilFunc (GLenum func, GLint ref, GLuint mask) nogil:
 *     with gil:
 *         gil_dbgStencilFunc(func, ref, mask)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgStencilFunc (GLenum func, GLint ref, GLuint mask) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgStencilFunc(__pyx_v_func, __pyx_v_ref, __pyx_v_mask); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 897, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":896
 * 
 * cdef void __stdcall dbgStencilFunc (GLenum func, GLint ref, GLuint mask) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgStencilFunc(func, ref, mask)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":895
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgStencilFunc (GLenum func, GLint ref, GLuint mask) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgStencilFunc(func, ref, mask)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgStencilFunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":899
 *         gil_dbgStencilFunc(func, ref, mask)
 * 
 * cdef void __stdcall gil_dbgStencilFunc (GLenum func, GLint ref, GLuint mask) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glStencilFunc( func = ", func, ", ref = ", ref, ", mask = ", mask, ", )")
 *     cgl_native.glStencilFunc ( func, ref, mask)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgStencilFunc(GLenum __pyx_v_func, GLint __pyx_v_ref, GLuint __pyx_v_mask) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgStencilFunc", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":900
 * 
 * cdef void __stdcall gil_dbgStencilFunc (GLenum func, GLint ref, GLuint mask) with gil:
 *     gl_debug_print("GL glStencilFunc( func = ", func, ", ref = ", ref, ", mask = ", mask, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glStencilFunc ( func, ref, mask)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 900, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_func); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 900, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLint(__pyx_v_ref); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 900, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_GLuint(__pyx_v_mask); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 900, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[8] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glStencilFunc_func, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_ref, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_mask, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_7, (8-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 900, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":901
 * cdef void __stdcall gil_dbgStencilFunc (GLenum func, GLint ref, GLuint mask) with gil:
 *     gl_debug_print("GL glStencilFunc( func = ", func, ", ref = ", ref, ", mask = ", mask, ", )")
 *     cgl_native.glStencilFunc ( func, ref, mask)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glStencilFunc(__pyx_v_func, __pyx_v_ref, __pyx_v_mask); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 901, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":902
 *     gl_debug_print("GL glStencilFunc( func = ", func, ", ref = ", ref, ", mask = ", mask, ", )")
 *     cgl_native.glStencilFunc ( func, ref, mask)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 902, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 902, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":899
 *         gil_dbgStencilFunc(func, ref, mask)
 * 
 * cdef void __stdcall gil_dbgStencilFunc (GLenum func, GLint ref, GLuint mask) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glStencilFunc( func = ", func, ", ref = ", ref, ", mask = ", mask, ", )")
 *     cgl_native.glStencilFunc ( func, ref, mask)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgStencilFunc", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":904
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgStencilFuncSeparate(face, func, ref, mask)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgStencilFuncSeparate(GLenum __pyx_v_face, GLenum __pyx_v_func, GLint __pyx_v_ref, GLuint __pyx_v_mask) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":905
 * 
 * cdef void __stdcall dbgStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgStencilFuncSeparate(face, func, ref, mask)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":906
 * cdef void __stdcall dbgStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask) nogil:
 *     with gil:
 *         gil_dbgStencilFuncSeparate(face, func, ref, mask)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgStencilFuncSeparate(__pyx_v_face, __pyx_v_func, __pyx_v_ref, __pyx_v_mask); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 906, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":905
 * 
 * cdef void __stdcall dbgStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgStencilFuncSeparate(face, func, ref, mask)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":904
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgStencilFuncSeparate(face, func, ref, mask)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgStencilFuncSeparate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":908
 *         gil_dbgStencilFuncSeparate(face, func, ref, mask)
 * 
 * cdef void __stdcall gil_dbgStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glStencilFuncSeparate( face = ", face, ", func = ", func, ", ref = ", ref, ", mask = ", mask, ", )")
 *     cgl_native.glStencilFuncSeparate ( face, func, ref, mask)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgStencilFuncSeparate(GLenum __pyx_v_face, GLenum __pyx_v_func, GLint __pyx_v_ref, GLuint __pyx_v_mask) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgStencilFuncSeparate", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":909
 * 
 * cdef void __stdcall gil_dbgStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask) with gil:
 *     gl_debug_print("GL glStencilFuncSeparate( face = ", face, ", func = ", func, ", ref = ", ref, ", mask = ", mask, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glStencilFuncSeparate ( face, func, ref, mask)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 909, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_face); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 909, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLenum(__pyx_v_func); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 909, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_GLint(__pyx_v_ref); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 909, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyLong_From_GLuint(__pyx_v_mask); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 909, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[10] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glStencilFuncSeparate_face, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_func, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_ref, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_mask, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (10-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 909, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":910
 * cdef void __stdcall gil_dbgStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask) with gil:
 *     gl_debug_print("GL glStencilFuncSeparate( face = ", face, ", func = ", func, ", ref = ", ref, ", mask = ", mask, ", )")
 *     cgl_native.glStencilFuncSeparate ( face, func, ref, mask)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glStencilFuncSeparate(__pyx_v_face, __pyx_v_func, __pyx_v_ref, __pyx_v_mask); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 910, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":911
 *     gl_debug_print("GL glStencilFuncSeparate( face = ", face, ", func = ", func, ", ref = ", ref, ", mask = ", mask, ", )")
 *     cgl_native.glStencilFuncSeparate ( face, func, ref, mask)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgStencilMask (GLuint mask) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 911, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 911, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":908
 *         gil_dbgStencilFuncSeparate(face, func, ref, mask)
 * 
 * cdef void __stdcall gil_dbgStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glStencilFuncSeparate( face = ", face, ", func = ", func, ", ref = ", ref, ", mask = ", mask, ", )")
 *     cgl_native.glStencilFuncSeparate ( face, func, ref, mask)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgStencilFuncSeparate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":913
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgStencilMask (GLuint mask) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgStencilMask(mask)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgStencilMask(GLuint __pyx_v_mask) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":914
 * 
 * cdef void __stdcall dbgStencilMask (GLuint mask) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgStencilMask(mask)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":915
 * cdef void __stdcall dbgStencilMask (GLuint mask) nogil:
 *     with gil:
 *         gil_dbgStencilMask(mask)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgStencilMask (GLuint mask) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgStencilMask(__pyx_v_mask); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 915, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":914
 * 
 * cdef void __stdcall dbgStencilMask (GLuint mask) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgStencilMask(mask)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":913
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgStencilMask (GLuint mask) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgStencilMask(mask)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgStencilMask", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":917
 *         gil_dbgStencilMask(mask)
 * 
 * cdef void __stdcall gil_dbgStencilMask (GLuint mask) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glStencilMask( mask = ", mask, ", )")
 *     cgl_native.glStencilMask ( mask)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgStencilMask(GLuint __pyx_v_mask) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgStencilMask", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":918
 * 
 * cdef void __stdcall gil_dbgStencilMask (GLuint mask) with gil:
 *     gl_debug_print("GL glStencilMask( mask = ", mask, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glStencilMask ( mask)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 918, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_mask); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 918, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glStencilMask_mask, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 918, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":919
 * cdef void __stdcall gil_dbgStencilMask (GLuint mask) with gil:
 *     gl_debug_print("GL glStencilMask( mask = ", mask, ", )")
 *     cgl_native.glStencilMask ( mask)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glStencilMask(__pyx_v_mask); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 919, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":920
 *     gl_debug_print("GL glStencilMask( mask = ", mask, ", )")
 *     cgl_native.glStencilMask ( mask)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgStencilMaskSeparate (GLenum face, GLuint mask) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 920, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 920, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":917
 *         gil_dbgStencilMask(mask)
 * 
 * cdef void __stdcall gil_dbgStencilMask (GLuint mask) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glStencilMask( mask = ", mask, ", )")
 *     cgl_native.glStencilMask ( mask)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgStencilMask", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":922
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgStencilMaskSeparate (GLenum face, GLuint mask) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgStencilMaskSeparate(face, mask)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgStencilMaskSeparate(GLenum __pyx_v_face, GLuint __pyx_v_mask) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":923
 * 
 * cdef void __stdcall dbgStencilMaskSeparate (GLenum face, GLuint mask) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgStencilMaskSeparate(face, mask)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":924
 * cdef void __stdcall dbgStencilMaskSeparate (GLenum face, GLuint mask) nogil:
 *     with gil:
 *         gil_dbgStencilMaskSeparate(face, mask)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgStencilMaskSeparate (GLenum face, GLuint mask) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgStencilMaskSeparate(__pyx_v_face, __pyx_v_mask); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 924, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":923
 * 
 * cdef void __stdcall dbgStencilMaskSeparate (GLenum face, GLuint mask) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgStencilMaskSeparate(face, mask)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":922
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgStencilMaskSeparate (GLenum face, GLuint mask) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgStencilMaskSeparate(face, mask)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgStencilMaskSeparate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":926
 *         gil_dbgStencilMaskSeparate(face, mask)
 * 
 * cdef void __stdcall gil_dbgStencilMaskSeparate (GLenum face, GLuint mask) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glStencilMaskSeparate( face = ", face, ", mask = ", mask, ", )")
 *     cgl_native.glStencilMaskSeparate ( face, mask)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgStencilMaskSeparate(GLenum __pyx_v_face, GLuint __pyx_v_mask) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgStencilMaskSeparate", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":927
 * 
 * cdef void __stdcall gil_dbgStencilMaskSeparate (GLenum face, GLuint mask) with gil:
 *     gl_debug_print("GL glStencilMaskSeparate( face = ", face, ", mask = ", mask, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glStencilMaskSeparate ( face, mask)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 927, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_face); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 927, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLuint(__pyx_v_mask); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 927, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[6] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glStencilMaskSeparate_face, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_mask, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_6, (6-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 927, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":928
 * cdef void __stdcall gil_dbgStencilMaskSeparate (GLenum face, GLuint mask) with gil:
 *     gl_debug_print("GL glStencilMaskSeparate( face = ", face, ", mask = ", mask, ", )")
 *     cgl_native.glStencilMaskSeparate ( face, mask)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glStencilMaskSeparate(__pyx_v_face, __pyx_v_mask); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 928, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":929
 *     gl_debug_print("GL glStencilMaskSeparate( face = ", face, ", mask = ", mask, ", )")
 *     cgl_native.glStencilMaskSeparate ( face, mask)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgStencilOp (GLenum fail, GLenum zfail, GLenum zpass) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 929, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 929, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":926
 *         gil_dbgStencilMaskSeparate(face, mask)
 * 
 * cdef void __stdcall gil_dbgStencilMaskSeparate (GLenum face, GLuint mask) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glStencilMaskSeparate( face = ", face, ", mask = ", mask, ", )")
 *     cgl_native.glStencilMaskSeparate ( face, mask)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgStencilMaskSeparate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":931
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgStencilOp (GLenum fail, GLenum zfail, GLenum zpass) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgStencilOp(fail, zfail, zpass)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgStencilOp(GLenum __pyx_v_fail, GLenum __pyx_v_zfail, GLenum __pyx_v_zpass) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":932
 * 
 * cdef void __stdcall dbgStencilOp (GLenum fail, GLenum zfail, GLenum zpass) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgStencilOp(fail, zfail, zpass)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":933
 * cdef void __stdcall dbgStencilOp (GLenum fail, GLenum zfail, GLenum zpass) nogil:
 *     with gil:
 *         gil_dbgStencilOp(fail, zfail, zpass)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgStencilOp (GLenum fail, GLenum zfail, GLenum zpass) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgStencilOp(__pyx_v_fail, __pyx_v_zfail, __pyx_v_zpass); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 933, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":932
 * 
 * cdef void __stdcall dbgStencilOp (GLenum fail, GLenum zfail, GLenum zpass) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgStencilOp(fail, zfail, zpass)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":931
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgStencilOp (GLenum fail, GLenum zfail, GLenum zpass) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgStencilOp(fail, zfail, zpass)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgStencilOp", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":935
 *         gil_dbgStencilOp(fail, zfail, zpass)
 * 
 * cdef void __stdcall gil_dbgStencilOp (GLenum fail, GLenum zfail, GLenum zpass) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glStencilOp( fail = ", fail, ", zfail = ", zfail, ", zpass = ", zpass, ", )")
 *     cgl_native.glStencilOp ( fail, zfail, zpass)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgStencilOp(GLenum __pyx_v_fail, GLenum __pyx_v_zfail, GLenum __pyx_v_zpass) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgStencilOp", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":936
 * 
 * cdef void __stdcall gil_dbgStencilOp (GLenum fail, GLenum zfail, GLenum zpass) with gil:
 *     gl_debug_print("GL glStencilOp( fail = ", fail, ", zfail = ", zfail, ", zpass = ", zpass, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glStencilOp ( fail, zfail, zpass)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 936, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_fail); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 936, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLenum(__pyx_v_zfail); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 936, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_GLenum(__pyx_v_zpass); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 936, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[8] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glStencilOp_fail, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_zfail, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_zpass, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_7, (8-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 936, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":937
 * cdef void __stdcall gil_dbgStencilOp (GLenum fail, GLenum zfail, GLenum zpass) with gil:
 *     gl_debug_print("GL glStencilOp( fail = ", fail, ", zfail = ", zfail, ", zpass = ", zpass, ", )")
 *     cgl_native.glStencilOp ( fail, zfail, zpass)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glStencilOp(__pyx_v_fail, __pyx_v_zfail, __pyx_v_zpass); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 937, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":938
 *     gl_debug_print("GL glStencilOp( fail = ", fail, ", zfail = ", zfail, ", zpass = ", zpass, ", )")
 *     cgl_native.glStencilOp ( fail, zfail, zpass)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgStencilOpSeparate (GLenum face, GLenum fail, GLenum zfail, GLenum zpass) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 938, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 938, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":935
 *         gil_dbgStencilOp(fail, zfail, zpass)
 * 
 * cdef void __stdcall gil_dbgStencilOp (GLenum fail, GLenum zfail, GLenum zpass) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glStencilOp( fail = ", fail, ", zfail = ", zfail, ", zpass = ", zpass, ", )")
 *     cgl_native.glStencilOp ( fail, zfail, zpass)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgStencilOp", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":940
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgStencilOpSeparate (GLenum face, GLenum fail, GLenum zfail, GLenum zpass) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgStencilOpSeparate(face, fail, zfail, zpass)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgStencilOpSeparate(GLenum __pyx_v_face, GLenum __pyx_v_fail, GLenum __pyx_v_zfail, GLenum __pyx_v_zpass) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":941
 * 
 * cdef void __stdcall dbgStencilOpSeparate (GLenum face, GLenum fail, GLenum zfail, GLenum zpass) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgStencilOpSeparate(face, fail, zfail, zpass)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":942
 * cdef void __stdcall dbgStencilOpSeparate (GLenum face, GLenum fail, GLenum zfail, GLenum zpass) nogil:
 *     with gil:
 *         gil_dbgStencilOpSeparate(face, fail, zfail, zpass)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgStencilOpSeparate (GLenum face, GLenum fail, GLenum zfail, GLenum zpass) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgStencilOpSeparate(__pyx_v_face, __pyx_v_fail, __pyx_v_zfail, __pyx_v_zpass); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 942, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":941
 * 
 * cdef void __stdcall dbgStencilOpSeparate (GLenum face, GLenum fail, GLenum zfail, GLenum zpass) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgStencilOpSeparate(face, fail, zfail, zpass)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":940
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgStencilOpSeparate (GLenum face, GLenum fail, GLenum zfail, GLenum zpass) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgStencilOpSeparate(face, fail, zfail, zpass)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgStencilOpSeparate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":944
 *         gil_dbgStencilOpSeparate(face, fail, zfail, zpass)
 * 
 * cdef void __stdcall gil_dbgStencilOpSeparate (GLenum face, GLenum fail, GLenum zfail, GLenum zpass) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glStencilOpSeparate( face = ", face, ", fail = ", fail, ", zfail = ", zfail, ", zpass = ", zpass, ", )")
 *     cgl_native.glStencilOpSeparate ( face, fail, zfail, zpass)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgStencilOpSeparate(GLenum __pyx_v_face, GLenum __pyx_v_fail, GLenum __pyx_v_zfail, GLenum __pyx_v_zpass) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgStencilOpSeparate", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":945
 * 
 * cdef void __stdcall gil_dbgStencilOpSeparate (GLenum face, GLenum fail, GLenum zfail, GLenum zpass) with gil:
 *     gl_debug_print("GL glStencilOpSeparate( face = ", face, ", fail = ", fail, ", zfail = ", zfail, ", zpass = ", zpass, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glStencilOpSeparate ( face, fail, zfail, zpass)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 945, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_face); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 945, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLenum(__pyx_v_fail); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 945, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_GLenum(__pyx_v_zfail); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 945, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyLong_From_GLenum(__pyx_v_zpass); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 945, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[10] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glStencilOpSeparate_face, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_fail, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_zfail, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_zpass, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (10-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 945, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":946
 * cdef void __stdcall gil_dbgStencilOpSeparate (GLenum face, GLenum fail, GLenum zfail, GLenum zpass) with gil:
 *     gl_debug_print("GL glStencilOpSeparate( face = ", face, ", fail = ", fail, ", zfail = ", zfail, ", zpass = ", zpass, ", )")
 *     cgl_native.glStencilOpSeparate ( face, fail, zfail, zpass)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glStencilOpSeparate(__pyx_v_face, __pyx_v_fail, __pyx_v_zfail, __pyx_v_zpass); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 946, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":947
 *     gl_debug_print("GL glStencilOpSeparate( face = ", face, ", fail = ", fail, ", zfail = ", zfail, ", zpass = ", zpass, ", )")
 *     cgl_native.glStencilOpSeparate ( face, fail, zfail, zpass)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid* pixels) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 947, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 947, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":944
 *         gil_dbgStencilOpSeparate(face, fail, zfail, zpass)
 * 
 * cdef void __stdcall gil_dbgStencilOpSeparate (GLenum face, GLenum fail, GLenum zfail, GLenum zpass) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glStencilOpSeparate( face = ", face, ", fail = ", fail, ", zfail = ", zfail, ", zpass = ", zpass, ", )")
 *     cgl_native.glStencilOpSeparate ( face, fail, zfail, zpass)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgStencilOpSeparate", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":949
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid* pixels) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgTexImage2D(target, level, internalformat, width, height, border, format, type,   pixels)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgTexImage2D(GLenum __pyx_v_target, GLint __pyx_v_level, GLint __pyx_v_internalformat, GLsizei __pyx_v_width, GLsizei __pyx_v_height, GLint __pyx_v_border, GLenum __pyx_v_format, GLenum __pyx_v_type, GLvoid const *__pyx_v_pixels) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":950
 * 
 * cdef void __stdcall dbgTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid* pixels) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgTexImage2D(target, level, internalformat, width, height, border, format, type,   pixels)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":951
 * cdef void __stdcall dbgTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid* pixels) nogil:
 *     with gil:
 *         gil_dbgTexImage2D(target, level, internalformat, width, height, border, format, type,   pixels)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid* pixels) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgTexImage2D(__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); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 951, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":950
 * 
 * cdef void __stdcall dbgTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid* pixels) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgTexImage2D(target, level, internalformat, width, height, border, format, type,   pixels)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":949
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid* pixels) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgTexImage2D(target, level, internalformat, width, height, border, format, type,   pixels)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgTexImage2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":953
 *         gil_dbgTexImage2D(target, level, internalformat, width, height, border, format, type,   pixels)
 * 
 * cdef void __stdcall gil_dbgTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid* pixels) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glTexImage2D( target = ", target, ", level = ", level, ", internalformat = ", internalformat, ", width = ", width, ", height = ", height, ", border = ", border, ", format = ", format, ", type = ", type, ", pixels*=", repr(hex(<long long> pixels)), ", )")
 *     cgl_native.glTexImage2D ( target, level, internalformat, width, height, border, format, type, pixels)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgTexImage2D(GLenum __pyx_v_target, GLint __pyx_v_level, GLint __pyx_v_internalformat, GLsizei __pyx_v_width, GLsizei __pyx_v_height, GLint __pyx_v_border, GLenum __pyx_v_format, GLenum __pyx_v_type, GLvoid const *__pyx_v_pixels) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  size_t __pyx_t_14;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgTexImage2D", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":954
 * 
 * cdef void __stdcall gil_dbgTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid* pixels) with gil:
 *     gl_debug_print("GL glTexImage2D( target = ", target, ", level = ", level, ", internalformat = ", internalformat, ", width = ", width, ", height = ", height, ", border = ", border, ", format = ", format, ", type = ", type, ", pixels*=", repr(hex(<long long> pixels)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glTexImage2D ( target, level, internalformat, width, height, border, format, type, pixels)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 954, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_target); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 954, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLint(__pyx_v_level); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 954, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_GLint(__pyx_v_internalformat); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 954, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyLong_From_GLsizei(__pyx_v_width); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 954, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyLong_From_GLsizei(__pyx_v_height); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 954, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = __Pyx_PyLong_From_GLint(__pyx_v_border); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 954, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_10 = __Pyx_PyLong_From_GLenum(__pyx_v_format); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 954, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __pyx_t_11 = __Pyx_PyLong_From_GLenum(__pyx_v_type); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 954, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  __pyx_t_12 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_pixels)); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 954, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  __pyx_t_13 = __Pyx_PyNumber_Hex(__pyx_t_12); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 954, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
  __pyx_t_12 = PyObject_Repr(__pyx_t_13); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 954, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  __pyx_t_14 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_14 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[20] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glTexImage2D_target, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_level, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_internalformat, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_width, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u_height, __pyx_t_8, __pyx_mstate_global->__pyx_kp_u_border, __pyx_t_9, __pyx_mstate_global->__pyx_kp_u_format, __pyx_t_10, __pyx_mstate_global->__pyx_kp_u_type, __pyx_t_11, __pyx_mstate_global->__pyx_kp_u_pixels, __pyx_t_12, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_14, (20-__pyx_t_14) | (__pyx_t_14*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 954, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":955
 * cdef void __stdcall gil_dbgTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid* pixels) with gil:
 *     gl_debug_print("GL glTexImage2D( target = ", target, ", level = ", level, ", internalformat = ", internalformat, ", width = ", width, ", height = ", height, ", border = ", border, ", format = ", format, ", type = ", type, ", pixels*=", repr(hex(<long long> pixels)), ", )")
 *     cgl_native.glTexImage2D ( target, level, internalformat, width, height, border, format, type, pixels)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->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); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 955, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":956
 *     gl_debug_print("GL glTexImage2D( target = ", target, ", level = ", level, ", internalformat = ", internalformat, ", width = ", width, ", height = ", height, ", border = ", border, ", format = ", format, ", type = ", type, ", pixels*=", repr(hex(<long long> pixels)), ", )")
 *     cgl_native.glTexImage2D ( target, level, internalformat, width, height, border, format, type, pixels)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgTexParameterf (GLenum target, GLenum pname, GLfloat param) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_12, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 956, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  __pyx_t_14 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_12))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_12);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_12);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_12, __pyx__function);
    __pyx_t_14 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_12, __pyx_callargs+__pyx_t_14, (1-__pyx_t_14) | (__pyx_t_14*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 956, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":953
 *         gil_dbgTexImage2D(target, level, internalformat, width, height, border, format, type,   pixels)
 * 
 * cdef void __stdcall gil_dbgTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid* pixels) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glTexImage2D( target = ", target, ", level = ", level, ", internalformat = ", internalformat, ", width = ", width, ", height = ", height, ", border = ", border, ", format = ", format, ", type = ", type, ", pixels*=", repr(hex(<long long> pixels)), ", )")
 *     cgl_native.glTexImage2D ( target, level, internalformat, width, height, border, format, type, pixels)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgTexImage2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":958
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgTexParameterf (GLenum target, GLenum pname, GLfloat param) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgTexParameterf(target, pname, param)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgTexParameterf(GLenum __pyx_v_target, GLenum __pyx_v_pname, GLfloat __pyx_v_param) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":959
 * 
 * cdef void __stdcall dbgTexParameterf (GLenum target, GLenum pname, GLfloat param) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgTexParameterf(target, pname, param)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":960
 * cdef void __stdcall dbgTexParameterf (GLenum target, GLenum pname, GLfloat param) nogil:
 *     with gil:
 *         gil_dbgTexParameterf(target, pname, param)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgTexParameterf (GLenum target, GLenum pname, GLfloat param) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgTexParameterf(__pyx_v_target, __pyx_v_pname, __pyx_v_param); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 960, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":959
 * 
 * cdef void __stdcall dbgTexParameterf (GLenum target, GLenum pname, GLfloat param) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgTexParameterf(target, pname, param)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":958
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgTexParameterf (GLenum target, GLenum pname, GLfloat param) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgTexParameterf(target, pname, param)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgTexParameterf", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":962
 *         gil_dbgTexParameterf(target, pname, param)
 * 
 * cdef void __stdcall gil_dbgTexParameterf (GLenum target, GLenum pname, GLfloat param) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glTexParameterf( target = ", target, ", pname = ", pname, ", param = ", param, ", )")
 *     cgl_native.glTexParameterf ( target, pname, param)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgTexParameterf(GLenum __pyx_v_target, GLenum __pyx_v_pname, GLfloat __pyx_v_param) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgTexParameterf", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":963
 * 
 * cdef void __stdcall gil_dbgTexParameterf (GLenum target, GLenum pname, GLfloat param) with gil:
 *     gl_debug_print("GL glTexParameterf( target = ", target, ", pname = ", pname, ", param = ", param, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glTexParameterf ( target, pname, param)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 963, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_target); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 963, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLenum(__pyx_v_pname); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 963, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyFloat_FromDouble(__pyx_v_param); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 963, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[8] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glTexParameterf_target, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_pname, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_param, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_7, (8-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 963, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":964
 * cdef void __stdcall gil_dbgTexParameterf (GLenum target, GLenum pname, GLfloat param) with gil:
 *     gl_debug_print("GL glTexParameterf( target = ", target, ", pname = ", pname, ", param = ", param, ", )")
 *     cgl_native.glTexParameterf ( target, pname, param)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glTexParameterf(__pyx_v_target, __pyx_v_pname, __pyx_v_param); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 964, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":965
 *     gl_debug_print("GL glTexParameterf( target = ", target, ", pname = ", pname, ", param = ", param, ", )")
 *     cgl_native.glTexParameterf ( target, pname, param)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * # cdef void __stdcall dbgTexParameterfv (GLenum target, GLenum pname,  GLfloat* params) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 965, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 965, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":962
 *         gil_dbgTexParameterf(target, pname, param)
 * 
 * cdef void __stdcall gil_dbgTexParameterf (GLenum target, GLenum pname, GLfloat param) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glTexParameterf( target = ", target, ", pname = ", pname, ", param = ", param, ", )")
 *     cgl_native.glTexParameterf ( target, pname, param)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgTexParameterf", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":977
 * #     if ret: print("OpenGL Error %d / %x" % (ret, ret))
 * #
 * cdef void __stdcall dbgTexParameteri (GLenum target, GLenum pname, GLint param) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgTexParameteri(target, pname, param)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgTexParameteri(GLenum __pyx_v_target, GLenum __pyx_v_pname, GLint __pyx_v_param) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":978
 * #
 * cdef void __stdcall dbgTexParameteri (GLenum target, GLenum pname, GLint param) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgTexParameteri(target, pname, param)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":979
 * cdef void __stdcall dbgTexParameteri (GLenum target, GLenum pname, GLint param) nogil:
 *     with gil:
 *         gil_dbgTexParameteri(target, pname, param)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgTexParameteri (GLenum target, GLenum pname, GLint param) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgTexParameteri(__pyx_v_target, __pyx_v_pname, __pyx_v_param); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 979, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":978
 * #
 * cdef void __stdcall dbgTexParameteri (GLenum target, GLenum pname, GLint param) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgTexParameteri(target, pname, param)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":977
 * #     if ret: print("OpenGL Error %d / %x" % (ret, ret))
 * #
 * cdef void __stdcall dbgTexParameteri (GLenum target, GLenum pname, GLint param) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgTexParameteri(target, pname, param)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgTexParameteri", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":981
 *         gil_dbgTexParameteri(target, pname, param)
 * 
 * cdef void __stdcall gil_dbgTexParameteri (GLenum target, GLenum pname, GLint param) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glTexParameteri( target = ", target, ", pname = ", pname, ", param = ", param, ", )")
 *     cgl_native.glTexParameteri ( target, pname, param)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgTexParameteri(GLenum __pyx_v_target, GLenum __pyx_v_pname, GLint __pyx_v_param) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgTexParameteri", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":982
 * 
 * cdef void __stdcall gil_dbgTexParameteri (GLenum target, GLenum pname, GLint param) with gil:
 *     gl_debug_print("GL glTexParameteri( target = ", target, ", pname = ", pname, ", param = ", param, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glTexParameteri ( target, pname, param)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 982, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_target); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 982, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLenum(__pyx_v_pname); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 982, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_GLint(__pyx_v_param); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 982, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[8] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glTexParameteri_target, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_pname, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_param, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_7, (8-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 982, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":983
 * cdef void __stdcall gil_dbgTexParameteri (GLenum target, GLenum pname, GLint param) with gil:
 *     gl_debug_print("GL glTexParameteri( target = ", target, ", pname = ", pname, ", param = ", param, ", )")
 *     cgl_native.glTexParameteri ( target, pname, param)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glTexParameteri(__pyx_v_target, __pyx_v_pname, __pyx_v_param); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 983, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":984
 *     gl_debug_print("GL glTexParameteri( target = ", target, ", pname = ", pname, ", param = ", param, ", )")
 *     cgl_native.glTexParameteri ( target, pname, param)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * # cdef void __stdcall dbgTexParameteriv (GLenum target, GLenum pname,  GLint* params) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 984, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 984, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":981
 *         gil_dbgTexParameteri(target, pname, param)
 * 
 * cdef void __stdcall gil_dbgTexParameteri (GLenum target, GLenum pname, GLint param) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glTexParameteri( target = ", target, ", pname = ", pname, ", param = ", param, ", )")
 *     cgl_native.glTexParameteri ( target, pname, param)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgTexParameteri", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":996
 * #     if ret: print("OpenGL Error %d / %x" % (ret, ret))
 * #
 * cdef void __stdcall dbgTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid* pixels) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type,   pixels)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgTexSubImage2D(GLenum __pyx_v_target, GLint __pyx_v_level, GLint __pyx_v_xoffset, GLint __pyx_v_yoffset, GLsizei __pyx_v_width, GLsizei __pyx_v_height, GLenum __pyx_v_format, GLenum __pyx_v_type, GLvoid const *__pyx_v_pixels) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":997
 * #
 * cdef void __stdcall dbgTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid* pixels) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type,   pixels)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":998
 * cdef void __stdcall dbgTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid* pixels) nogil:
 *     with gil:
 *         gil_dbgTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type,   pixels)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid* pixels) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgTexSubImage2D(__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); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 998, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":997
 * #
 * cdef void __stdcall dbgTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid* pixels) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type,   pixels)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":996
 * #     if ret: print("OpenGL Error %d / %x" % (ret, ret))
 * #
 * cdef void __stdcall dbgTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid* pixels) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type,   pixels)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgTexSubImage2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1000
 *         gil_dbgTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type,   pixels)
 * 
 * cdef void __stdcall gil_dbgTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid* pixels) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glTexSubImage2D( target = ", target, ", level = ", level, ", xoffset = ", xoffset, ", yoffset = ", yoffset, ", width = ", width, ", height = ", height, ", format = ", format, ", type = ", type, ", pixels*=", repr(hex(<long long> pixels)), ", )")
 *     cgl_native.glTexSubImage2D ( target, level, xoffset, yoffset, width, height, format, type, pixels)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgTexSubImage2D(GLenum __pyx_v_target, GLint __pyx_v_level, GLint __pyx_v_xoffset, GLint __pyx_v_yoffset, GLsizei __pyx_v_width, GLsizei __pyx_v_height, GLenum __pyx_v_format, GLenum __pyx_v_type, GLvoid const *__pyx_v_pixels) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  PyObject *__pyx_t_11 = NULL;
  PyObject *__pyx_t_12 = NULL;
  PyObject *__pyx_t_13 = NULL;
  size_t __pyx_t_14;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgTexSubImage2D", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1001
 * 
 * cdef void __stdcall gil_dbgTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid* pixels) with gil:
 *     gl_debug_print("GL glTexSubImage2D( target = ", target, ", level = ", level, ", xoffset = ", xoffset, ", yoffset = ", yoffset, ", width = ", width, ", height = ", height, ", format = ", format, ", type = ", type, ", pixels*=", repr(hex(<long long> pixels)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glTexSubImage2D ( target, level, xoffset, yoffset, width, height, format, type, pixels)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1001, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLenum(__pyx_v_target); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1001, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLint(__pyx_v_level); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1001, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_GLint(__pyx_v_xoffset); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1001, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyLong_From_GLint(__pyx_v_yoffset); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1001, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyLong_From_GLsizei(__pyx_v_width); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1001, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = __Pyx_PyLong_From_GLsizei(__pyx_v_height); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1001, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_10 = __Pyx_PyLong_From_GLenum(__pyx_v_format); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1001, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __pyx_t_11 = __Pyx_PyLong_From_GLenum(__pyx_v_type); if (unlikely(!__pyx_t_11)) __PYX_ERR(0, 1001, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_11);
  __pyx_t_12 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_pixels)); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1001, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  __pyx_t_13 = __Pyx_PyNumber_Hex(__pyx_t_12); if (unlikely(!__pyx_t_13)) __PYX_ERR(0, 1001, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_13);
  __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
  __pyx_t_12 = PyObject_Repr(__pyx_t_13); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1001, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0;
  __pyx_t_14 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_14 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[20] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glTexSubImage2D_target, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_level, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_xoffset, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_yoffset, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u_width, __pyx_t_8, __pyx_mstate_global->__pyx_kp_u_height, __pyx_t_9, __pyx_mstate_global->__pyx_kp_u_format, __pyx_t_10, __pyx_mstate_global->__pyx_kp_u_type, __pyx_t_11, __pyx_mstate_global->__pyx_kp_u_pixels, __pyx_t_12, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_14, (20-__pyx_t_14) | (__pyx_t_14*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
    __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0;
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1001, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1002
 * cdef void __stdcall gil_dbgTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid* pixels) with gil:
 *     gl_debug_print("GL glTexSubImage2D( target = ", target, ", level = ", level, ", xoffset = ", xoffset, ", yoffset = ", yoffset, ", width = ", width, ", height = ", height, ", format = ", format, ", type = ", type, ", pixels*=", repr(hex(<long long> pixels)), ", )")
 *     cgl_native.glTexSubImage2D ( target, level, xoffset, yoffset, width, height, format, type, pixels)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->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); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1002, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1003
 *     gl_debug_print("GL glTexSubImage2D( target = ", target, ", level = ", level, ", xoffset = ", xoffset, ", yoffset = ", yoffset, ", width = ", width, ", height = ", height, ", format = ", format, ", type = ", type, ", pixels*=", repr(hex(<long long> pixels)), ", )")
 *     cgl_native.glTexSubImage2D ( target, level, xoffset, yoffset, width, height, format, type, pixels)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgUniform1f (GLint location, GLfloat x) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_12, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_12)) __PYX_ERR(0, 1003, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_12);
  __pyx_t_14 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_12))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_12);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_12);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_12, __pyx__function);
    __pyx_t_14 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_12, __pyx_callargs+__pyx_t_14, (1-__pyx_t_14) | (__pyx_t_14*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1003, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1000
 *         gil_dbgTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type,   pixels)
 * 
 * cdef void __stdcall gil_dbgTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid* pixels) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glTexSubImage2D( target = ", target, ", level = ", level, ", xoffset = ", xoffset, ", yoffset = ", yoffset, ", width = ", width, ", height = ", height, ", format = ", format, ", type = ", type, ", pixels*=", repr(hex(<long long> pixels)), ", )")
 *     cgl_native.glTexSubImage2D ( target, level, xoffset, yoffset, width, height, format, type, pixels)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_XDECREF(__pyx_t_11);
  __Pyx_XDECREF(__pyx_t_12);
  __Pyx_XDECREF(__pyx_t_13);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgTexSubImage2D", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1005
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgUniform1f (GLint location, GLfloat x) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgUniform1f(location, x)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform1f(GLint __pyx_v_location, GLfloat __pyx_v_x) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1006
 * 
 * cdef void __stdcall dbgUniform1f (GLint location, GLfloat x) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgUniform1f(location, x)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1007
 * cdef void __stdcall dbgUniform1f (GLint location, GLfloat x) nogil:
 *     with gil:
 *         gil_dbgUniform1f(location, x)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgUniform1f (GLint location, GLfloat x) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform1f(__pyx_v_location, __pyx_v_x); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1007, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1006
 * 
 * cdef void __stdcall dbgUniform1f (GLint location, GLfloat x) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgUniform1f(location, x)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1005
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgUniform1f (GLint location, GLfloat x) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgUniform1f(location, x)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgUniform1f", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1009
 *         gil_dbgUniform1f(location, x)
 * 
 * cdef void __stdcall gil_dbgUniform1f (GLint location, GLfloat x) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glUniform1f( location = ", location, ", x = ", x, ", )")
 *     cgl_native.glUniform1f ( location, x)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform1f(GLint __pyx_v_location, GLfloat __pyx_v_x) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgUniform1f", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1010
 * 
 * cdef void __stdcall gil_dbgUniform1f (GLint location, GLfloat x) with gil:
 *     gl_debug_print("GL glUniform1f( location = ", location, ", x = ", x, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glUniform1f ( location, x)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1010, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLint(__pyx_v_location); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1010, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_x); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1010, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[6] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glUniform1f_location, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_x_2, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_6, (6-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1010, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1011
 * cdef void __stdcall gil_dbgUniform1f (GLint location, GLfloat x) with gil:
 *     gl_debug_print("GL glUniform1f( location = ", location, ", x = ", x, ", )")
 *     cgl_native.glUniform1f ( location, x)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glUniform1f(__pyx_v_location, __pyx_v_x); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1011, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1012
 *     gl_debug_print("GL glUniform1f( location = ", location, ", x = ", x, ", )")
 *     cgl_native.glUniform1f ( location, x)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgUniform1fv (GLint location, GLsizei count, const GLfloat* v) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1012, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1012, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1009
 *         gil_dbgUniform1f(location, x)
 * 
 * cdef void __stdcall gil_dbgUniform1f (GLint location, GLfloat x) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glUniform1f( location = ", location, ", x = ", x, ", )")
 *     cgl_native.glUniform1f ( location, x)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgUniform1f", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1014
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgUniform1fv (GLint location, GLsizei count, const GLfloat* v) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgUniform1fv(location, count,   v)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform1fv(GLint __pyx_v_location, GLsizei __pyx_v_count, GLfloat const *__pyx_v_v) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1015
 * 
 * cdef void __stdcall dbgUniform1fv (GLint location, GLsizei count, const GLfloat* v) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgUniform1fv(location, count,   v)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1016
 * cdef void __stdcall dbgUniform1fv (GLint location, GLsizei count, const GLfloat* v) nogil:
 *     with gil:
 *         gil_dbgUniform1fv(location, count,   v)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgUniform1fv (GLint location, GLsizei count, const GLfloat* v) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform1fv(__pyx_v_location, __pyx_v_count, __pyx_v_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1016, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1015
 * 
 * cdef void __stdcall dbgUniform1fv (GLint location, GLsizei count, const GLfloat* v) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgUniform1fv(location, count,   v)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1014
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgUniform1fv (GLint location, GLsizei count, const GLfloat* v) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgUniform1fv(location, count,   v)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgUniform1fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1018
 *         gil_dbgUniform1fv(location, count,   v)
 * 
 * cdef void __stdcall gil_dbgUniform1fv (GLint location, GLsizei count, const GLfloat* v) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glUniform1fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")
 *     cgl_native.glUniform1fv ( location, count, v)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform1fv(GLint __pyx_v_location, GLsizei __pyx_v_count, GLfloat const *__pyx_v_v) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgUniform1fv", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1019
 * 
 * cdef void __stdcall gil_dbgUniform1fv (GLint location, GLsizei count, const GLfloat* v) with gil:
 *     gl_debug_print("GL glUniform1fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glUniform1fv ( location, count, v)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1019, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLint(__pyx_v_location); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1019, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLsizei(__pyx_v_count); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1019, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_v)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1019, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyNumber_Hex(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1019, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyObject_Repr(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1019, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[8] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glUniform1fv_location, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_count, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_v, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (8-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1019, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1020
 * cdef void __stdcall gil_dbgUniform1fv (GLint location, GLsizei count, const GLfloat* v) with gil:
 *     gl_debug_print("GL glUniform1fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")
 *     cgl_native.glUniform1fv ( location, count, v)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glUniform1fv(__pyx_v_location, __pyx_v_count, __pyx_v_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1020, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1021
 *     gl_debug_print("GL glUniform1fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")
 *     cgl_native.glUniform1fv ( location, count, v)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgUniform1i (GLint location, GLint x) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1021, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1021, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1018
 *         gil_dbgUniform1fv(location, count,   v)
 * 
 * cdef void __stdcall gil_dbgUniform1fv (GLint location, GLsizei count, const GLfloat* v) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glUniform1fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")
 *     cgl_native.glUniform1fv ( location, count, v)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgUniform1fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1023
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgUniform1i (GLint location, GLint x) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgUniform1i(location, x)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform1i(GLint __pyx_v_location, GLint __pyx_v_x) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1024
 * 
 * cdef void __stdcall dbgUniform1i (GLint location, GLint x) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgUniform1i(location, x)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1025
 * cdef void __stdcall dbgUniform1i (GLint location, GLint x) nogil:
 *     with gil:
 *         gil_dbgUniform1i(location, x)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgUniform1i (GLint location, GLint x) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform1i(__pyx_v_location, __pyx_v_x); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1025, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1024
 * 
 * cdef void __stdcall dbgUniform1i (GLint location, GLint x) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgUniform1i(location, x)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1023
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgUniform1i (GLint location, GLint x) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgUniform1i(location, x)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgUniform1i", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1027
 *         gil_dbgUniform1i(location, x)
 * 
 * cdef void __stdcall gil_dbgUniform1i (GLint location, GLint x) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glUniform1i( location = ", location, ", x = ", x, ", )")
 *     cgl_native.glUniform1i ( location, x)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform1i(GLint __pyx_v_location, GLint __pyx_v_x) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgUniform1i", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1028
 * 
 * cdef void __stdcall gil_dbgUniform1i (GLint location, GLint x) with gil:
 *     gl_debug_print("GL glUniform1i( location = ", location, ", x = ", x, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glUniform1i ( location, x)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1028, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLint(__pyx_v_location); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1028, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLint(__pyx_v_x); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1028, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[6] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glUniform1i_location, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_x_2, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_6, (6-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1028, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1029
 * cdef void __stdcall gil_dbgUniform1i (GLint location, GLint x) with gil:
 *     gl_debug_print("GL glUniform1i( location = ", location, ", x = ", x, ", )")
 *     cgl_native.glUniform1i ( location, x)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glUniform1i(__pyx_v_location, __pyx_v_x); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1029, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1030
 *     gl_debug_print("GL glUniform1i( location = ", location, ", x = ", x, ", )")
 *     cgl_native.glUniform1i ( location, x)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgUniform1iv (GLint location, GLsizei count, const GLint* v) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1030, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1030, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1027
 *         gil_dbgUniform1i(location, x)
 * 
 * cdef void __stdcall gil_dbgUniform1i (GLint location, GLint x) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glUniform1i( location = ", location, ", x = ", x, ", )")
 *     cgl_native.glUniform1i ( location, x)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgUniform1i", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1032
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgUniform1iv (GLint location, GLsizei count, const GLint* v) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgUniform1iv(location, count,   v)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform1iv(GLint __pyx_v_location, GLsizei __pyx_v_count, GLint const *__pyx_v_v) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1033
 * 
 * cdef void __stdcall dbgUniform1iv (GLint location, GLsizei count, const GLint* v) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgUniform1iv(location, count,   v)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1034
 * cdef void __stdcall dbgUniform1iv (GLint location, GLsizei count, const GLint* v) nogil:
 *     with gil:
 *         gil_dbgUniform1iv(location, count,   v)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgUniform1iv (GLint location, GLsizei count, const GLint* v) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform1iv(__pyx_v_location, __pyx_v_count, __pyx_v_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1034, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1033
 * 
 * cdef void __stdcall dbgUniform1iv (GLint location, GLsizei count, const GLint* v) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgUniform1iv(location, count,   v)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1032
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgUniform1iv (GLint location, GLsizei count, const GLint* v) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgUniform1iv(location, count,   v)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgUniform1iv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1036
 *         gil_dbgUniform1iv(location, count,   v)
 * 
 * cdef void __stdcall gil_dbgUniform1iv (GLint location, GLsizei count, const GLint* v) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glUniform1iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")
 *     cgl_native.glUniform1iv ( location, count, v)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform1iv(GLint __pyx_v_location, GLsizei __pyx_v_count, GLint const *__pyx_v_v) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgUniform1iv", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1037
 * 
 * cdef void __stdcall gil_dbgUniform1iv (GLint location, GLsizei count, const GLint* v) with gil:
 *     gl_debug_print("GL glUniform1iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glUniform1iv ( location, count, v)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1037, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLint(__pyx_v_location); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1037, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLsizei(__pyx_v_count); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1037, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_v)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1037, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyNumber_Hex(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1037, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyObject_Repr(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1037, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[8] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glUniform1iv_location, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_count, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_v, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (8-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1037, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1038
 * cdef void __stdcall gil_dbgUniform1iv (GLint location, GLsizei count, const GLint* v) with gil:
 *     gl_debug_print("GL glUniform1iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")
 *     cgl_native.glUniform1iv ( location, count, v)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glUniform1iv(__pyx_v_location, __pyx_v_count, __pyx_v_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1038, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1039
 *     gl_debug_print("GL glUniform1iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")
 *     cgl_native.glUniform1iv ( location, count, v)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgUniform2f (GLint location, GLfloat x, GLfloat y) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1039, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1039, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1036
 *         gil_dbgUniform1iv(location, count,   v)
 * 
 * cdef void __stdcall gil_dbgUniform1iv (GLint location, GLsizei count, const GLint* v) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glUniform1iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")
 *     cgl_native.glUniform1iv ( location, count, v)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgUniform1iv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1041
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgUniform2f (GLint location, GLfloat x, GLfloat y) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgUniform2f(location, x, y)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform2f(GLint __pyx_v_location, GLfloat __pyx_v_x, GLfloat __pyx_v_y) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1042
 * 
 * cdef void __stdcall dbgUniform2f (GLint location, GLfloat x, GLfloat y) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgUniform2f(location, x, y)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1043
 * cdef void __stdcall dbgUniform2f (GLint location, GLfloat x, GLfloat y) nogil:
 *     with gil:
 *         gil_dbgUniform2f(location, x, y)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgUniform2f (GLint location, GLfloat x, GLfloat y) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform2f(__pyx_v_location, __pyx_v_x, __pyx_v_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1043, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1042
 * 
 * cdef void __stdcall dbgUniform2f (GLint location, GLfloat x, GLfloat y) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgUniform2f(location, x, y)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1041
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgUniform2f (GLint location, GLfloat x, GLfloat y) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgUniform2f(location, x, y)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgUniform2f", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1045
 *         gil_dbgUniform2f(location, x, y)
 * 
 * cdef void __stdcall gil_dbgUniform2f (GLint location, GLfloat x, GLfloat y) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glUniform2f( location = ", location, ", x = ", x, ", y = ", y, ", )")
 *     cgl_native.glUniform2f ( location, x, y)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform2f(GLint __pyx_v_location, GLfloat __pyx_v_x, GLfloat __pyx_v_y) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgUniform2f", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1046
 * 
 * cdef void __stdcall gil_dbgUniform2f (GLint location, GLfloat x, GLfloat y) with gil:
 *     gl_debug_print("GL glUniform2f( location = ", location, ", x = ", x, ", y = ", y, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glUniform2f ( location, x, y)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1046, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLint(__pyx_v_location); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1046, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_x); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1046, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyFloat_FromDouble(__pyx_v_y); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1046, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[8] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glUniform2f_location, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_x_2, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_y, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_7, (8-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1046, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1047
 * cdef void __stdcall gil_dbgUniform2f (GLint location, GLfloat x, GLfloat y) with gil:
 *     gl_debug_print("GL glUniform2f( location = ", location, ", x = ", x, ", y = ", y, ", )")
 *     cgl_native.glUniform2f ( location, x, y)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glUniform2f(__pyx_v_location, __pyx_v_x, __pyx_v_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1047, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1048
 *     gl_debug_print("GL glUniform2f( location = ", location, ", x = ", x, ", y = ", y, ", )")
 *     cgl_native.glUniform2f ( location, x, y)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgUniform2fv (GLint location, GLsizei count, const GLfloat* v) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1048, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1048, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1045
 *         gil_dbgUniform2f(location, x, y)
 * 
 * cdef void __stdcall gil_dbgUniform2f (GLint location, GLfloat x, GLfloat y) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glUniform2f( location = ", location, ", x = ", x, ", y = ", y, ", )")
 *     cgl_native.glUniform2f ( location, x, y)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgUniform2f", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1050
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgUniform2fv (GLint location, GLsizei count, const GLfloat* v) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgUniform2fv(location, count,   v)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform2fv(GLint __pyx_v_location, GLsizei __pyx_v_count, GLfloat const *__pyx_v_v) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1051
 * 
 * cdef void __stdcall dbgUniform2fv (GLint location, GLsizei count, const GLfloat* v) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgUniform2fv(location, count,   v)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1052
 * cdef void __stdcall dbgUniform2fv (GLint location, GLsizei count, const GLfloat* v) nogil:
 *     with gil:
 *         gil_dbgUniform2fv(location, count,   v)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgUniform2fv (GLint location, GLsizei count, const GLfloat* v) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform2fv(__pyx_v_location, __pyx_v_count, __pyx_v_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1052, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1051
 * 
 * cdef void __stdcall dbgUniform2fv (GLint location, GLsizei count, const GLfloat* v) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgUniform2fv(location, count,   v)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1050
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgUniform2fv (GLint location, GLsizei count, const GLfloat* v) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgUniform2fv(location, count,   v)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgUniform2fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1054
 *         gil_dbgUniform2fv(location, count,   v)
 * 
 * cdef void __stdcall gil_dbgUniform2fv (GLint location, GLsizei count, const GLfloat* v) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glUniform2fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")
 *     cgl_native.glUniform2fv ( location, count, v)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform2fv(GLint __pyx_v_location, GLsizei __pyx_v_count, GLfloat const *__pyx_v_v) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgUniform2fv", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1055
 * 
 * cdef void __stdcall gil_dbgUniform2fv (GLint location, GLsizei count, const GLfloat* v) with gil:
 *     gl_debug_print("GL glUniform2fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glUniform2fv ( location, count, v)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1055, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLint(__pyx_v_location); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1055, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLsizei(__pyx_v_count); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1055, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_v)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1055, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyNumber_Hex(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1055, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyObject_Repr(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1055, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[8] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glUniform2fv_location, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_count, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_v, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (8-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1055, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1056
 * cdef void __stdcall gil_dbgUniform2fv (GLint location, GLsizei count, const GLfloat* v) with gil:
 *     gl_debug_print("GL glUniform2fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")
 *     cgl_native.glUniform2fv ( location, count, v)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glUniform2fv(__pyx_v_location, __pyx_v_count, __pyx_v_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1056, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1057
 *     gl_debug_print("GL glUniform2fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")
 *     cgl_native.glUniform2fv ( location, count, v)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgUniform2i (GLint location, GLint x, GLint y) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1057, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1057, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1054
 *         gil_dbgUniform2fv(location, count,   v)
 * 
 * cdef void __stdcall gil_dbgUniform2fv (GLint location, GLsizei count, const GLfloat* v) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glUniform2fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")
 *     cgl_native.glUniform2fv ( location, count, v)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgUniform2fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1059
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgUniform2i (GLint location, GLint x, GLint y) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgUniform2i(location, x, y)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform2i(GLint __pyx_v_location, GLint __pyx_v_x, GLint __pyx_v_y) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1060
 * 
 * cdef void __stdcall dbgUniform2i (GLint location, GLint x, GLint y) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgUniform2i(location, x, y)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1061
 * cdef void __stdcall dbgUniform2i (GLint location, GLint x, GLint y) nogil:
 *     with gil:
 *         gil_dbgUniform2i(location, x, y)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgUniform2i (GLint location, GLint x, GLint y) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform2i(__pyx_v_location, __pyx_v_x, __pyx_v_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1061, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1060
 * 
 * cdef void __stdcall dbgUniform2i (GLint location, GLint x, GLint y) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgUniform2i(location, x, y)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1059
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgUniform2i (GLint location, GLint x, GLint y) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgUniform2i(location, x, y)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgUniform2i", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1063
 *         gil_dbgUniform2i(location, x, y)
 * 
 * cdef void __stdcall gil_dbgUniform2i (GLint location, GLint x, GLint y) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glUniform2i( location = ", location, ", x = ", x, ", y = ", y, ", )")
 *     cgl_native.glUniform2i ( location, x, y)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform2i(GLint __pyx_v_location, GLint __pyx_v_x, GLint __pyx_v_y) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgUniform2i", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1064
 * 
 * cdef void __stdcall gil_dbgUniform2i (GLint location, GLint x, GLint y) with gil:
 *     gl_debug_print("GL glUniform2i( location = ", location, ", x = ", x, ", y = ", y, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glUniform2i ( location, x, y)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1064, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLint(__pyx_v_location); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1064, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLint(__pyx_v_x); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1064, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_GLint(__pyx_v_y); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1064, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[8] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glUniform2i_location, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_x_2, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_y, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_7, (8-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1064, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1065
 * cdef void __stdcall gil_dbgUniform2i (GLint location, GLint x, GLint y) with gil:
 *     gl_debug_print("GL glUniform2i( location = ", location, ", x = ", x, ", y = ", y, ", )")
 *     cgl_native.glUniform2i ( location, x, y)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glUniform2i(__pyx_v_location, __pyx_v_x, __pyx_v_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1065, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1066
 *     gl_debug_print("GL glUniform2i( location = ", location, ", x = ", x, ", y = ", y, ", )")
 *     cgl_native.glUniform2i ( location, x, y)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgUniform2iv (GLint location, GLsizei count, const GLint* v) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1066, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1066, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1063
 *         gil_dbgUniform2i(location, x, y)
 * 
 * cdef void __stdcall gil_dbgUniform2i (GLint location, GLint x, GLint y) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glUniform2i( location = ", location, ", x = ", x, ", y = ", y, ", )")
 *     cgl_native.glUniform2i ( location, x, y)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgUniform2i", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1068
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgUniform2iv (GLint location, GLsizei count, const GLint* v) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgUniform2iv(location, count,   v)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform2iv(GLint __pyx_v_location, GLsizei __pyx_v_count, GLint const *__pyx_v_v) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1069
 * 
 * cdef void __stdcall dbgUniform2iv (GLint location, GLsizei count, const GLint* v) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgUniform2iv(location, count,   v)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1070
 * cdef void __stdcall dbgUniform2iv (GLint location, GLsizei count, const GLint* v) nogil:
 *     with gil:
 *         gil_dbgUniform2iv(location, count,   v)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgUniform2iv (GLint location, GLsizei count, const GLint* v) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform2iv(__pyx_v_location, __pyx_v_count, __pyx_v_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1070, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1069
 * 
 * cdef void __stdcall dbgUniform2iv (GLint location, GLsizei count, const GLint* v) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgUniform2iv(location, count,   v)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1068
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgUniform2iv (GLint location, GLsizei count, const GLint* v) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgUniform2iv(location, count,   v)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgUniform2iv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1072
 *         gil_dbgUniform2iv(location, count,   v)
 * 
 * cdef void __stdcall gil_dbgUniform2iv (GLint location, GLsizei count, const GLint* v) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glUniform2iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")
 *     cgl_native.glUniform2iv ( location, count, v)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform2iv(GLint __pyx_v_location, GLsizei __pyx_v_count, GLint const *__pyx_v_v) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgUniform2iv", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1073
 * 
 * cdef void __stdcall gil_dbgUniform2iv (GLint location, GLsizei count, const GLint* v) with gil:
 *     gl_debug_print("GL glUniform2iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glUniform2iv ( location, count, v)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1073, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLint(__pyx_v_location); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1073, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLsizei(__pyx_v_count); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1073, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_v)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1073, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyNumber_Hex(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1073, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyObject_Repr(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1073, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[8] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glUniform2iv_location, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_count, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_v, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (8-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1073, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1074
 * cdef void __stdcall gil_dbgUniform2iv (GLint location, GLsizei count, const GLint* v) with gil:
 *     gl_debug_print("GL glUniform2iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")
 *     cgl_native.glUniform2iv ( location, count, v)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glUniform2iv(__pyx_v_location, __pyx_v_count, __pyx_v_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1074, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1075
 *     gl_debug_print("GL glUniform2iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")
 *     cgl_native.glUniform2iv ( location, count, v)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgUniform3f (GLint location, GLfloat x, GLfloat y, GLfloat z) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1075, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1075, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1072
 *         gil_dbgUniform2iv(location, count,   v)
 * 
 * cdef void __stdcall gil_dbgUniform2iv (GLint location, GLsizei count, const GLint* v) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glUniform2iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")
 *     cgl_native.glUniform2iv ( location, count, v)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgUniform2iv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1077
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgUniform3f (GLint location, GLfloat x, GLfloat y, GLfloat z) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgUniform3f(location, x, y, z)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform3f(GLint __pyx_v_location, GLfloat __pyx_v_x, GLfloat __pyx_v_y, GLfloat __pyx_v_z) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1078
 * 
 * cdef void __stdcall dbgUniform3f (GLint location, GLfloat x, GLfloat y, GLfloat z) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgUniform3f(location, x, y, z)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1079
 * cdef void __stdcall dbgUniform3f (GLint location, GLfloat x, GLfloat y, GLfloat z) nogil:
 *     with gil:
 *         gil_dbgUniform3f(location, x, y, z)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgUniform3f (GLint location, GLfloat x, GLfloat y, GLfloat z) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform3f(__pyx_v_location, __pyx_v_x, __pyx_v_y, __pyx_v_z); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1079, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1078
 * 
 * cdef void __stdcall dbgUniform3f (GLint location, GLfloat x, GLfloat y, GLfloat z) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgUniform3f(location, x, y, z)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1077
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgUniform3f (GLint location, GLfloat x, GLfloat y, GLfloat z) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgUniform3f(location, x, y, z)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgUniform3f", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1081
 *         gil_dbgUniform3f(location, x, y, z)
 * 
 * cdef void __stdcall gil_dbgUniform3f (GLint location, GLfloat x, GLfloat y, GLfloat z) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glUniform3f( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", )")
 *     cgl_native.glUniform3f ( location, x, y, z)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform3f(GLint __pyx_v_location, GLfloat __pyx_v_x, GLfloat __pyx_v_y, GLfloat __pyx_v_z) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgUniform3f", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1082
 * 
 * cdef void __stdcall gil_dbgUniform3f (GLint location, GLfloat x, GLfloat y, GLfloat z) with gil:
 *     gl_debug_print("GL glUniform3f( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glUniform3f ( location, x, y, z)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1082, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLint(__pyx_v_location); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1082, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_x); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1082, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyFloat_FromDouble(__pyx_v_y); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1082, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = PyFloat_FromDouble(__pyx_v_z); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1082, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[10] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glUniform3f_location, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_x_2, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_y, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_z, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (10-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1082, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1083
 * cdef void __stdcall gil_dbgUniform3f (GLint location, GLfloat x, GLfloat y, GLfloat z) with gil:
 *     gl_debug_print("GL glUniform3f( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", )")
 *     cgl_native.glUniform3f ( location, x, y, z)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glUniform3f(__pyx_v_location, __pyx_v_x, __pyx_v_y, __pyx_v_z); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1083, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1084
 *     gl_debug_print("GL glUniform3f( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", )")
 *     cgl_native.glUniform3f ( location, x, y, z)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgUniform3fv (GLint location, GLsizei count, const GLfloat* v) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1084, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1084, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1081
 *         gil_dbgUniform3f(location, x, y, z)
 * 
 * cdef void __stdcall gil_dbgUniform3f (GLint location, GLfloat x, GLfloat y, GLfloat z) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glUniform3f( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", )")
 *     cgl_native.glUniform3f ( location, x, y, z)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgUniform3f", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1086
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgUniform3fv (GLint location, GLsizei count, const GLfloat* v) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgUniform3fv(location, count,   v)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform3fv(GLint __pyx_v_location, GLsizei __pyx_v_count, GLfloat const *__pyx_v_v) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1087
 * 
 * cdef void __stdcall dbgUniform3fv (GLint location, GLsizei count, const GLfloat* v) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgUniform3fv(location, count,   v)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1088
 * cdef void __stdcall dbgUniform3fv (GLint location, GLsizei count, const GLfloat* v) nogil:
 *     with gil:
 *         gil_dbgUniform3fv(location, count,   v)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgUniform3fv (GLint location, GLsizei count, const GLfloat* v) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform3fv(__pyx_v_location, __pyx_v_count, __pyx_v_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1088, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1087
 * 
 * cdef void __stdcall dbgUniform3fv (GLint location, GLsizei count, const GLfloat* v) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgUniform3fv(location, count,   v)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1086
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgUniform3fv (GLint location, GLsizei count, const GLfloat* v) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgUniform3fv(location, count,   v)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgUniform3fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1090
 *         gil_dbgUniform3fv(location, count,   v)
 * 
 * cdef void __stdcall gil_dbgUniform3fv (GLint location, GLsizei count, const GLfloat* v) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glUniform3fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")
 *     cgl_native.glUniform3fv ( location, count, v)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform3fv(GLint __pyx_v_location, GLsizei __pyx_v_count, GLfloat const *__pyx_v_v) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgUniform3fv", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1091
 * 
 * cdef void __stdcall gil_dbgUniform3fv (GLint location, GLsizei count, const GLfloat* v) with gil:
 *     gl_debug_print("GL glUniform3fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glUniform3fv ( location, count, v)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1091, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLint(__pyx_v_location); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1091, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLsizei(__pyx_v_count); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1091, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_v)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1091, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyNumber_Hex(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1091, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyObject_Repr(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1091, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[8] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glUniform3fv_location, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_count, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_v, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (8-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1091, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1092
 * cdef void __stdcall gil_dbgUniform3fv (GLint location, GLsizei count, const GLfloat* v) with gil:
 *     gl_debug_print("GL glUniform3fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")
 *     cgl_native.glUniform3fv ( location, count, v)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glUniform3fv(__pyx_v_location, __pyx_v_count, __pyx_v_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1092, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1093
 *     gl_debug_print("GL glUniform3fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")
 *     cgl_native.glUniform3fv ( location, count, v)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgUniform3i (GLint location, GLint x, GLint y, GLint z) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1093, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1093, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1090
 *         gil_dbgUniform3fv(location, count,   v)
 * 
 * cdef void __stdcall gil_dbgUniform3fv (GLint location, GLsizei count, const GLfloat* v) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glUniform3fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")
 *     cgl_native.glUniform3fv ( location, count, v)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgUniform3fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1095
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgUniform3i (GLint location, GLint x, GLint y, GLint z) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgUniform3i(location, x, y, z)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform3i(GLint __pyx_v_location, GLint __pyx_v_x, GLint __pyx_v_y, GLint __pyx_v_z) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1096
 * 
 * cdef void __stdcall dbgUniform3i (GLint location, GLint x, GLint y, GLint z) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgUniform3i(location, x, y, z)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1097
 * cdef void __stdcall dbgUniform3i (GLint location, GLint x, GLint y, GLint z) nogil:
 *     with gil:
 *         gil_dbgUniform3i(location, x, y, z)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgUniform3i (GLint location, GLint x, GLint y, GLint z) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform3i(__pyx_v_location, __pyx_v_x, __pyx_v_y, __pyx_v_z); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1097, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1096
 * 
 * cdef void __stdcall dbgUniform3i (GLint location, GLint x, GLint y, GLint z) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgUniform3i(location, x, y, z)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1095
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgUniform3i (GLint location, GLint x, GLint y, GLint z) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgUniform3i(location, x, y, z)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgUniform3i", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1099
 *         gil_dbgUniform3i(location, x, y, z)
 * 
 * cdef void __stdcall gil_dbgUniform3i (GLint location, GLint x, GLint y, GLint z) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glUniform3i( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", )")
 *     cgl_native.glUniform3i ( location, x, y, z)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform3i(GLint __pyx_v_location, GLint __pyx_v_x, GLint __pyx_v_y, GLint __pyx_v_z) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgUniform3i", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1100
 * 
 * cdef void __stdcall gil_dbgUniform3i (GLint location, GLint x, GLint y, GLint z) with gil:
 *     gl_debug_print("GL glUniform3i( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glUniform3i ( location, x, y, z)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1100, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLint(__pyx_v_location); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1100, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLint(__pyx_v_x); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1100, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_GLint(__pyx_v_y); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1100, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyLong_From_GLint(__pyx_v_z); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1100, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[10] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glUniform3i_location, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_x_2, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_y, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_z, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (10-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1100, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1101
 * cdef void __stdcall gil_dbgUniform3i (GLint location, GLint x, GLint y, GLint z) with gil:
 *     gl_debug_print("GL glUniform3i( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", )")
 *     cgl_native.glUniform3i ( location, x, y, z)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glUniform3i(__pyx_v_location, __pyx_v_x, __pyx_v_y, __pyx_v_z); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1101, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1102
 *     gl_debug_print("GL glUniform3i( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", )")
 *     cgl_native.glUniform3i ( location, x, y, z)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgUniform3iv (GLint location, GLsizei count, const GLint* v) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1102, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1102, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1099
 *         gil_dbgUniform3i(location, x, y, z)
 * 
 * cdef void __stdcall gil_dbgUniform3i (GLint location, GLint x, GLint y, GLint z) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glUniform3i( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", )")
 *     cgl_native.glUniform3i ( location, x, y, z)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgUniform3i", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1104
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgUniform3iv (GLint location, GLsizei count, const GLint* v) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgUniform3iv(location, count,   v)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform3iv(GLint __pyx_v_location, GLsizei __pyx_v_count, GLint const *__pyx_v_v) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1105
 * 
 * cdef void __stdcall dbgUniform3iv (GLint location, GLsizei count, const GLint* v) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgUniform3iv(location, count,   v)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1106
 * cdef void __stdcall dbgUniform3iv (GLint location, GLsizei count, const GLint* v) nogil:
 *     with gil:
 *         gil_dbgUniform3iv(location, count,   v)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgUniform3iv (GLint location, GLsizei count, const GLint* v) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform3iv(__pyx_v_location, __pyx_v_count, __pyx_v_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1106, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1105
 * 
 * cdef void __stdcall dbgUniform3iv (GLint location, GLsizei count, const GLint* v) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgUniform3iv(location, count,   v)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1104
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgUniform3iv (GLint location, GLsizei count, const GLint* v) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgUniform3iv(location, count,   v)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgUniform3iv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1108
 *         gil_dbgUniform3iv(location, count,   v)
 * 
 * cdef void __stdcall gil_dbgUniform3iv (GLint location, GLsizei count, const GLint* v) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glUniform3iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")
 *     cgl_native.glUniform3iv ( location, count, v)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform3iv(GLint __pyx_v_location, GLsizei __pyx_v_count, GLint const *__pyx_v_v) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgUniform3iv", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1109
 * 
 * cdef void __stdcall gil_dbgUniform3iv (GLint location, GLsizei count, const GLint* v) with gil:
 *     gl_debug_print("GL glUniform3iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glUniform3iv ( location, count, v)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1109, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLint(__pyx_v_location); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1109, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLsizei(__pyx_v_count); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1109, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_v)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1109, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyNumber_Hex(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1109, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyObject_Repr(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1109, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[8] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glUniform3iv_location, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_count, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_v, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (8-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1109, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1110
 * cdef void __stdcall gil_dbgUniform3iv (GLint location, GLsizei count, const GLint* v) with gil:
 *     gl_debug_print("GL glUniform3iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")
 *     cgl_native.glUniform3iv ( location, count, v)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glUniform3iv(__pyx_v_location, __pyx_v_count, __pyx_v_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1110, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1111
 *     gl_debug_print("GL glUniform3iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")
 *     cgl_native.glUniform3iv ( location, count, v)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgUniform4f (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1111, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1111, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1108
 *         gil_dbgUniform3iv(location, count,   v)
 * 
 * cdef void __stdcall gil_dbgUniform3iv (GLint location, GLsizei count, const GLint* v) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glUniform3iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")
 *     cgl_native.glUniform3iv ( location, count, v)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgUniform3iv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1113
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgUniform4f (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgUniform4f(location, x, y, z, w)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform4f(GLint __pyx_v_location, GLfloat __pyx_v_x, GLfloat __pyx_v_y, GLfloat __pyx_v_z, GLfloat __pyx_v_w) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1114
 * 
 * cdef void __stdcall dbgUniform4f (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgUniform4f(location, x, y, z, w)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1115
 * cdef void __stdcall dbgUniform4f (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) nogil:
 *     with gil:
 *         gil_dbgUniform4f(location, x, y, z, w)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgUniform4f (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform4f(__pyx_v_location, __pyx_v_x, __pyx_v_y, __pyx_v_z, __pyx_v_w); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1115, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1114
 * 
 * cdef void __stdcall dbgUniform4f (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgUniform4f(location, x, y, z, w)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1113
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgUniform4f (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgUniform4f(location, x, y, z, w)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgUniform4f", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1117
 *         gil_dbgUniform4f(location, x, y, z, w)
 * 
 * cdef void __stdcall gil_dbgUniform4f (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glUniform4f( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", w = ", w, ", )")
 *     cgl_native.glUniform4f ( location, x, y, z, w)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform4f(GLint __pyx_v_location, GLfloat __pyx_v_x, GLfloat __pyx_v_y, GLfloat __pyx_v_z, GLfloat __pyx_v_w) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  size_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgUniform4f", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1118
 * 
 * cdef void __stdcall gil_dbgUniform4f (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) with gil:
 *     gl_debug_print("GL glUniform4f( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", w = ", w, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glUniform4f ( location, x, y, z, w)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1118, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLint(__pyx_v_location); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1118, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_x); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1118, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyFloat_FromDouble(__pyx_v_y); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1118, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = PyFloat_FromDouble(__pyx_v_z); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1118, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = PyFloat_FromDouble(__pyx_v_w); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1118, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_9 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[12] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glUniform4f_location, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_x_2, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_y, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_z, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u_w, __pyx_t_8, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_9, (12-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1118, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1119
 * cdef void __stdcall gil_dbgUniform4f (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) with gil:
 *     gl_debug_print("GL glUniform4f( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", w = ", w, ", )")
 *     cgl_native.glUniform4f ( location, x, y, z, w)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glUniform4f(__pyx_v_location, __pyx_v_x, __pyx_v_y, __pyx_v_z, __pyx_v_w); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1119, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1120
 *     gl_debug_print("GL glUniform4f( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", w = ", w, ", )")
 *     cgl_native.glUniform4f ( location, x, y, z, w)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgUniform4fv (GLint location, GLsizei count, const GLfloat* v) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1120, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_8))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_8);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_8);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_8, __pyx__function);
    __pyx_t_9 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_8, __pyx_callargs+__pyx_t_9, (1-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1120, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1117
 *         gil_dbgUniform4f(location, x, y, z, w)
 * 
 * cdef void __stdcall gil_dbgUniform4f (GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glUniform4f( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", w = ", w, ", )")
 *     cgl_native.glUniform4f ( location, x, y, z, w)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgUniform4f", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1122
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgUniform4fv (GLint location, GLsizei count, const GLfloat* v) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgUniform4fv(location, count,   v)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform4fv(GLint __pyx_v_location, GLsizei __pyx_v_count, GLfloat const *__pyx_v_v) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1123
 * 
 * cdef void __stdcall dbgUniform4fv (GLint location, GLsizei count, const GLfloat* v) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgUniform4fv(location, count,   v)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1124
 * cdef void __stdcall dbgUniform4fv (GLint location, GLsizei count, const GLfloat* v) nogil:
 *     with gil:
 *         gil_dbgUniform4fv(location, count,   v)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgUniform4fv (GLint location, GLsizei count, const GLfloat* v) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform4fv(__pyx_v_location, __pyx_v_count, __pyx_v_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1124, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1123
 * 
 * cdef void __stdcall dbgUniform4fv (GLint location, GLsizei count, const GLfloat* v) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgUniform4fv(location, count,   v)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1122
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgUniform4fv (GLint location, GLsizei count, const GLfloat* v) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgUniform4fv(location, count,   v)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgUniform4fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1126
 *         gil_dbgUniform4fv(location, count,   v)
 * 
 * cdef void __stdcall gil_dbgUniform4fv (GLint location, GLsizei count, const GLfloat* v) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glUniform4fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")
 *     cgl_native.glUniform4fv ( location, count, v)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform4fv(GLint __pyx_v_location, GLsizei __pyx_v_count, GLfloat const *__pyx_v_v) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgUniform4fv", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1127
 * 
 * cdef void __stdcall gil_dbgUniform4fv (GLint location, GLsizei count, const GLfloat* v) with gil:
 *     gl_debug_print("GL glUniform4fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glUniform4fv ( location, count, v)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1127, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLint(__pyx_v_location); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1127, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLsizei(__pyx_v_count); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1127, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_v)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1127, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyNumber_Hex(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1127, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyObject_Repr(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1127, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[8] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glUniform4fv_location, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_count, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_v, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (8-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1127, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1128
 * cdef void __stdcall gil_dbgUniform4fv (GLint location, GLsizei count, const GLfloat* v) with gil:
 *     gl_debug_print("GL glUniform4fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")
 *     cgl_native.glUniform4fv ( location, count, v)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glUniform4fv(__pyx_v_location, __pyx_v_count, __pyx_v_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1128, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1129
 *     gl_debug_print("GL glUniform4fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")
 *     cgl_native.glUniform4fv ( location, count, v)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgUniform4i (GLint location, GLint x, GLint y, GLint z, GLint w) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1129, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1129, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1126
 *         gil_dbgUniform4fv(location, count,   v)
 * 
 * cdef void __stdcall gil_dbgUniform4fv (GLint location, GLsizei count, const GLfloat* v) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glUniform4fv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")
 *     cgl_native.glUniform4fv ( location, count, v)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgUniform4fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1131
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgUniform4i (GLint location, GLint x, GLint y, GLint z, GLint w) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgUniform4i(location, x, y, z, w)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform4i(GLint __pyx_v_location, GLint __pyx_v_x, GLint __pyx_v_y, GLint __pyx_v_z, GLint __pyx_v_w) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1132
 * 
 * cdef void __stdcall dbgUniform4i (GLint location, GLint x, GLint y, GLint z, GLint w) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgUniform4i(location, x, y, z, w)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1133
 * cdef void __stdcall dbgUniform4i (GLint location, GLint x, GLint y, GLint z, GLint w) nogil:
 *     with gil:
 *         gil_dbgUniform4i(location, x, y, z, w)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgUniform4i (GLint location, GLint x, GLint y, GLint z, GLint w) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform4i(__pyx_v_location, __pyx_v_x, __pyx_v_y, __pyx_v_z, __pyx_v_w); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1133, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1132
 * 
 * cdef void __stdcall dbgUniform4i (GLint location, GLint x, GLint y, GLint z, GLint w) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgUniform4i(location, x, y, z, w)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1131
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgUniform4i (GLint location, GLint x, GLint y, GLint z, GLint w) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgUniform4i(location, x, y, z, w)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgUniform4i", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1135
 *         gil_dbgUniform4i(location, x, y, z, w)
 * 
 * cdef void __stdcall gil_dbgUniform4i (GLint location, GLint x, GLint y, GLint z, GLint w) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glUniform4i( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", w = ", w, ", )")
 *     cgl_native.glUniform4i ( location, x, y, z, w)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform4i(GLint __pyx_v_location, GLint __pyx_v_x, GLint __pyx_v_y, GLint __pyx_v_z, GLint __pyx_v_w) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  size_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgUniform4i", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1136
 * 
 * cdef void __stdcall gil_dbgUniform4i (GLint location, GLint x, GLint y, GLint z, GLint w) with gil:
 *     gl_debug_print("GL glUniform4i( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", w = ", w, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glUniform4i ( location, x, y, z, w)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1136, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLint(__pyx_v_location); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1136, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLint(__pyx_v_x); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1136, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_GLint(__pyx_v_y); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1136, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyLong_From_GLint(__pyx_v_z); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1136, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyLong_From_GLint(__pyx_v_w); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1136, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_9 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[12] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glUniform4i_location, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_x_2, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_y, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_z, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u_w, __pyx_t_8, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_9, (12-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1136, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1137
 * cdef void __stdcall gil_dbgUniform4i (GLint location, GLint x, GLint y, GLint z, GLint w) with gil:
 *     gl_debug_print("GL glUniform4i( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", w = ", w, ", )")
 *     cgl_native.glUniform4i ( location, x, y, z, w)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glUniform4i(__pyx_v_location, __pyx_v_x, __pyx_v_y, __pyx_v_z, __pyx_v_w); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1137, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1138
 *     gl_debug_print("GL glUniform4i( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", w = ", w, ", )")
 *     cgl_native.glUniform4i ( location, x, y, z, w)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgUniform4iv (GLint location, GLsizei count, const GLint* v) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1138, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_8))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_8);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_8);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_8, __pyx__function);
    __pyx_t_9 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_8, __pyx_callargs+__pyx_t_9, (1-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1138, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1135
 *         gil_dbgUniform4i(location, x, y, z, w)
 * 
 * cdef void __stdcall gil_dbgUniform4i (GLint location, GLint x, GLint y, GLint z, GLint w) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glUniform4i( location = ", location, ", x = ", x, ", y = ", y, ", z = ", z, ", w = ", w, ", )")
 *     cgl_native.glUniform4i ( location, x, y, z, w)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgUniform4i", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1140
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgUniform4iv (GLint location, GLsizei count, const GLint* v) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgUniform4iv(location, count,   v)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform4iv(GLint __pyx_v_location, GLsizei __pyx_v_count, GLint const *__pyx_v_v) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1141
 * 
 * cdef void __stdcall dbgUniform4iv (GLint location, GLsizei count, const GLint* v) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgUniform4iv(location, count,   v)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1142
 * cdef void __stdcall dbgUniform4iv (GLint location, GLsizei count, const GLint* v) nogil:
 *     with gil:
 *         gil_dbgUniform4iv(location, count,   v)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgUniform4iv (GLint location, GLsizei count, const GLint* v) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform4iv(__pyx_v_location, __pyx_v_count, __pyx_v_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1142, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1141
 * 
 * cdef void __stdcall dbgUniform4iv (GLint location, GLsizei count, const GLint* v) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgUniform4iv(location, count,   v)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1140
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgUniform4iv (GLint location, GLsizei count, const GLint* v) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgUniform4iv(location, count,   v)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgUniform4iv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1144
 *         gil_dbgUniform4iv(location, count,   v)
 * 
 * cdef void __stdcall gil_dbgUniform4iv (GLint location, GLsizei count, const GLint* v) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glUniform4iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")
 *     cgl_native.glUniform4iv ( location, count, v)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniform4iv(GLint __pyx_v_location, GLsizei __pyx_v_count, GLint const *__pyx_v_v) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgUniform4iv", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1145
 * 
 * cdef void __stdcall gil_dbgUniform4iv (GLint location, GLsizei count, const GLint* v) with gil:
 *     gl_debug_print("GL glUniform4iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glUniform4iv ( location, count, v)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLint(__pyx_v_location); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLsizei(__pyx_v_count); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_v)); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyNumber_Hex(__pyx_t_6); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
  __pyx_t_6 = PyObject_Repr(__pyx_t_7); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[8] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glUniform4iv_location, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_count, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_v, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (8-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1145, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1146
 * cdef void __stdcall gil_dbgUniform4iv (GLint location, GLsizei count, const GLint* v) with gil:
 *     gl_debug_print("GL glUniform4iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")
 *     cgl_native.glUniform4iv ( location, count, v)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glUniform4iv(__pyx_v_location, __pyx_v_count, __pyx_v_v); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1146, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1147
 *     gl_debug_print("GL glUniform4iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")
 *     cgl_native.glUniform4iv ( location, count, v)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * # cdef void __stdcall dbgUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose,  GLfloat* value) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1147, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1147, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1144
 *         gil_dbgUniform4iv(location, count,   v)
 * 
 * cdef void __stdcall gil_dbgUniform4iv (GLint location, GLsizei count, const GLint* v) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glUniform4iv( location = ", location, ", count = ", count, ", v*=", repr(hex(<long long> v)), ", )")
 *     cgl_native.glUniform4iv ( location, count, v)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgUniform4iv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1169
 * #     if ret: print("OpenGL Error %d / %x" % (ret, ret))
 * 
 * cdef void __stdcall dbgUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgUniformMatrix4fv(location, count, transpose,   value)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniformMatrix4fv(GLint __pyx_v_location, GLsizei __pyx_v_count, GLboolean __pyx_v_transpose, GLfloat const *__pyx_v_value) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1170
 * 
 * cdef void __stdcall dbgUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgUniformMatrix4fv(location, count, transpose,   value)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1171
 * cdef void __stdcall dbgUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) nogil:
 *     with gil:
 *         gil_dbgUniformMatrix4fv(location, count, transpose,   value)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniformMatrix4fv(__pyx_v_location, __pyx_v_count, __pyx_v_transpose, __pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1171, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1170
 * 
 * cdef void __stdcall dbgUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgUniformMatrix4fv(location, count, transpose,   value)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1169
 * #     if ret: print("OpenGL Error %d / %x" % (ret, ret))
 * 
 * cdef void __stdcall dbgUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgUniformMatrix4fv(location, count, transpose,   value)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgUniformMatrix4fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1173
 *         gil_dbgUniformMatrix4fv(location, count, transpose,   value)
 * 
 * cdef void __stdcall gil_dbgUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glUniformMatrix4fv( location = ", location, ", count = ", count, ", transpose = ", transpose, ", value*=", repr(hex(<long long> value)), ", )")
 *     cgl_native.glUniformMatrix4fv ( location, count, transpose, value)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUniformMatrix4fv(GLint __pyx_v_location, GLsizei __pyx_v_count, GLboolean __pyx_v_transpose, GLfloat const *__pyx_v_value) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  size_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgUniformMatrix4fv", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1174
 * 
 * cdef void __stdcall gil_dbgUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) with gil:
 *     gl_debug_print("GL glUniformMatrix4fv( location = ", location, ", count = ", count, ", transpose = ", transpose, ", value*=", repr(hex(<long long> value)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glUniformMatrix4fv ( location, count, transpose, value)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1174, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLint(__pyx_v_location); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1174, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLsizei(__pyx_v_count); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1174, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_GLboolean(__pyx_v_transpose); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1174, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_value)); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1174, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyNumber_Hex(__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1174, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
  __pyx_t_7 = PyObject_Repr(__pyx_t_8); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1174, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
  __pyx_t_9 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_9 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[10] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glUniformMatrix4fv_location, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_count, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_transpose, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_value, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_9, (10-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1174, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1175
 * cdef void __stdcall gil_dbgUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) with gil:
 *     gl_debug_print("GL glUniformMatrix4fv( location = ", location, ", count = ", count, ", transpose = ", transpose, ", value*=", repr(hex(<long long> value)), ", )")
 *     cgl_native.glUniformMatrix4fv ( location, count, transpose, value)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glUniformMatrix4fv(__pyx_v_location, __pyx_v_count, __pyx_v_transpose, __pyx_v_value); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1175, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1176
 *     gl_debug_print("GL glUniformMatrix4fv( location = ", location, ", count = ", count, ", transpose = ", transpose, ", value*=", repr(hex(<long long> value)), ", )")
 *     cgl_native.glUniformMatrix4fv ( location, count, transpose, value)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgUseProgram (GLuint program) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1176, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_9 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_9 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_9, (1-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1176, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1173
 *         gil_dbgUniformMatrix4fv(location, count, transpose,   value)
 * 
 * cdef void __stdcall gil_dbgUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat* value) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glUniformMatrix4fv( location = ", location, ", count = ", count, ", transpose = ", transpose, ", value*=", repr(hex(<long long> value)), ", )")
 *     cgl_native.glUniformMatrix4fv ( location, count, transpose, value)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgUniformMatrix4fv", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1178
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgUseProgram (GLuint program) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgUseProgram(program)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUseProgram(GLuint __pyx_v_program) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1179
 * 
 * cdef void __stdcall dbgUseProgram (GLuint program) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgUseProgram(program)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1180
 * cdef void __stdcall dbgUseProgram (GLuint program) nogil:
 *     with gil:
 *         gil_dbgUseProgram(program)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgUseProgram (GLuint program) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUseProgram(__pyx_v_program); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1180, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1179
 * 
 * cdef void __stdcall dbgUseProgram (GLuint program) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgUseProgram(program)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1178
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgUseProgram (GLuint program) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgUseProgram(program)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgUseProgram", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1182
 *         gil_dbgUseProgram(program)
 * 
 * cdef void __stdcall gil_dbgUseProgram (GLuint program) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glUseProgram( program = ", program, ", )")
 *     cgl_native.glUseProgram ( program)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgUseProgram(GLuint __pyx_v_program) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgUseProgram", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1183
 * 
 * cdef void __stdcall gil_dbgUseProgram (GLuint program) with gil:
 *     gl_debug_print("GL glUseProgram( program = ", program, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glUseProgram ( program)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1183, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_program); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1183, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glUseProgram_program, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1183, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1184
 * cdef void __stdcall gil_dbgUseProgram (GLuint program) with gil:
 *     gl_debug_print("GL glUseProgram( program = ", program, ", )")
 *     cgl_native.glUseProgram ( program)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glUseProgram(__pyx_v_program); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1184, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1185
 *     gl_debug_print("GL glUseProgram( program = ", program, ", )")
 *     cgl_native.glUseProgram ( program)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgValidateProgram (GLuint program) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1185, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1185, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1182
 *         gil_dbgUseProgram(program)
 * 
 * cdef void __stdcall gil_dbgUseProgram (GLuint program) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glUseProgram( program = ", program, ", )")
 *     cgl_native.glUseProgram ( program)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgUseProgram", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1187
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgValidateProgram (GLuint program) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgValidateProgram(program)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgValidateProgram(GLuint __pyx_v_program) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1188
 * 
 * cdef void __stdcall dbgValidateProgram (GLuint program) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgValidateProgram(program)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1189
 * cdef void __stdcall dbgValidateProgram (GLuint program) nogil:
 *     with gil:
 *         gil_dbgValidateProgram(program)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgValidateProgram (GLuint program) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgValidateProgram(__pyx_v_program); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1189, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1188
 * 
 * cdef void __stdcall dbgValidateProgram (GLuint program) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgValidateProgram(program)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1187
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgValidateProgram (GLuint program) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgValidateProgram(program)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgValidateProgram", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1191
 *         gil_dbgValidateProgram(program)
 * 
 * cdef void __stdcall gil_dbgValidateProgram (GLuint program) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glValidateProgram( program = ", program, ", )")
 *     cgl_native.glValidateProgram ( program)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgValidateProgram(GLuint __pyx_v_program) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  size_t __pyx_t_5;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgValidateProgram", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1192
 * 
 * cdef void __stdcall gil_dbgValidateProgram (GLuint program) with gil:
 *     gl_debug_print("GL glValidateProgram( program = ", program, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glValidateProgram ( program)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1192, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_program); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1192, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[4] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glValidateProgram_program, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_5, (4-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1192, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1193
 * cdef void __stdcall gil_dbgValidateProgram (GLuint program) with gil:
 *     gl_debug_print("GL glValidateProgram( program = ", program, ", )")
 *     cgl_native.glValidateProgram ( program)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glValidateProgram(__pyx_v_program); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1193, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1194
 *     gl_debug_print("GL glValidateProgram( program = ", program, ", )")
 *     cgl_native.glValidateProgram ( program)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgVertexAttrib1f (GLuint indx, GLfloat x) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_4, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1194, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_4))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_4);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_4);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_4, __pyx__function);
    __pyx_t_5 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_4, __pyx_callargs+__pyx_t_5, (1-__pyx_t_5) | (__pyx_t_5*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1194, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1191
 *         gil_dbgValidateProgram(program)
 * 
 * cdef void __stdcall gil_dbgValidateProgram (GLuint program) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glValidateProgram( program = ", program, ", )")
 *     cgl_native.glValidateProgram ( program)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgValidateProgram", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1196
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgVertexAttrib1f (GLuint indx, GLfloat x) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgVertexAttrib1f(indx, x)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgVertexAttrib1f(GLuint __pyx_v_indx, GLfloat __pyx_v_x) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1197
 * 
 * cdef void __stdcall dbgVertexAttrib1f (GLuint indx, GLfloat x) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgVertexAttrib1f(indx, x)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1198
 * cdef void __stdcall dbgVertexAttrib1f (GLuint indx, GLfloat x) nogil:
 *     with gil:
 *         gil_dbgVertexAttrib1f(indx, x)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgVertexAttrib1f (GLuint indx, GLfloat x) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgVertexAttrib1f(__pyx_v_indx, __pyx_v_x); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1198, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1197
 * 
 * cdef void __stdcall dbgVertexAttrib1f (GLuint indx, GLfloat x) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgVertexAttrib1f(indx, x)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1196
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgVertexAttrib1f (GLuint indx, GLfloat x) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgVertexAttrib1f(indx, x)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgVertexAttrib1f", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1200
 *         gil_dbgVertexAttrib1f(indx, x)
 * 
 * cdef void __stdcall gil_dbgVertexAttrib1f (GLuint indx, GLfloat x) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glVertexAttrib1f( indx = ", indx, ", x = ", x, ", )")
 *     cgl_native.glVertexAttrib1f ( indx, x)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgVertexAttrib1f(GLuint __pyx_v_indx, GLfloat __pyx_v_x) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  size_t __pyx_t_6;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgVertexAttrib1f", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1201
 * 
 * cdef void __stdcall gil_dbgVertexAttrib1f (GLuint indx, GLfloat x) with gil:
 *     gl_debug_print("GL glVertexAttrib1f( indx = ", indx, ", x = ", x, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glVertexAttrib1f ( indx, x)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1201, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_indx); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1201, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_x); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1201, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[6] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glVertexAttrib1f_indx, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_x_2, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_6, (6-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1201, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1202
 * cdef void __stdcall gil_dbgVertexAttrib1f (GLuint indx, GLfloat x) with gil:
 *     gl_debug_print("GL glVertexAttrib1f( indx = ", indx, ", x = ", x, ", )")
 *     cgl_native.glVertexAttrib1f ( indx, x)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glVertexAttrib1f(__pyx_v_indx, __pyx_v_x); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1202, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1203
 *     gl_debug_print("GL glVertexAttrib1f( indx = ", indx, ", x = ", x, ", )")
 *     cgl_native.glVertexAttrib1f ( indx, x)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * # cdef void __stdcall dbgVertexAttrib1fv (GLuint indx,  GLfloat* values) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_5, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1203, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_5))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_5);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_5);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_5, __pyx__function);
    __pyx_t_6 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_5, __pyx_callargs+__pyx_t_6, (1-__pyx_t_6) | (__pyx_t_6*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1203, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1200
 *         gil_dbgVertexAttrib1f(indx, x)
 * 
 * cdef void __stdcall gil_dbgVertexAttrib1f (GLuint indx, GLfloat x) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glVertexAttrib1f( indx = ", indx, ", x = ", x, ", )")
 *     cgl_native.glVertexAttrib1f ( indx, x)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgVertexAttrib1f", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1215
 * #     if ret: print("OpenGL Error %d / %x" % (ret, ret))
 * #
 * cdef void __stdcall dbgVertexAttrib2f (GLuint indx, GLfloat x, GLfloat y) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgVertexAttrib2f(indx, x, y)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgVertexAttrib2f(GLuint __pyx_v_indx, GLfloat __pyx_v_x, GLfloat __pyx_v_y) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1216
 * #
 * cdef void __stdcall dbgVertexAttrib2f (GLuint indx, GLfloat x, GLfloat y) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgVertexAttrib2f(indx, x, y)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1217
 * cdef void __stdcall dbgVertexAttrib2f (GLuint indx, GLfloat x, GLfloat y) nogil:
 *     with gil:
 *         gil_dbgVertexAttrib2f(indx, x, y)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgVertexAttrib2f (GLuint indx, GLfloat x, GLfloat y) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgVertexAttrib2f(__pyx_v_indx, __pyx_v_x, __pyx_v_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1217, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1216
 * #
 * cdef void __stdcall dbgVertexAttrib2f (GLuint indx, GLfloat x, GLfloat y) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgVertexAttrib2f(indx, x, y)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1215
 * #     if ret: print("OpenGL Error %d / %x" % (ret, ret))
 * #
 * cdef void __stdcall dbgVertexAttrib2f (GLuint indx, GLfloat x, GLfloat y) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgVertexAttrib2f(indx, x, y)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgVertexAttrib2f", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1219
 *         gil_dbgVertexAttrib2f(indx, x, y)
 * 
 * cdef void __stdcall gil_dbgVertexAttrib2f (GLuint indx, GLfloat x, GLfloat y) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glVertexAttrib2f( indx = ", indx, ", x = ", x, ", y = ", y, ", )")
 *     cgl_native.glVertexAttrib2f ( indx, x, y)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgVertexAttrib2f(GLuint __pyx_v_indx, GLfloat __pyx_v_x, GLfloat __pyx_v_y) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  size_t __pyx_t_7;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgVertexAttrib2f", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1220
 * 
 * cdef void __stdcall gil_dbgVertexAttrib2f (GLuint indx, GLfloat x, GLfloat y) with gil:
 *     gl_debug_print("GL glVertexAttrib2f( indx = ", indx, ", x = ", x, ", y = ", y, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glVertexAttrib2f ( indx, x, y)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1220, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_indx); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1220, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_x); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1220, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyFloat_FromDouble(__pyx_v_y); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1220, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[8] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glVertexAttrib2f_indx, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_x_2, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_y, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_7, (8-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1220, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1221
 * cdef void __stdcall gil_dbgVertexAttrib2f (GLuint indx, GLfloat x, GLfloat y) with gil:
 *     gl_debug_print("GL glVertexAttrib2f( indx = ", indx, ", x = ", x, ", y = ", y, ", )")
 *     cgl_native.glVertexAttrib2f ( indx, x, y)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glVertexAttrib2f(__pyx_v_indx, __pyx_v_x, __pyx_v_y); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1221, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1222
 *     gl_debug_print("GL glVertexAttrib2f( indx = ", indx, ", x = ", x, ", y = ", y, ", )")
 *     cgl_native.glVertexAttrib2f ( indx, x, y)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * # cdef void __stdcall dbgVertexAttrib2fv (GLuint indx,  GLfloat* values) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_6, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1222, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_6))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_6);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_6, __pyx__function);
    __pyx_t_7 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_6, __pyx_callargs+__pyx_t_7, (1-__pyx_t_7) | (__pyx_t_7*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1222, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1219
 *         gil_dbgVertexAttrib2f(indx, x, y)
 * 
 * cdef void __stdcall gil_dbgVertexAttrib2f (GLuint indx, GLfloat x, GLfloat y) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glVertexAttrib2f( indx = ", indx, ", x = ", x, ", y = ", y, ", )")
 *     cgl_native.glVertexAttrib2f ( indx, x, y)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgVertexAttrib2f", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1234
 * #     if ret: print("OpenGL Error %d / %x" % (ret, ret))
 * #
 * cdef void __stdcall dbgVertexAttrib3f (GLuint indx, GLfloat x, GLfloat y, GLfloat z) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgVertexAttrib3f(indx, x, y, z)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgVertexAttrib3f(GLuint __pyx_v_indx, GLfloat __pyx_v_x, GLfloat __pyx_v_y, GLfloat __pyx_v_z) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1235
 * #
 * cdef void __stdcall dbgVertexAttrib3f (GLuint indx, GLfloat x, GLfloat y, GLfloat z) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgVertexAttrib3f(indx, x, y, z)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1236
 * cdef void __stdcall dbgVertexAttrib3f (GLuint indx, GLfloat x, GLfloat y, GLfloat z) nogil:
 *     with gil:
 *         gil_dbgVertexAttrib3f(indx, x, y, z)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgVertexAttrib3f (GLuint indx, GLfloat x, GLfloat y, GLfloat z) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgVertexAttrib3f(__pyx_v_indx, __pyx_v_x, __pyx_v_y, __pyx_v_z); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1236, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1235
 * #
 * cdef void __stdcall dbgVertexAttrib3f (GLuint indx, GLfloat x, GLfloat y, GLfloat z) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgVertexAttrib3f(indx, x, y, z)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1234
 * #     if ret: print("OpenGL Error %d / %x" % (ret, ret))
 * #
 * cdef void __stdcall dbgVertexAttrib3f (GLuint indx, GLfloat x, GLfloat y, GLfloat z) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgVertexAttrib3f(indx, x, y, z)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgVertexAttrib3f", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1238
 *         gil_dbgVertexAttrib3f(indx, x, y, z)
 * 
 * cdef void __stdcall gil_dbgVertexAttrib3f (GLuint indx, GLfloat x, GLfloat y, GLfloat z) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glVertexAttrib3f( indx = ", indx, ", x = ", x, ", y = ", y, ", z = ", z, ", )")
 *     cgl_native.glVertexAttrib3f ( indx, x, y, z)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgVertexAttrib3f(GLuint __pyx_v_indx, GLfloat __pyx_v_x, GLfloat __pyx_v_y, GLfloat __pyx_v_z) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgVertexAttrib3f", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1239
 * 
 * cdef void __stdcall gil_dbgVertexAttrib3f (GLuint indx, GLfloat x, GLfloat y, GLfloat z) with gil:
 *     gl_debug_print("GL glVertexAttrib3f( indx = ", indx, ", x = ", x, ", y = ", y, ", z = ", z, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glVertexAttrib3f ( indx, x, y, z)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1239, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_indx); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1239, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_x); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1239, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyFloat_FromDouble(__pyx_v_y); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1239, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = PyFloat_FromDouble(__pyx_v_z); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1239, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[10] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glVertexAttrib3f_indx, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_x_2, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_y, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_z, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (10-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1239, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1240
 * cdef void __stdcall gil_dbgVertexAttrib3f (GLuint indx, GLfloat x, GLfloat y, GLfloat z) with gil:
 *     gl_debug_print("GL glVertexAttrib3f( indx = ", indx, ", x = ", x, ", y = ", y, ", z = ", z, ", )")
 *     cgl_native.glVertexAttrib3f ( indx, x, y, z)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glVertexAttrib3f(__pyx_v_indx, __pyx_v_x, __pyx_v_y, __pyx_v_z); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1240, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1241
 *     gl_debug_print("GL glVertexAttrib3f( indx = ", indx, ", x = ", x, ", y = ", y, ", z = ", z, ", )")
 *     cgl_native.glVertexAttrib3f ( indx, x, y, z)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * # cdef void __stdcall dbgVertexAttrib3fv (GLuint indx,  GLfloat* values) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1241, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1241, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1238
 *         gil_dbgVertexAttrib3f(indx, x, y, z)
 * 
 * cdef void __stdcall gil_dbgVertexAttrib3f (GLuint indx, GLfloat x, GLfloat y, GLfloat z) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glVertexAttrib3f( indx = ", indx, ", x = ", x, ", y = ", y, ", z = ", z, ", )")
 *     cgl_native.glVertexAttrib3f ( indx, x, y, z)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgVertexAttrib3f", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1253
 * #     if ret: print("OpenGL Error %d / %x" % (ret, ret))
 * #
 * cdef void __stdcall dbgVertexAttrib4f (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgVertexAttrib4f(indx, x, y, z, w)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgVertexAttrib4f(GLuint __pyx_v_indx, GLfloat __pyx_v_x, GLfloat __pyx_v_y, GLfloat __pyx_v_z, GLfloat __pyx_v_w) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1254
 * #
 * cdef void __stdcall dbgVertexAttrib4f (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgVertexAttrib4f(indx, x, y, z, w)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1255
 * cdef void __stdcall dbgVertexAttrib4f (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) nogil:
 *     with gil:
 *         gil_dbgVertexAttrib4f(indx, x, y, z, w)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgVertexAttrib4f (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgVertexAttrib4f(__pyx_v_indx, __pyx_v_x, __pyx_v_y, __pyx_v_z, __pyx_v_w); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1255, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1254
 * #
 * cdef void __stdcall dbgVertexAttrib4f (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgVertexAttrib4f(indx, x, y, z, w)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1253
 * #     if ret: print("OpenGL Error %d / %x" % (ret, ret))
 * #
 * cdef void __stdcall dbgVertexAttrib4f (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgVertexAttrib4f(indx, x, y, z, w)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgVertexAttrib4f", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1257
 *         gil_dbgVertexAttrib4f(indx, x, y, z, w)
 * 
 * cdef void __stdcall gil_dbgVertexAttrib4f (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glVertexAttrib4f( indx = ", indx, ", x = ", x, ", y = ", y, ", z = ", z, ", w = ", w, ", )")
 *     cgl_native.glVertexAttrib4f ( indx, x, y, z, w)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgVertexAttrib4f(GLuint __pyx_v_indx, GLfloat __pyx_v_x, GLfloat __pyx_v_y, GLfloat __pyx_v_z, GLfloat __pyx_v_w) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  size_t __pyx_t_9;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgVertexAttrib4f", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1258
 * 
 * cdef void __stdcall gil_dbgVertexAttrib4f (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) with gil:
 *     gl_debug_print("GL glVertexAttrib4f( indx = ", indx, ", x = ", x, ", y = ", y, ", z = ", z, ", w = ", w, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glVertexAttrib4f ( indx, x, y, z, w)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1258, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_indx); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1258, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyFloat_FromDouble(__pyx_v_x); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1258, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = PyFloat_FromDouble(__pyx_v_y); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1258, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = PyFloat_FromDouble(__pyx_v_z); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1258, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = PyFloat_FromDouble(__pyx_v_w); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1258, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_9 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[12] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glVertexAttrib4f_indx, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_x_2, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_y, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_z, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u_w, __pyx_t_8, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_9, (12-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1258, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1259
 * cdef void __stdcall gil_dbgVertexAttrib4f (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) with gil:
 *     gl_debug_print("GL glVertexAttrib4f( indx = ", indx, ", x = ", x, ", y = ", y, ", z = ", z, ", w = ", w, ", )")
 *     cgl_native.glVertexAttrib4f ( indx, x, y, z, w)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glVertexAttrib4f(__pyx_v_indx, __pyx_v_x, __pyx_v_y, __pyx_v_z, __pyx_v_w); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1259, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1260
 *     gl_debug_print("GL glVertexAttrib4f( indx = ", indx, ", x = ", x, ", y = ", y, ", z = ", z, ", w = ", w, ", )")
 *     cgl_native.glVertexAttrib4f ( indx, x, y, z, w)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * # cdef void __stdcall dbgVertexAttrib4fv (GLuint indx,  GLfloat* values) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_8, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1260, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_8))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_8);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_8);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_8, __pyx__function);
    __pyx_t_9 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_8, __pyx_callargs+__pyx_t_9, (1-__pyx_t_9) | (__pyx_t_9*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1260, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1257
 *         gil_dbgVertexAttrib4f(indx, x, y, z, w)
 * 
 * cdef void __stdcall gil_dbgVertexAttrib4f (GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glVertexAttrib4f( indx = ", indx, ", x = ", x, ", y = ", y, ", z = ", z, ", w = ", w, ", )")
 *     cgl_native.glVertexAttrib4f ( indx, x, y, z, w)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgVertexAttrib4f", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1272
 * #     if ret: print("OpenGL Error %d / %x" % (ret, ret))
 * #
 * cdef void __stdcall dbgVertexAttribPointer (GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid* ptr) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgVertexAttribPointer(indx, size, type, normalized, stride, <GLvoid*>ptr)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgVertexAttribPointer(GLuint __pyx_v_indx, GLint __pyx_v_size, GLenum __pyx_v_type, GLboolean __pyx_v_normalized, GLsizei __pyx_v_stride, GLvoid const *__pyx_v_ptr) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1273
 * #
 * cdef void __stdcall dbgVertexAttribPointer (GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid* ptr) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgVertexAttribPointer(indx, size, type, normalized, stride, <GLvoid*>ptr)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1274
 * cdef void __stdcall dbgVertexAttribPointer (GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid* ptr) nogil:
 *     with gil:
 *         gil_dbgVertexAttribPointer(indx, size, type, normalized, stride, <GLvoid*>ptr)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgVertexAttribPointer (GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride,  GLvoid* ptr) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgVertexAttribPointer(__pyx_v_indx, __pyx_v_size, __pyx_v_type, __pyx_v_normalized, __pyx_v_stride, ((GLvoid *)__pyx_v_ptr)); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1274, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1273
 * #
 * cdef void __stdcall dbgVertexAttribPointer (GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid* ptr) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgVertexAttribPointer(indx, size, type, normalized, stride, <GLvoid*>ptr)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1272
 * #     if ret: print("OpenGL Error %d / %x" % (ret, ret))
 * #
 * cdef void __stdcall dbgVertexAttribPointer (GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid* ptr) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgVertexAttribPointer(indx, size, type, normalized, stride, <GLvoid*>ptr)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgVertexAttribPointer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1276
 *         gil_dbgVertexAttribPointer(indx, size, type, normalized, stride, <GLvoid*>ptr)
 * 
 * cdef void __stdcall gil_dbgVertexAttribPointer (GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride,  GLvoid* ptr) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glVertexAttribPointer( indx = ", indx, ", size = ", size, ", type = ", type, ", normalized = ", normalized, ", stride = ", stride, ", ptr*=", repr(hex(<long long> ptr)), ", )")
 *     cgl_native.glVertexAttribPointer ( indx, size, type, normalized, stride, ptr)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgVertexAttribPointer(GLuint __pyx_v_indx, GLint __pyx_v_size, GLenum __pyx_v_type, GLboolean __pyx_v_normalized, GLsizei __pyx_v_stride, GLvoid *__pyx_v_ptr) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  PyObject *__pyx_t_8 = NULL;
  PyObject *__pyx_t_9 = NULL;
  PyObject *__pyx_t_10 = NULL;
  size_t __pyx_t_11;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgVertexAttribPointer", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1277
 * 
 * cdef void __stdcall gil_dbgVertexAttribPointer (GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride,  GLvoid* ptr) with gil:
 *     gl_debug_print("GL glVertexAttribPointer( indx = ", indx, ", size = ", size, ", type = ", type, ", normalized = ", normalized, ", stride = ", stride, ", ptr*=", repr(hex(<long long> ptr)), ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glVertexAttribPointer ( indx, size, type, normalized, stride, ptr)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLuint(__pyx_v_indx); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLint(__pyx_v_size); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_GLenum(__pyx_v_type); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyLong_From_GLboolean(__pyx_v_normalized); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = __Pyx_PyLong_From_GLsizei(__pyx_v_stride); if (unlikely(!__pyx_t_8)) __PYX_ERR(0, 1277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_8);
  __pyx_t_9 = __Pyx_PyLong_From_PY_LONG_LONG(((PY_LONG_LONG)__pyx_v_ptr)); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_10 = __Pyx_PyNumber_Hex(__pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(0, 1277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_10);
  __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
  __pyx_t_9 = PyObject_Repr(__pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0;
  __pyx_t_11 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_11 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[14] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glVertexAttribPointer_indx, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_size, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_type, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_normalized, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u_stride, __pyx_t_8, __pyx_mstate_global->__pyx_kp_u_ptr, __pyx_t_9, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_11, (14-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1277, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1278
 * cdef void __stdcall gil_dbgVertexAttribPointer (GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride,  GLvoid* ptr) with gil:
 *     gl_debug_print("GL glVertexAttribPointer( indx = ", indx, ", size = ", size, ", type = ", type, ", normalized = ", normalized, ", stride = ", stride, ", ptr*=", repr(hex(<long long> ptr)), ", )")
 *     cgl_native.glVertexAttribPointer ( indx, size, type, normalized, stride, ptr)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glVertexAttribPointer(__pyx_v_indx, __pyx_v_size, __pyx_v_type, __pyx_v_normalized, __pyx_v_stride, __pyx_v_ptr); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1278, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1279
 *     gl_debug_print("GL glVertexAttribPointer( indx = ", indx, ", size = ", size, ", type = ", type, ", normalized = ", normalized, ", stride = ", stride, ", ptr*=", repr(hex(<long long> ptr)), ", )")
 *     cgl_native.glVertexAttribPointer ( indx, size, type, normalized, stride, ptr)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall dbgViewport (GLint x, GLint y, GLsizei width, GLsizei height) nogil:
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_9, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_9)) __PYX_ERR(0, 1279, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_9);
  __pyx_t_11 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_9))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_9);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_9);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_9, __pyx__function);
    __pyx_t_11 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_9, __pyx_callargs+__pyx_t_11, (1-__pyx_t_11) | (__pyx_t_11*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1279, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1276
 *         gil_dbgVertexAttribPointer(indx, size, type, normalized, stride, <GLvoid*>ptr)
 * 
 * cdef void __stdcall gil_dbgVertexAttribPointer (GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride,  GLvoid* ptr) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glVertexAttribPointer( indx = ", indx, ", size = ", size, ", type = ", type, ", normalized = ", normalized, ", stride = ", stride, ", ptr*=", repr(hex(<long long> ptr)), ", )")
 *     cgl_native.glVertexAttribPointer ( indx, size, type, normalized, stride, ptr)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_XDECREF(__pyx_t_8);
  __Pyx_XDECREF(__pyx_t_9);
  __Pyx_XDECREF(__pyx_t_10);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgVertexAttribPointer", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1281
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgViewport (GLint x, GLint y, GLsizei width, GLsizei height) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgViewport(x, y, width, height)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgViewport(GLint __pyx_v_x, GLint __pyx_v_y, GLsizei __pyx_v_width, GLsizei __pyx_v_height) {
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1282
 * 
 * cdef void __stdcall dbgViewport (GLint x, GLint y, GLsizei width, GLsizei height) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgViewport(x, y, width, height)
 * 
*/
  {
      PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
      /*try:*/ {

        /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1283
 * cdef void __stdcall dbgViewport (GLint x, GLint y, GLsizei width, GLsizei height) nogil:
 *     with gil:
 *         gil_dbgViewport(x, y, width, height)             # <<<<<<<<<<<<<<
 * 
 * cdef void __stdcall gil_dbgViewport (GLint x, GLint y, GLsizei width, GLsizei height) with gil:
*/
        __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgViewport(__pyx_v_x, __pyx_v_y, __pyx_v_width, __pyx_v_height); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1283, __pyx_L4_error)
      }

      /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1282
 * 
 * cdef void __stdcall dbgViewport (GLint x, GLint y, GLsizei width, GLsizei height) nogil:
 *     with gil:             # <<<<<<<<<<<<<<
 *         gil_dbgViewport(x, y, width, height)
 * 
*/
      /*finally:*/ {
        /*normal exit:*/{
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L5;
        }
        __pyx_L4_error: {
          __Pyx_PyGILState_Release(__pyx_gilstate_save);
          goto __pyx_L1_error;
        }
        __pyx_L5:;
      }
  }

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1281
 *     gl_check_error()
 * 
 * cdef void __stdcall dbgViewport (GLint x, GLint y, GLsizei width, GLsizei height) nogil:             # <<<<<<<<<<<<<<
 *     with gil:
 *         gil_dbgViewport(x, y, width, height)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.dbgViewport", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
  __pyx_L0:;
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1285
 *         gil_dbgViewport(x, y, width, height)
 * 
 * cdef void __stdcall gil_dbgViewport (GLint x, GLint y, GLsizei width, GLsizei height) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glViewport( x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", )")
 *     cgl_native.glViewport ( x, y, width, height)
*/

static void __stdcall __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_gil_dbgViewport(GLint __pyx_v_x, GLint __pyx_v_y, GLsizei __pyx_v_width, GLsizei __pyx_v_height) {
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  PyObject *__pyx_t_6 = NULL;
  PyObject *__pyx_t_7 = NULL;
  size_t __pyx_t_8;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  PyGILState_STATE __pyx_gilstate_save = __Pyx_PyGILState_Ensure();
  __Pyx_RefNannySetupContext("gil_dbgViewport", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1286
 * 
 * cdef void __stdcall gil_dbgViewport (GLint x, GLint y, GLsizei width, GLsizei height) with gil:
 *     gl_debug_print("GL glViewport( x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", )")             # <<<<<<<<<<<<<<
 *     cgl_native.glViewport ( x, y, width, height)
 *     gl_check_error()
*/
  __pyx_t_2 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_3, __pyx_mstate_global->__pyx_n_u_gl_debug_print); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1286, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __Pyx_PyLong_From_GLint(__pyx_v_x); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 1286, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = __Pyx_PyLong_From_GLint(__pyx_v_y); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 1286, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __pyx_t_6 = __Pyx_PyLong_From_GLsizei(__pyx_v_width); if (unlikely(!__pyx_t_6)) __PYX_ERR(0, 1286, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_6);
  __pyx_t_7 = __Pyx_PyLong_From_GLsizei(__pyx_v_height); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1286, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_3))) {
    __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3);
    assert(__pyx_t_2);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_3);
    __Pyx_INCREF(__pyx_t_2);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_3, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[10] = {__pyx_t_2, __pyx_mstate_global->__pyx_kp_u_GL_glViewport_x, __pyx_t_4, __pyx_mstate_global->__pyx_kp_u_y, __pyx_t_5, __pyx_mstate_global->__pyx_kp_u_width, __pyx_t_6, __pyx_mstate_global->__pyx_kp_u_height, __pyx_t_7, __pyx_mstate_global->__pyx_kp_u__3};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_3, __pyx_callargs+__pyx_t_8, (10-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0;
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0;
    __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1286, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1287
 * cdef void __stdcall gil_dbgViewport (GLint x, GLint y, GLsizei width, GLsizei height) with gil:
 *     gl_debug_print("GL glViewport( x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", )")
 *     cgl_native.glViewport ( x, y, width, height)             # <<<<<<<<<<<<<<
 *     gl_check_error()
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native->glViewport(__pyx_v_x, __pyx_v_y, __pyx_v_width, __pyx_v_height); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1287, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1288
 *     gl_debug_print("GL glViewport( x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", )")
 *     cgl_native.glViewport ( x, y, width, height)
 *     gl_check_error()             # <<<<<<<<<<<<<<
 * 
 * 
*/
  __pyx_t_3 = NULL;
  __Pyx_GetModuleGlobalName(__pyx_t_7, __pyx_mstate_global->__pyx_n_u_gl_check_error); if (unlikely(!__pyx_t_7)) __PYX_ERR(0, 1288, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_7);
  __pyx_t_8 = 1;
  #if CYTHON_UNPACK_METHODS
  if (unlikely(PyMethod_Check(__pyx_t_7))) {
    __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_7);
    assert(__pyx_t_3);
    PyObject* __pyx__function = PyMethod_GET_FUNCTION(__pyx_t_7);
    __Pyx_INCREF(__pyx_t_3);
    __Pyx_INCREF(__pyx__function);
    __Pyx_DECREF_SET(__pyx_t_7, __pyx__function);
    __pyx_t_8 = 0;
  }
  #endif
  {
    PyObject *__pyx_callargs[2] = {__pyx_t_3, NULL};
    __pyx_t_1 = __Pyx_PyObject_FastCall((PyObject*)__pyx_t_7, __pyx_callargs+__pyx_t_8, (1-__pyx_t_8) | (__pyx_t_8*__Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET));
    __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0;
    __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0;
    if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1288, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1285
 *         gil_dbgViewport(x, y, width, height)
 * 
 * cdef void __stdcall gil_dbgViewport (GLint x, GLint y, GLsizei width, GLsizei height) with gil:             # <<<<<<<<<<<<<<
 *     gl_debug_print("GL glViewport( x = ", x, ", y = ", y, ", width = ", width, ", height = ", height, ", )")
 *     cgl_native.glViewport ( x, y, width, height)
*/

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_XDECREF(__pyx_t_7);
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.gil_dbgViewport", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  __Pyx_PyGILState_Release(__pyx_gilstate_save);
}

/* "kivy/graphics/cgl_backend/cgl_debug.pyx":1291
 * 
 * 
 * def init_backend_debug():             # <<<<<<<<<<<<<<
 *     cgl_debug.glActiveTexture = dbgActiveTexture
 *     cgl_debug.glAttachShader = dbgAttachShader
*/

/* Python wrapper */
static PyObject *__pyx_pw_4kivy_8graphics_11cgl_backend_9cgl_debug_7init_backend_debug(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/
PyDoc_STRVAR(__pyx_doc_4kivy_8graphics_11cgl_backend_9cgl_debug_6init_backend_debug, "init_backend_debug()");
static PyMethodDef __pyx_mdef_4kivy_8graphics_11cgl_backend_9cgl_debug_7init_backend_debug = {"init_backend_debug", (PyCFunction)__pyx_pw_4kivy_8graphics_11cgl_backend_9cgl_debug_7init_backend_debug, METH_NOARGS, __pyx_doc_4kivy_8graphics_11cgl_backend_9cgl_debug_6init_backend_debug};
static PyObject *__pyx_pw_4kivy_8graphics_11cgl_backend_9cgl_debug_7init_backend_debug(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) {
  CYTHON_UNUSED PyObject *const *__pyx_kwvalues;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("init_backend_debug (wrapper)", 0);
  __pyx_kwvalues = __Pyx_KwValues_VARARGS(__pyx_args, __pyx_nargs);
  __pyx_r = __pyx_pf_4kivy_8graphics_11cgl_backend_9cgl_debug_6init_backend_debug(__pyx_self);

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_4kivy_8graphics_11cgl_backend_9cgl_debug_6init_backend_debug(CYTHON_UNUSED PyObject *__pyx_self) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  __pyx_t_4kivy_8graphics_3cgl_GLES2_Context *__pyx_t_1;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("init_backend_debug", 0);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1292
 * 
 * def init_backend_debug():
 *     cgl_debug.glActiveTexture = dbgActiveTexture             # <<<<<<<<<<<<<<
 *     cgl_debug.glAttachShader = dbgAttachShader
 *     cgl_debug.glBindAttribLocation = dbgBindAttribLocation
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glActiveTexture = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgActiveTexture;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1293
 * def init_backend_debug():
 *     cgl_debug.glActiveTexture = dbgActiveTexture
 *     cgl_debug.glAttachShader = dbgAttachShader             # <<<<<<<<<<<<<<
 *     cgl_debug.glBindAttribLocation = dbgBindAttribLocation
 *     cgl_debug.glBindBuffer = dbgBindBuffer
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glAttachShader = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgAttachShader;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1294
 *     cgl_debug.glActiveTexture = dbgActiveTexture
 *     cgl_debug.glAttachShader = dbgAttachShader
 *     cgl_debug.glBindAttribLocation = dbgBindAttribLocation             # <<<<<<<<<<<<<<
 *     cgl_debug.glBindBuffer = dbgBindBuffer
 *     cgl_debug.glBindFramebuffer = dbgBindFramebuffer
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glBindAttribLocation = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgBindAttribLocation;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1295
 *     cgl_debug.glAttachShader = dbgAttachShader
 *     cgl_debug.glBindAttribLocation = dbgBindAttribLocation
 *     cgl_debug.glBindBuffer = dbgBindBuffer             # <<<<<<<<<<<<<<
 *     cgl_debug.glBindFramebuffer = dbgBindFramebuffer
 *     cgl_debug.glBindRenderbuffer = dbgBindRenderbuffer
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glBindBuffer = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgBindBuffer;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1296
 *     cgl_debug.glBindAttribLocation = dbgBindAttribLocation
 *     cgl_debug.glBindBuffer = dbgBindBuffer
 *     cgl_debug.glBindFramebuffer = dbgBindFramebuffer             # <<<<<<<<<<<<<<
 *     cgl_debug.glBindRenderbuffer = dbgBindRenderbuffer
 *     cgl_debug.glBindTexture = dbgBindTexture
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glBindFramebuffer = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgBindFramebuffer;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1297
 *     cgl_debug.glBindBuffer = dbgBindBuffer
 *     cgl_debug.glBindFramebuffer = dbgBindFramebuffer
 *     cgl_debug.glBindRenderbuffer = dbgBindRenderbuffer             # <<<<<<<<<<<<<<
 *     cgl_debug.glBindTexture = dbgBindTexture
 *     cgl_debug.glBlendColor = dbgBlendColor
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glBindRenderbuffer = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgBindRenderbuffer;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1298
 *     cgl_debug.glBindFramebuffer = dbgBindFramebuffer
 *     cgl_debug.glBindRenderbuffer = dbgBindRenderbuffer
 *     cgl_debug.glBindTexture = dbgBindTexture             # <<<<<<<<<<<<<<
 *     cgl_debug.glBlendColor = dbgBlendColor
 *     cgl_debug.glBlendEquation = dbgBlendEquation
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glBindTexture = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgBindTexture;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1299
 *     cgl_debug.glBindRenderbuffer = dbgBindRenderbuffer
 *     cgl_debug.glBindTexture = dbgBindTexture
 *     cgl_debug.glBlendColor = dbgBlendColor             # <<<<<<<<<<<<<<
 *     cgl_debug.glBlendEquation = dbgBlendEquation
 *     cgl_debug.glBlendEquationSeparate = dbgBlendEquationSeparate
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glBlendColor = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgBlendColor;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1300
 *     cgl_debug.glBindTexture = dbgBindTexture
 *     cgl_debug.glBlendColor = dbgBlendColor
 *     cgl_debug.glBlendEquation = dbgBlendEquation             # <<<<<<<<<<<<<<
 *     cgl_debug.glBlendEquationSeparate = dbgBlendEquationSeparate
 *     cgl_debug.glBlendFunc = dbgBlendFunc
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glBlendEquation = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgBlendEquation;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1301
 *     cgl_debug.glBlendColor = dbgBlendColor
 *     cgl_debug.glBlendEquation = dbgBlendEquation
 *     cgl_debug.glBlendEquationSeparate = dbgBlendEquationSeparate             # <<<<<<<<<<<<<<
 *     cgl_debug.glBlendFunc = dbgBlendFunc
 *     cgl_debug.glBlendFuncSeparate = dbgBlendFuncSeparate
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glBlendEquationSeparate = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgBlendEquationSeparate;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1302
 *     cgl_debug.glBlendEquation = dbgBlendEquation
 *     cgl_debug.glBlendEquationSeparate = dbgBlendEquationSeparate
 *     cgl_debug.glBlendFunc = dbgBlendFunc             # <<<<<<<<<<<<<<
 *     cgl_debug.glBlendFuncSeparate = dbgBlendFuncSeparate
 *     cgl_debug.glBufferData = dbgBufferData
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glBlendFunc = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgBlendFunc;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1303
 *     cgl_debug.glBlendEquationSeparate = dbgBlendEquationSeparate
 *     cgl_debug.glBlendFunc = dbgBlendFunc
 *     cgl_debug.glBlendFuncSeparate = dbgBlendFuncSeparate             # <<<<<<<<<<<<<<
 *     cgl_debug.glBufferData = dbgBufferData
 *     cgl_debug.glBufferSubData = dbgBufferSubData
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glBlendFuncSeparate = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgBlendFuncSeparate;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1304
 *     cgl_debug.glBlendFunc = dbgBlendFunc
 *     cgl_debug.glBlendFuncSeparate = dbgBlendFuncSeparate
 *     cgl_debug.glBufferData = dbgBufferData             # <<<<<<<<<<<<<<
 *     cgl_debug.glBufferSubData = dbgBufferSubData
 *     cgl_debug.glCheckFramebufferStatus = dbgCheckFramebufferStatus
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glBufferData = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgBufferData;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1305
 *     cgl_debug.glBlendFuncSeparate = dbgBlendFuncSeparate
 *     cgl_debug.glBufferData = dbgBufferData
 *     cgl_debug.glBufferSubData = dbgBufferSubData             # <<<<<<<<<<<<<<
 *     cgl_debug.glCheckFramebufferStatus = dbgCheckFramebufferStatus
 *     cgl_debug.glClear = dbgClear
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glBufferSubData = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgBufferSubData;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1306
 *     cgl_debug.glBufferData = dbgBufferData
 *     cgl_debug.glBufferSubData = dbgBufferSubData
 *     cgl_debug.glCheckFramebufferStatus = dbgCheckFramebufferStatus             # <<<<<<<<<<<<<<
 *     cgl_debug.glClear = dbgClear
 *     cgl_debug.glClearColor = dbgClearColor
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glCheckFramebufferStatus = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgCheckFramebufferStatus;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1307
 *     cgl_debug.glBufferSubData = dbgBufferSubData
 *     cgl_debug.glCheckFramebufferStatus = dbgCheckFramebufferStatus
 *     cgl_debug.glClear = dbgClear             # <<<<<<<<<<<<<<
 *     cgl_debug.glClearColor = dbgClearColor
 *     cgl_debug.glClearStencil = dbgClearStencil
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glClear = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgClear;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1308
 *     cgl_debug.glCheckFramebufferStatus = dbgCheckFramebufferStatus
 *     cgl_debug.glClear = dbgClear
 *     cgl_debug.glClearColor = dbgClearColor             # <<<<<<<<<<<<<<
 *     cgl_debug.glClearStencil = dbgClearStencil
 *     cgl_debug.glColorMask = dbgColorMask
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glClearColor = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgClearColor;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1309
 *     cgl_debug.glClear = dbgClear
 *     cgl_debug.glClearColor = dbgClearColor
 *     cgl_debug.glClearStencil = dbgClearStencil             # <<<<<<<<<<<<<<
 *     cgl_debug.glColorMask = dbgColorMask
 *     cgl_debug.glCompileShader = dbgCompileShader
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glClearStencil = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgClearStencil;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1310
 *     cgl_debug.glClearColor = dbgClearColor
 *     cgl_debug.glClearStencil = dbgClearStencil
 *     cgl_debug.glColorMask = dbgColorMask             # <<<<<<<<<<<<<<
 *     cgl_debug.glCompileShader = dbgCompileShader
 *     cgl_debug.glCompressedTexImage2D = dbgCompressedTexImage2D
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glColorMask = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgColorMask;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1311
 *     cgl_debug.glClearStencil = dbgClearStencil
 *     cgl_debug.glColorMask = dbgColorMask
 *     cgl_debug.glCompileShader = dbgCompileShader             # <<<<<<<<<<<<<<
 *     cgl_debug.glCompressedTexImage2D = dbgCompressedTexImage2D
 *     cgl_debug.glCompressedTexSubImage2D = dbgCompressedTexSubImage2D
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glCompileShader = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgCompileShader;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1312
 *     cgl_debug.glColorMask = dbgColorMask
 *     cgl_debug.glCompileShader = dbgCompileShader
 *     cgl_debug.glCompressedTexImage2D = dbgCompressedTexImage2D             # <<<<<<<<<<<<<<
 *     cgl_debug.glCompressedTexSubImage2D = dbgCompressedTexSubImage2D
 *     cgl_debug.glCopyTexImage2D = dbgCopyTexImage2D
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glCompressedTexImage2D = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgCompressedTexImage2D;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1313
 *     cgl_debug.glCompileShader = dbgCompileShader
 *     cgl_debug.glCompressedTexImage2D = dbgCompressedTexImage2D
 *     cgl_debug.glCompressedTexSubImage2D = dbgCompressedTexSubImage2D             # <<<<<<<<<<<<<<
 *     cgl_debug.glCopyTexImage2D = dbgCopyTexImage2D
 *     cgl_debug.glCopyTexSubImage2D = dbgCopyTexSubImage2D
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glCompressedTexSubImage2D = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgCompressedTexSubImage2D;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1314
 *     cgl_debug.glCompressedTexImage2D = dbgCompressedTexImage2D
 *     cgl_debug.glCompressedTexSubImage2D = dbgCompressedTexSubImage2D
 *     cgl_debug.glCopyTexImage2D = dbgCopyTexImage2D             # <<<<<<<<<<<<<<
 *     cgl_debug.glCopyTexSubImage2D = dbgCopyTexSubImage2D
 *     cgl_debug.glCreateProgram = dbgCreateProgram
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glCopyTexImage2D = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgCopyTexImage2D;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1315
 *     cgl_debug.glCompressedTexSubImage2D = dbgCompressedTexSubImage2D
 *     cgl_debug.glCopyTexImage2D = dbgCopyTexImage2D
 *     cgl_debug.glCopyTexSubImage2D = dbgCopyTexSubImage2D             # <<<<<<<<<<<<<<
 *     cgl_debug.glCreateProgram = dbgCreateProgram
 *     cgl_debug.glCreateShader = dbgCreateShader
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glCopyTexSubImage2D = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgCopyTexSubImage2D;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1316
 *     cgl_debug.glCopyTexImage2D = dbgCopyTexImage2D
 *     cgl_debug.glCopyTexSubImage2D = dbgCopyTexSubImage2D
 *     cgl_debug.glCreateProgram = dbgCreateProgram             # <<<<<<<<<<<<<<
 *     cgl_debug.glCreateShader = dbgCreateShader
 *     cgl_debug.glCullFace = dbgCullFace
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glCreateProgram = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgCreateProgram;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1317
 *     cgl_debug.glCopyTexSubImage2D = dbgCopyTexSubImage2D
 *     cgl_debug.glCreateProgram = dbgCreateProgram
 *     cgl_debug.glCreateShader = dbgCreateShader             # <<<<<<<<<<<<<<
 *     cgl_debug.glCullFace = dbgCullFace
 *     cgl_debug.glDeleteBuffers = dbgDeleteBuffers
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glCreateShader = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgCreateShader;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1318
 *     cgl_debug.glCreateProgram = dbgCreateProgram
 *     cgl_debug.glCreateShader = dbgCreateShader
 *     cgl_debug.glCullFace = dbgCullFace             # <<<<<<<<<<<<<<
 *     cgl_debug.glDeleteBuffers = dbgDeleteBuffers
 *     cgl_debug.glDeleteFramebuffers = dbgDeleteFramebuffers
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glCullFace = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgCullFace;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1319
 *     cgl_debug.glCreateShader = dbgCreateShader
 *     cgl_debug.glCullFace = dbgCullFace
 *     cgl_debug.glDeleteBuffers = dbgDeleteBuffers             # <<<<<<<<<<<<<<
 *     cgl_debug.glDeleteFramebuffers = dbgDeleteFramebuffers
 *     cgl_debug.glDeleteProgram = dbgDeleteProgram
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glDeleteBuffers = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDeleteBuffers;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1320
 *     cgl_debug.glCullFace = dbgCullFace
 *     cgl_debug.glDeleteBuffers = dbgDeleteBuffers
 *     cgl_debug.glDeleteFramebuffers = dbgDeleteFramebuffers             # <<<<<<<<<<<<<<
 *     cgl_debug.glDeleteProgram = dbgDeleteProgram
 *     cgl_debug.glDeleteRenderbuffers = dbgDeleteRenderbuffers
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glDeleteFramebuffers = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDeleteFramebuffers;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1321
 *     cgl_debug.glDeleteBuffers = dbgDeleteBuffers
 *     cgl_debug.glDeleteFramebuffers = dbgDeleteFramebuffers
 *     cgl_debug.glDeleteProgram = dbgDeleteProgram             # <<<<<<<<<<<<<<
 *     cgl_debug.glDeleteRenderbuffers = dbgDeleteRenderbuffers
 *     cgl_debug.glDeleteShader = dbgDeleteShader
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glDeleteProgram = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDeleteProgram;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1322
 *     cgl_debug.glDeleteFramebuffers = dbgDeleteFramebuffers
 *     cgl_debug.glDeleteProgram = dbgDeleteProgram
 *     cgl_debug.glDeleteRenderbuffers = dbgDeleteRenderbuffers             # <<<<<<<<<<<<<<
 *     cgl_debug.glDeleteShader = dbgDeleteShader
 *     cgl_debug.glDeleteTextures = dbgDeleteTextures
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glDeleteRenderbuffers = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDeleteRenderbuffers;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1323
 *     cgl_debug.glDeleteProgram = dbgDeleteProgram
 *     cgl_debug.glDeleteRenderbuffers = dbgDeleteRenderbuffers
 *     cgl_debug.glDeleteShader = dbgDeleteShader             # <<<<<<<<<<<<<<
 *     cgl_debug.glDeleteTextures = dbgDeleteTextures
 *     cgl_debug.glDepthFunc = dbgDepthFunc
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glDeleteShader = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDeleteShader;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1324
 *     cgl_debug.glDeleteRenderbuffers = dbgDeleteRenderbuffers
 *     cgl_debug.glDeleteShader = dbgDeleteShader
 *     cgl_debug.glDeleteTextures = dbgDeleteTextures             # <<<<<<<<<<<<<<
 *     cgl_debug.glDepthFunc = dbgDepthFunc
 *     cgl_debug.glDepthMask = dbgDepthMask
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glDeleteTextures = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDeleteTextures;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1325
 *     cgl_debug.glDeleteShader = dbgDeleteShader
 *     cgl_debug.glDeleteTextures = dbgDeleteTextures
 *     cgl_debug.glDepthFunc = dbgDepthFunc             # <<<<<<<<<<<<<<
 *     cgl_debug.glDepthMask = dbgDepthMask
 *     cgl_debug.glDetachShader = dbgDetachShader
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glDepthFunc = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDepthFunc;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1326
 *     cgl_debug.glDeleteTextures = dbgDeleteTextures
 *     cgl_debug.glDepthFunc = dbgDepthFunc
 *     cgl_debug.glDepthMask = dbgDepthMask             # <<<<<<<<<<<<<<
 *     cgl_debug.glDetachShader = dbgDetachShader
 *     cgl_debug.glDisable = dbgDisable
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glDepthMask = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDepthMask;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1327
 *     cgl_debug.glDepthFunc = dbgDepthFunc
 *     cgl_debug.glDepthMask = dbgDepthMask
 *     cgl_debug.glDetachShader = dbgDetachShader             # <<<<<<<<<<<<<<
 *     cgl_debug.glDisable = dbgDisable
 *     cgl_debug.glDisableVertexAttribArray = dbgDisableVertexAttribArray
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glDetachShader = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDetachShader;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1328
 *     cgl_debug.glDepthMask = dbgDepthMask
 *     cgl_debug.glDetachShader = dbgDetachShader
 *     cgl_debug.glDisable = dbgDisable             # <<<<<<<<<<<<<<
 *     cgl_debug.glDisableVertexAttribArray = dbgDisableVertexAttribArray
 *     cgl_debug.glDrawArrays = dbgDrawArrays
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glDisable = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDisable;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1329
 *     cgl_debug.glDetachShader = dbgDetachShader
 *     cgl_debug.glDisable = dbgDisable
 *     cgl_debug.glDisableVertexAttribArray = dbgDisableVertexAttribArray             # <<<<<<<<<<<<<<
 *     cgl_debug.glDrawArrays = dbgDrawArrays
 *     cgl_debug.glDrawElements = dbgDrawElements
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glDisableVertexAttribArray = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDisableVertexAttribArray;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1330
 *     cgl_debug.glDisable = dbgDisable
 *     cgl_debug.glDisableVertexAttribArray = dbgDisableVertexAttribArray
 *     cgl_debug.glDrawArrays = dbgDrawArrays             # <<<<<<<<<<<<<<
 *     cgl_debug.glDrawElements = dbgDrawElements
 *     cgl_debug.glEnable = dbgEnable
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glDrawArrays = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDrawArrays;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1331
 *     cgl_debug.glDisableVertexAttribArray = dbgDisableVertexAttribArray
 *     cgl_debug.glDrawArrays = dbgDrawArrays
 *     cgl_debug.glDrawElements = dbgDrawElements             # <<<<<<<<<<<<<<
 *     cgl_debug.glEnable = dbgEnable
 *     cgl_debug.glEnableVertexAttribArray = dbgEnableVertexAttribArray
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glDrawElements = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgDrawElements;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1332
 *     cgl_debug.glDrawArrays = dbgDrawArrays
 *     cgl_debug.glDrawElements = dbgDrawElements
 *     cgl_debug.glEnable = dbgEnable             # <<<<<<<<<<<<<<
 *     cgl_debug.glEnableVertexAttribArray = dbgEnableVertexAttribArray
 *     cgl_debug.glFinish = dbgFinish
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glEnable = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgEnable;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1333
 *     cgl_debug.glDrawElements = dbgDrawElements
 *     cgl_debug.glEnable = dbgEnable
 *     cgl_debug.glEnableVertexAttribArray = dbgEnableVertexAttribArray             # <<<<<<<<<<<<<<
 *     cgl_debug.glFinish = dbgFinish
 *     cgl_debug.glFlush = dbgFlush
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glEnableVertexAttribArray = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgEnableVertexAttribArray;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1334
 *     cgl_debug.glEnable = dbgEnable
 *     cgl_debug.glEnableVertexAttribArray = dbgEnableVertexAttribArray
 *     cgl_debug.glFinish = dbgFinish             # <<<<<<<<<<<<<<
 *     cgl_debug.glFlush = dbgFlush
 *     cgl_debug.glFramebufferRenderbuffer = dbgFramebufferRenderbuffer
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glFinish = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgFinish;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1335
 *     cgl_debug.glEnableVertexAttribArray = dbgEnableVertexAttribArray
 *     cgl_debug.glFinish = dbgFinish
 *     cgl_debug.glFlush = dbgFlush             # <<<<<<<<<<<<<<
 *     cgl_debug.glFramebufferRenderbuffer = dbgFramebufferRenderbuffer
 *     cgl_debug.glFramebufferTexture2D = dbgFramebufferTexture2D
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glFlush = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgFlush;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1336
 *     cgl_debug.glFinish = dbgFinish
 *     cgl_debug.glFlush = dbgFlush
 *     cgl_debug.glFramebufferRenderbuffer = dbgFramebufferRenderbuffer             # <<<<<<<<<<<<<<
 *     cgl_debug.glFramebufferTexture2D = dbgFramebufferTexture2D
 *     cgl_debug.glFrontFace = dbgFrontFace
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glFramebufferRenderbuffer = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgFramebufferRenderbuffer;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1337
 *     cgl_debug.glFlush = dbgFlush
 *     cgl_debug.glFramebufferRenderbuffer = dbgFramebufferRenderbuffer
 *     cgl_debug.glFramebufferTexture2D = dbgFramebufferTexture2D             # <<<<<<<<<<<<<<
 *     cgl_debug.glFrontFace = dbgFrontFace
 *     cgl_debug.glGenBuffers = dbgGenBuffers
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glFramebufferTexture2D = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgFramebufferTexture2D;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1338
 *     cgl_debug.glFramebufferRenderbuffer = dbgFramebufferRenderbuffer
 *     cgl_debug.glFramebufferTexture2D = dbgFramebufferTexture2D
 *     cgl_debug.glFrontFace = dbgFrontFace             # <<<<<<<<<<<<<<
 *     cgl_debug.glGenBuffers = dbgGenBuffers
 *     cgl_debug.glGenerateMipmap = dbgGenerateMipmap
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glFrontFace = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgFrontFace;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1339
 *     cgl_debug.glFramebufferTexture2D = dbgFramebufferTexture2D
 *     cgl_debug.glFrontFace = dbgFrontFace
 *     cgl_debug.glGenBuffers = dbgGenBuffers             # <<<<<<<<<<<<<<
 *     cgl_debug.glGenerateMipmap = dbgGenerateMipmap
 *     cgl_debug.glGenFramebuffers = dbgGenFramebuffers
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glGenBuffers = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGenBuffers;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1340
 *     cgl_debug.glFrontFace = dbgFrontFace
 *     cgl_debug.glGenBuffers = dbgGenBuffers
 *     cgl_debug.glGenerateMipmap = dbgGenerateMipmap             # <<<<<<<<<<<<<<
 *     cgl_debug.glGenFramebuffers = dbgGenFramebuffers
 *     cgl_debug.glGenRenderbuffers = dbgGenRenderbuffers
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glGenerateMipmap = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGenerateMipmap;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1341
 *     cgl_debug.glGenBuffers = dbgGenBuffers
 *     cgl_debug.glGenerateMipmap = dbgGenerateMipmap
 *     cgl_debug.glGenFramebuffers = dbgGenFramebuffers             # <<<<<<<<<<<<<<
 *     cgl_debug.glGenRenderbuffers = dbgGenRenderbuffers
 *     cgl_debug.glGenTextures = dbgGenTextures
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glGenFramebuffers = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGenFramebuffers;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1342
 *     cgl_debug.glGenerateMipmap = dbgGenerateMipmap
 *     cgl_debug.glGenFramebuffers = dbgGenFramebuffers
 *     cgl_debug.glGenRenderbuffers = dbgGenRenderbuffers             # <<<<<<<<<<<<<<
 *     cgl_debug.glGenTextures = dbgGenTextures
 *     cgl_debug.glGetActiveAttrib = dbgGetActiveAttrib
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glGenRenderbuffers = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGenRenderbuffers;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1343
 *     cgl_debug.glGenFramebuffers = dbgGenFramebuffers
 *     cgl_debug.glGenRenderbuffers = dbgGenRenderbuffers
 *     cgl_debug.glGenTextures = dbgGenTextures             # <<<<<<<<<<<<<<
 *     cgl_debug.glGetActiveAttrib = dbgGetActiveAttrib
 *     cgl_debug.glGetActiveUniform = dbgGetActiveUniform
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glGenTextures = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGenTextures;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1344
 *     cgl_debug.glGenRenderbuffers = dbgGenRenderbuffers
 *     cgl_debug.glGenTextures = dbgGenTextures
 *     cgl_debug.glGetActiveAttrib = dbgGetActiveAttrib             # <<<<<<<<<<<<<<
 *     cgl_debug.glGetActiveUniform = dbgGetActiveUniform
 *     cgl_debug.glGetAttachedShaders = dbgGetAttachedShaders
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glGetActiveAttrib = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetActiveAttrib;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1345
 *     cgl_debug.glGenTextures = dbgGenTextures
 *     cgl_debug.glGetActiveAttrib = dbgGetActiveAttrib
 *     cgl_debug.glGetActiveUniform = dbgGetActiveUniform             # <<<<<<<<<<<<<<
 *     cgl_debug.glGetAttachedShaders = dbgGetAttachedShaders
 *     cgl_debug.glGetAttribLocation = dbgGetAttribLocation
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glGetActiveUniform = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetActiveUniform;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1346
 *     cgl_debug.glGetActiveAttrib = dbgGetActiveAttrib
 *     cgl_debug.glGetActiveUniform = dbgGetActiveUniform
 *     cgl_debug.glGetAttachedShaders = dbgGetAttachedShaders             # <<<<<<<<<<<<<<
 *     cgl_debug.glGetAttribLocation = dbgGetAttribLocation
 *     cgl_debug.glGetBooleanv = dbgGetBooleanv
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glGetAttachedShaders = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetAttachedShaders;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1347
 *     cgl_debug.glGetActiveUniform = dbgGetActiveUniform
 *     cgl_debug.glGetAttachedShaders = dbgGetAttachedShaders
 *     cgl_debug.glGetAttribLocation = dbgGetAttribLocation             # <<<<<<<<<<<<<<
 *     cgl_debug.glGetBooleanv = dbgGetBooleanv
 *     cgl_debug.glGetBufferParameteriv = dbgGetBufferParameteriv
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glGetAttribLocation = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetAttribLocation;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1348
 *     cgl_debug.glGetAttachedShaders = dbgGetAttachedShaders
 *     cgl_debug.glGetAttribLocation = dbgGetAttribLocation
 *     cgl_debug.glGetBooleanv = dbgGetBooleanv             # <<<<<<<<<<<<<<
 *     cgl_debug.glGetBufferParameteriv = dbgGetBufferParameteriv
 *     cgl_debug.glGetError = dbgGetError
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glGetBooleanv = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetBooleanv;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1349
 *     cgl_debug.glGetAttribLocation = dbgGetAttribLocation
 *     cgl_debug.glGetBooleanv = dbgGetBooleanv
 *     cgl_debug.glGetBufferParameteriv = dbgGetBufferParameteriv             # <<<<<<<<<<<<<<
 *     cgl_debug.glGetError = dbgGetError
 *     cgl_debug.glGetFloatv = dbgGetFloatv
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glGetBufferParameteriv = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetBufferParameteriv;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1350
 *     cgl_debug.glGetBooleanv = dbgGetBooleanv
 *     cgl_debug.glGetBufferParameteriv = dbgGetBufferParameteriv
 *     cgl_debug.glGetError = dbgGetError             # <<<<<<<<<<<<<<
 *     cgl_debug.glGetFloatv = dbgGetFloatv
 *     cgl_debug.glGetFramebufferAttachmentParameteriv = dbgGetFramebufferAttachmentParameteriv
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glGetError = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetError;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1351
 *     cgl_debug.glGetBufferParameteriv = dbgGetBufferParameteriv
 *     cgl_debug.glGetError = dbgGetError
 *     cgl_debug.glGetFloatv = dbgGetFloatv             # <<<<<<<<<<<<<<
 *     cgl_debug.glGetFramebufferAttachmentParameteriv = dbgGetFramebufferAttachmentParameteriv
 *     cgl_debug.glGetIntegerv = dbgGetIntegerv
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glGetFloatv = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetFloatv;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1352
 *     cgl_debug.glGetError = dbgGetError
 *     cgl_debug.glGetFloatv = dbgGetFloatv
 *     cgl_debug.glGetFramebufferAttachmentParameteriv = dbgGetFramebufferAttachmentParameteriv             # <<<<<<<<<<<<<<
 *     cgl_debug.glGetIntegerv = dbgGetIntegerv
 *     cgl_debug.glGetProgramInfoLog = dbgGetProgramInfoLog
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glGetFramebufferAttachmentParameteriv = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetFramebufferAttachmentParameteriv;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1353
 *     cgl_debug.glGetFloatv = dbgGetFloatv
 *     cgl_debug.glGetFramebufferAttachmentParameteriv = dbgGetFramebufferAttachmentParameteriv
 *     cgl_debug.glGetIntegerv = dbgGetIntegerv             # <<<<<<<<<<<<<<
 *     cgl_debug.glGetProgramInfoLog = dbgGetProgramInfoLog
 *     cgl_debug.glGetProgramiv = dbgGetProgramiv
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glGetIntegerv = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetIntegerv;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1354
 *     cgl_debug.glGetFramebufferAttachmentParameteriv = dbgGetFramebufferAttachmentParameteriv
 *     cgl_debug.glGetIntegerv = dbgGetIntegerv
 *     cgl_debug.glGetProgramInfoLog = dbgGetProgramInfoLog             # <<<<<<<<<<<<<<
 *     cgl_debug.glGetProgramiv = dbgGetProgramiv
 *     cgl_debug.glGetRenderbufferParameteriv = dbgGetRenderbufferParameteriv
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glGetProgramInfoLog = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetProgramInfoLog;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1355
 *     cgl_debug.glGetIntegerv = dbgGetIntegerv
 *     cgl_debug.glGetProgramInfoLog = dbgGetProgramInfoLog
 *     cgl_debug.glGetProgramiv = dbgGetProgramiv             # <<<<<<<<<<<<<<
 *     cgl_debug.glGetRenderbufferParameteriv = dbgGetRenderbufferParameteriv
 *     cgl_debug.glGetShaderInfoLog = dbgGetShaderInfoLog
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glGetProgramiv = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetProgramiv;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1356
 *     cgl_debug.glGetProgramInfoLog = dbgGetProgramInfoLog
 *     cgl_debug.glGetProgramiv = dbgGetProgramiv
 *     cgl_debug.glGetRenderbufferParameteriv = dbgGetRenderbufferParameteriv             # <<<<<<<<<<<<<<
 *     cgl_debug.glGetShaderInfoLog = dbgGetShaderInfoLog
 *     cgl_debug.glGetShaderiv = dbgGetShaderiv
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glGetRenderbufferParameteriv = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetRenderbufferParameteriv;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1357
 *     cgl_debug.glGetProgramiv = dbgGetProgramiv
 *     cgl_debug.glGetRenderbufferParameteriv = dbgGetRenderbufferParameteriv
 *     cgl_debug.glGetShaderInfoLog = dbgGetShaderInfoLog             # <<<<<<<<<<<<<<
 *     cgl_debug.glGetShaderiv = dbgGetShaderiv
 *     cgl_debug.glGetShaderSource = dbgGetShaderSource
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glGetShaderInfoLog = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetShaderInfoLog;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1358
 *     cgl_debug.glGetRenderbufferParameteriv = dbgGetRenderbufferParameteriv
 *     cgl_debug.glGetShaderInfoLog = dbgGetShaderInfoLog
 *     cgl_debug.glGetShaderiv = dbgGetShaderiv             # <<<<<<<<<<<<<<
 *     cgl_debug.glGetShaderSource = dbgGetShaderSource
 *     cgl_debug.glGetString = dbgGetString
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glGetShaderiv = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetShaderiv;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1359
 *     cgl_debug.glGetShaderInfoLog = dbgGetShaderInfoLog
 *     cgl_debug.glGetShaderiv = dbgGetShaderiv
 *     cgl_debug.glGetShaderSource = dbgGetShaderSource             # <<<<<<<<<<<<<<
 *     cgl_debug.glGetString = dbgGetString
 *     cgl_debug.glGetTexParameterfv = dbgGetTexParameterfv
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glGetShaderSource = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetShaderSource;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1360
 *     cgl_debug.glGetShaderiv = dbgGetShaderiv
 *     cgl_debug.glGetShaderSource = dbgGetShaderSource
 *     cgl_debug.glGetString = dbgGetString             # <<<<<<<<<<<<<<
 *     cgl_debug.glGetTexParameterfv = dbgGetTexParameterfv
 *     cgl_debug.glGetTexParameteriv = dbgGetTexParameteriv
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glGetString = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetString;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1361
 *     cgl_debug.glGetShaderSource = dbgGetShaderSource
 *     cgl_debug.glGetString = dbgGetString
 *     cgl_debug.glGetTexParameterfv = dbgGetTexParameterfv             # <<<<<<<<<<<<<<
 *     cgl_debug.glGetTexParameteriv = dbgGetTexParameteriv
 *     cgl_debug.glGetUniformfv = dbgGetUniformfv
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glGetTexParameterfv = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetTexParameterfv;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1362
 *     cgl_debug.glGetString = dbgGetString
 *     cgl_debug.glGetTexParameterfv = dbgGetTexParameterfv
 *     cgl_debug.glGetTexParameteriv = dbgGetTexParameteriv             # <<<<<<<<<<<<<<
 *     cgl_debug.glGetUniformfv = dbgGetUniformfv
 *     cgl_debug.glGetUniformiv = dbgGetUniformiv
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glGetTexParameteriv = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetTexParameteriv;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1363
 *     cgl_debug.glGetTexParameterfv = dbgGetTexParameterfv
 *     cgl_debug.glGetTexParameteriv = dbgGetTexParameteriv
 *     cgl_debug.glGetUniformfv = dbgGetUniformfv             # <<<<<<<<<<<<<<
 *     cgl_debug.glGetUniformiv = dbgGetUniformiv
 *     cgl_debug.glGetUniformLocation = dbgGetUniformLocation
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glGetUniformfv = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetUniformfv;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1364
 *     cgl_debug.glGetTexParameteriv = dbgGetTexParameteriv
 *     cgl_debug.glGetUniformfv = dbgGetUniformfv
 *     cgl_debug.glGetUniformiv = dbgGetUniformiv             # <<<<<<<<<<<<<<
 *     cgl_debug.glGetUniformLocation = dbgGetUniformLocation
 *     cgl_debug.glGetVertexAttribfv = dbgGetVertexAttribfv
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glGetUniformiv = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetUniformiv;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1365
 *     cgl_debug.glGetUniformfv = dbgGetUniformfv
 *     cgl_debug.glGetUniformiv = dbgGetUniformiv
 *     cgl_debug.glGetUniformLocation = dbgGetUniformLocation             # <<<<<<<<<<<<<<
 *     cgl_debug.glGetVertexAttribfv = dbgGetVertexAttribfv
 *     cgl_debug.glGetVertexAttribiv = dbgGetVertexAttribiv
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glGetUniformLocation = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetUniformLocation;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1366
 *     cgl_debug.glGetUniformiv = dbgGetUniformiv
 *     cgl_debug.glGetUniformLocation = dbgGetUniformLocation
 *     cgl_debug.glGetVertexAttribfv = dbgGetVertexAttribfv             # <<<<<<<<<<<<<<
 *     cgl_debug.glGetVertexAttribiv = dbgGetVertexAttribiv
 *     cgl_debug.glHint = dbgHint
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glGetVertexAttribfv = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetVertexAttribfv;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1367
 *     cgl_debug.glGetUniformLocation = dbgGetUniformLocation
 *     cgl_debug.glGetVertexAttribfv = dbgGetVertexAttribfv
 *     cgl_debug.glGetVertexAttribiv = dbgGetVertexAttribiv             # <<<<<<<<<<<<<<
 *     cgl_debug.glHint = dbgHint
 *     cgl_debug.glIsBuffer = dbgIsBuffer
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glGetVertexAttribiv = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgGetVertexAttribiv;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1368
 *     cgl_debug.glGetVertexAttribfv = dbgGetVertexAttribfv
 *     cgl_debug.glGetVertexAttribiv = dbgGetVertexAttribiv
 *     cgl_debug.glHint = dbgHint             # <<<<<<<<<<<<<<
 *     cgl_debug.glIsBuffer = dbgIsBuffer
 *     cgl_debug.glIsEnabled = dbgIsEnabled
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glHint = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgHint;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1369
 *     cgl_debug.glGetVertexAttribiv = dbgGetVertexAttribiv
 *     cgl_debug.glHint = dbgHint
 *     cgl_debug.glIsBuffer = dbgIsBuffer             # <<<<<<<<<<<<<<
 *     cgl_debug.glIsEnabled = dbgIsEnabled
 *     cgl_debug.glIsFramebuffer = dbgIsFramebuffer
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glIsBuffer = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgIsBuffer;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1370
 *     cgl_debug.glHint = dbgHint
 *     cgl_debug.glIsBuffer = dbgIsBuffer
 *     cgl_debug.glIsEnabled = dbgIsEnabled             # <<<<<<<<<<<<<<
 *     cgl_debug.glIsFramebuffer = dbgIsFramebuffer
 *     cgl_debug.glIsProgram = dbgIsProgram
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glIsEnabled = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgIsEnabled;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1371
 *     cgl_debug.glIsBuffer = dbgIsBuffer
 *     cgl_debug.glIsEnabled = dbgIsEnabled
 *     cgl_debug.glIsFramebuffer = dbgIsFramebuffer             # <<<<<<<<<<<<<<
 *     cgl_debug.glIsProgram = dbgIsProgram
 *     cgl_debug.glIsRenderbuffer = dbgIsRenderbuffer
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glIsFramebuffer = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgIsFramebuffer;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1372
 *     cgl_debug.glIsEnabled = dbgIsEnabled
 *     cgl_debug.glIsFramebuffer = dbgIsFramebuffer
 *     cgl_debug.glIsProgram = dbgIsProgram             # <<<<<<<<<<<<<<
 *     cgl_debug.glIsRenderbuffer = dbgIsRenderbuffer
 *     cgl_debug.glIsShader = dbgIsShader
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glIsProgram = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgIsProgram;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1373
 *     cgl_debug.glIsFramebuffer = dbgIsFramebuffer
 *     cgl_debug.glIsProgram = dbgIsProgram
 *     cgl_debug.glIsRenderbuffer = dbgIsRenderbuffer             # <<<<<<<<<<<<<<
 *     cgl_debug.glIsShader = dbgIsShader
 *     cgl_debug.glIsTexture = dbgIsTexture
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glIsRenderbuffer = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgIsRenderbuffer;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1374
 *     cgl_debug.glIsProgram = dbgIsProgram
 *     cgl_debug.glIsRenderbuffer = dbgIsRenderbuffer
 *     cgl_debug.glIsShader = dbgIsShader             # <<<<<<<<<<<<<<
 *     cgl_debug.glIsTexture = dbgIsTexture
 *     cgl_debug.glLineWidth = dbgLineWidth
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glIsShader = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgIsShader;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1375
 *     cgl_debug.glIsRenderbuffer = dbgIsRenderbuffer
 *     cgl_debug.glIsShader = dbgIsShader
 *     cgl_debug.glIsTexture = dbgIsTexture             # <<<<<<<<<<<<<<
 *     cgl_debug.glLineWidth = dbgLineWidth
 *     cgl_debug.glLinkProgram = dbgLinkProgram
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glIsTexture = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgIsTexture;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1376
 *     cgl_debug.glIsShader = dbgIsShader
 *     cgl_debug.glIsTexture = dbgIsTexture
 *     cgl_debug.glLineWidth = dbgLineWidth             # <<<<<<<<<<<<<<
 *     cgl_debug.glLinkProgram = dbgLinkProgram
 *     cgl_debug.glPixelStorei = dbgPixelStorei
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glLineWidth = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgLineWidth;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1377
 *     cgl_debug.glIsTexture = dbgIsTexture
 *     cgl_debug.glLineWidth = dbgLineWidth
 *     cgl_debug.glLinkProgram = dbgLinkProgram             # <<<<<<<<<<<<<<
 *     cgl_debug.glPixelStorei = dbgPixelStorei
 *     cgl_debug.glPolygonOffset = dbgPolygonOffset
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glLinkProgram = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgLinkProgram;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1378
 *     cgl_debug.glLineWidth = dbgLineWidth
 *     cgl_debug.glLinkProgram = dbgLinkProgram
 *     cgl_debug.glPixelStorei = dbgPixelStorei             # <<<<<<<<<<<<<<
 *     cgl_debug.glPolygonOffset = dbgPolygonOffset
 *     cgl_debug.glReadPixels = dbgReadPixels
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glPixelStorei = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgPixelStorei;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1379
 *     cgl_debug.glLinkProgram = dbgLinkProgram
 *     cgl_debug.glPixelStorei = dbgPixelStorei
 *     cgl_debug.glPolygonOffset = dbgPolygonOffset             # <<<<<<<<<<<<<<
 *     cgl_debug.glReadPixels = dbgReadPixels
 *     cgl_debug.glRenderbufferStorage = dbgRenderbufferStorage
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glPolygonOffset = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgPolygonOffset;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1380
 *     cgl_debug.glPixelStorei = dbgPixelStorei
 *     cgl_debug.glPolygonOffset = dbgPolygonOffset
 *     cgl_debug.glReadPixels = dbgReadPixels             # <<<<<<<<<<<<<<
 *     cgl_debug.glRenderbufferStorage = dbgRenderbufferStorage
 *     cgl_debug.glSampleCoverage = dbgSampleCoverage
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glReadPixels = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgReadPixels;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1381
 *     cgl_debug.glPolygonOffset = dbgPolygonOffset
 *     cgl_debug.glReadPixels = dbgReadPixels
 *     cgl_debug.glRenderbufferStorage = dbgRenderbufferStorage             # <<<<<<<<<<<<<<
 *     cgl_debug.glSampleCoverage = dbgSampleCoverage
 *     cgl_debug.glScissor = dbgScissor
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glRenderbufferStorage = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgRenderbufferStorage;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1382
 *     cgl_debug.glReadPixels = dbgReadPixels
 *     cgl_debug.glRenderbufferStorage = dbgRenderbufferStorage
 *     cgl_debug.glSampleCoverage = dbgSampleCoverage             # <<<<<<<<<<<<<<
 *     cgl_debug.glScissor = dbgScissor
 *     # cgl_debug.glShaderBinary = dbgShaderBinary
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glSampleCoverage = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgSampleCoverage;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1383
 *     cgl_debug.glRenderbufferStorage = dbgRenderbufferStorage
 *     cgl_debug.glSampleCoverage = dbgSampleCoverage
 *     cgl_debug.glScissor = dbgScissor             # <<<<<<<<<<<<<<
 *     # cgl_debug.glShaderBinary = dbgShaderBinary
 *     cgl_debug.glShaderSource = dbgShaderSource
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glScissor = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgScissor;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1385
 *     cgl_debug.glScissor = dbgScissor
 *     # cgl_debug.glShaderBinary = dbgShaderBinary
 *     cgl_debug.glShaderSource = dbgShaderSource             # <<<<<<<<<<<<<<
 *     cgl_debug.glStencilFunc = dbgStencilFunc
 *     cgl_debug.glStencilFuncSeparate = dbgStencilFuncSeparate
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glShaderSource = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgShaderSource;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1386
 *     # cgl_debug.glShaderBinary = dbgShaderBinary
 *     cgl_debug.glShaderSource = dbgShaderSource
 *     cgl_debug.glStencilFunc = dbgStencilFunc             # <<<<<<<<<<<<<<
 *     cgl_debug.glStencilFuncSeparate = dbgStencilFuncSeparate
 *     cgl_debug.glStencilMask = dbgStencilMask
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glStencilFunc = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgStencilFunc;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1387
 *     cgl_debug.glShaderSource = dbgShaderSource
 *     cgl_debug.glStencilFunc = dbgStencilFunc
 *     cgl_debug.glStencilFuncSeparate = dbgStencilFuncSeparate             # <<<<<<<<<<<<<<
 *     cgl_debug.glStencilMask = dbgStencilMask
 *     cgl_debug.glStencilMaskSeparate = dbgStencilMaskSeparate
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glStencilFuncSeparate = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgStencilFuncSeparate;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1388
 *     cgl_debug.glStencilFunc = dbgStencilFunc
 *     cgl_debug.glStencilFuncSeparate = dbgStencilFuncSeparate
 *     cgl_debug.glStencilMask = dbgStencilMask             # <<<<<<<<<<<<<<
 *     cgl_debug.glStencilMaskSeparate = dbgStencilMaskSeparate
 *     cgl_debug.glStencilOp = dbgStencilOp
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glStencilMask = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgStencilMask;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1389
 *     cgl_debug.glStencilFuncSeparate = dbgStencilFuncSeparate
 *     cgl_debug.glStencilMask = dbgStencilMask
 *     cgl_debug.glStencilMaskSeparate = dbgStencilMaskSeparate             # <<<<<<<<<<<<<<
 *     cgl_debug.glStencilOp = dbgStencilOp
 *     cgl_debug.glStencilOpSeparate = dbgStencilOpSeparate
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glStencilMaskSeparate = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgStencilMaskSeparate;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1390
 *     cgl_debug.glStencilMask = dbgStencilMask
 *     cgl_debug.glStencilMaskSeparate = dbgStencilMaskSeparate
 *     cgl_debug.glStencilOp = dbgStencilOp             # <<<<<<<<<<<<<<
 *     cgl_debug.glStencilOpSeparate = dbgStencilOpSeparate
 *     cgl_debug.glTexImage2D = dbgTexImage2D
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glStencilOp = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgStencilOp;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1391
 *     cgl_debug.glStencilMaskSeparate = dbgStencilMaskSeparate
 *     cgl_debug.glStencilOp = dbgStencilOp
 *     cgl_debug.glStencilOpSeparate = dbgStencilOpSeparate             # <<<<<<<<<<<<<<
 *     cgl_debug.glTexImage2D = dbgTexImage2D
 *     cgl_debug.glTexParameterf = dbgTexParameterf
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glStencilOpSeparate = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgStencilOpSeparate;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1392
 *     cgl_debug.glStencilOp = dbgStencilOp
 *     cgl_debug.glStencilOpSeparate = dbgStencilOpSeparate
 *     cgl_debug.glTexImage2D = dbgTexImage2D             # <<<<<<<<<<<<<<
 *     cgl_debug.glTexParameterf = dbgTexParameterf
 *     cgl_debug.glTexParameteri = dbgTexParameteri
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glTexImage2D = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgTexImage2D;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1393
 *     cgl_debug.glStencilOpSeparate = dbgStencilOpSeparate
 *     cgl_debug.glTexImage2D = dbgTexImage2D
 *     cgl_debug.glTexParameterf = dbgTexParameterf             # <<<<<<<<<<<<<<
 *     cgl_debug.glTexParameteri = dbgTexParameteri
 *     cgl_debug.glTexSubImage2D = dbgTexSubImage2D
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glTexParameterf = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgTexParameterf;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1394
 *     cgl_debug.glTexImage2D = dbgTexImage2D
 *     cgl_debug.glTexParameterf = dbgTexParameterf
 *     cgl_debug.glTexParameteri = dbgTexParameteri             # <<<<<<<<<<<<<<
 *     cgl_debug.glTexSubImage2D = dbgTexSubImage2D
 *     cgl_debug.glUniform1f = dbgUniform1f
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glTexParameteri = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgTexParameteri;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1395
 *     cgl_debug.glTexParameterf = dbgTexParameterf
 *     cgl_debug.glTexParameteri = dbgTexParameteri
 *     cgl_debug.glTexSubImage2D = dbgTexSubImage2D             # <<<<<<<<<<<<<<
 *     cgl_debug.glUniform1f = dbgUniform1f
 *     cgl_debug.glUniform1fv = dbgUniform1fv
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glTexSubImage2D = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgTexSubImage2D;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1396
 *     cgl_debug.glTexParameteri = dbgTexParameteri
 *     cgl_debug.glTexSubImage2D = dbgTexSubImage2D
 *     cgl_debug.glUniform1f = dbgUniform1f             # <<<<<<<<<<<<<<
 *     cgl_debug.glUniform1fv = dbgUniform1fv
 *     cgl_debug.glUniform1i = dbgUniform1i
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glUniform1f = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform1f;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1397
 *     cgl_debug.glTexSubImage2D = dbgTexSubImage2D
 *     cgl_debug.glUniform1f = dbgUniform1f
 *     cgl_debug.glUniform1fv = dbgUniform1fv             # <<<<<<<<<<<<<<
 *     cgl_debug.glUniform1i = dbgUniform1i
 *     cgl_debug.glUniform1iv = dbgUniform1iv
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glUniform1fv = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform1fv;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1398
 *     cgl_debug.glUniform1f = dbgUniform1f
 *     cgl_debug.glUniform1fv = dbgUniform1fv
 *     cgl_debug.glUniform1i = dbgUniform1i             # <<<<<<<<<<<<<<
 *     cgl_debug.glUniform1iv = dbgUniform1iv
 *     cgl_debug.glUniform2f = dbgUniform2f
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glUniform1i = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform1i;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1399
 *     cgl_debug.glUniform1fv = dbgUniform1fv
 *     cgl_debug.glUniform1i = dbgUniform1i
 *     cgl_debug.glUniform1iv = dbgUniform1iv             # <<<<<<<<<<<<<<
 *     cgl_debug.glUniform2f = dbgUniform2f
 *     cgl_debug.glUniform2fv = dbgUniform2fv
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glUniform1iv = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform1iv;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1400
 *     cgl_debug.glUniform1i = dbgUniform1i
 *     cgl_debug.glUniform1iv = dbgUniform1iv
 *     cgl_debug.glUniform2f = dbgUniform2f             # <<<<<<<<<<<<<<
 *     cgl_debug.glUniform2fv = dbgUniform2fv
 *     cgl_debug.glUniform2i = dbgUniform2i
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glUniform2f = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform2f;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1401
 *     cgl_debug.glUniform1iv = dbgUniform1iv
 *     cgl_debug.glUniform2f = dbgUniform2f
 *     cgl_debug.glUniform2fv = dbgUniform2fv             # <<<<<<<<<<<<<<
 *     cgl_debug.glUniform2i = dbgUniform2i
 *     cgl_debug.glUniform2iv = dbgUniform2iv
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glUniform2fv = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform2fv;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1402
 *     cgl_debug.glUniform2f = dbgUniform2f
 *     cgl_debug.glUniform2fv = dbgUniform2fv
 *     cgl_debug.glUniform2i = dbgUniform2i             # <<<<<<<<<<<<<<
 *     cgl_debug.glUniform2iv = dbgUniform2iv
 *     cgl_debug.glUniform3f = dbgUniform3f
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glUniform2i = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform2i;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1403
 *     cgl_debug.glUniform2fv = dbgUniform2fv
 *     cgl_debug.glUniform2i = dbgUniform2i
 *     cgl_debug.glUniform2iv = dbgUniform2iv             # <<<<<<<<<<<<<<
 *     cgl_debug.glUniform3f = dbgUniform3f
 *     cgl_debug.glUniform3fv = dbgUniform3fv
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glUniform2iv = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform2iv;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1404
 *     cgl_debug.glUniform2i = dbgUniform2i
 *     cgl_debug.glUniform2iv = dbgUniform2iv
 *     cgl_debug.glUniform3f = dbgUniform3f             # <<<<<<<<<<<<<<
 *     cgl_debug.glUniform3fv = dbgUniform3fv
 *     cgl_debug.glUniform3i = dbgUniform3i
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glUniform3f = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform3f;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1405
 *     cgl_debug.glUniform2iv = dbgUniform2iv
 *     cgl_debug.glUniform3f = dbgUniform3f
 *     cgl_debug.glUniform3fv = dbgUniform3fv             # <<<<<<<<<<<<<<
 *     cgl_debug.glUniform3i = dbgUniform3i
 *     cgl_debug.glUniform3iv = dbgUniform3iv
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glUniform3fv = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform3fv;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1406
 *     cgl_debug.glUniform3f = dbgUniform3f
 *     cgl_debug.glUniform3fv = dbgUniform3fv
 *     cgl_debug.glUniform3i = dbgUniform3i             # <<<<<<<<<<<<<<
 *     cgl_debug.glUniform3iv = dbgUniform3iv
 *     cgl_debug.glUniform4f = dbgUniform4f
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glUniform3i = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform3i;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1407
 *     cgl_debug.glUniform3fv = dbgUniform3fv
 *     cgl_debug.glUniform3i = dbgUniform3i
 *     cgl_debug.glUniform3iv = dbgUniform3iv             # <<<<<<<<<<<<<<
 *     cgl_debug.glUniform4f = dbgUniform4f
 *     cgl_debug.glUniform4fv = dbgUniform4fv
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glUniform3iv = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform3iv;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1408
 *     cgl_debug.glUniform3i = dbgUniform3i
 *     cgl_debug.glUniform3iv = dbgUniform3iv
 *     cgl_debug.glUniform4f = dbgUniform4f             # <<<<<<<<<<<<<<
 *     cgl_debug.glUniform4fv = dbgUniform4fv
 *     cgl_debug.glUniform4i = dbgUniform4i
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glUniform4f = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform4f;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1409
 *     cgl_debug.glUniform3iv = dbgUniform3iv
 *     cgl_debug.glUniform4f = dbgUniform4f
 *     cgl_debug.glUniform4fv = dbgUniform4fv             # <<<<<<<<<<<<<<
 *     cgl_debug.glUniform4i = dbgUniform4i
 *     cgl_debug.glUniform4iv = dbgUniform4iv
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glUniform4fv = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform4fv;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1410
 *     cgl_debug.glUniform4f = dbgUniform4f
 *     cgl_debug.glUniform4fv = dbgUniform4fv
 *     cgl_debug.glUniform4i = dbgUniform4i             # <<<<<<<<<<<<<<
 *     cgl_debug.glUniform4iv = dbgUniform4iv
 *     cgl_debug.glUniformMatrix4fv = dbgUniformMatrix4fv
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glUniform4i = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform4i;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1411
 *     cgl_debug.glUniform4fv = dbgUniform4fv
 *     cgl_debug.glUniform4i = dbgUniform4i
 *     cgl_debug.glUniform4iv = dbgUniform4iv             # <<<<<<<<<<<<<<
 *     cgl_debug.glUniformMatrix4fv = dbgUniformMatrix4fv
 *     cgl_debug.glUseProgram = dbgUseProgram
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glUniform4iv = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniform4iv;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1412
 *     cgl_debug.glUniform4i = dbgUniform4i
 *     cgl_debug.glUniform4iv = dbgUniform4iv
 *     cgl_debug.glUniformMatrix4fv = dbgUniformMatrix4fv             # <<<<<<<<<<<<<<
 *     cgl_debug.glUseProgram = dbgUseProgram
 *     cgl_debug.glValidateProgram = dbgValidateProgram
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glUniformMatrix4fv = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUniformMatrix4fv;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1413
 *     cgl_debug.glUniform4iv = dbgUniform4iv
 *     cgl_debug.glUniformMatrix4fv = dbgUniformMatrix4fv
 *     cgl_debug.glUseProgram = dbgUseProgram             # <<<<<<<<<<<<<<
 *     cgl_debug.glValidateProgram = dbgValidateProgram
 *     cgl_debug.glVertexAttrib1f = dbgVertexAttrib1f
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glUseProgram = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgUseProgram;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1414
 *     cgl_debug.glUniformMatrix4fv = dbgUniformMatrix4fv
 *     cgl_debug.glUseProgram = dbgUseProgram
 *     cgl_debug.glValidateProgram = dbgValidateProgram             # <<<<<<<<<<<<<<
 *     cgl_debug.glVertexAttrib1f = dbgVertexAttrib1f
 *     cgl_debug.glVertexAttrib2f = dbgVertexAttrib2f
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glValidateProgram = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgValidateProgram;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1415
 *     cgl_debug.glUseProgram = dbgUseProgram
 *     cgl_debug.glValidateProgram = dbgValidateProgram
 *     cgl_debug.glVertexAttrib1f = dbgVertexAttrib1f             # <<<<<<<<<<<<<<
 *     cgl_debug.glVertexAttrib2f = dbgVertexAttrib2f
 *     cgl_debug.glVertexAttrib3f = dbgVertexAttrib3f
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glVertexAttrib1f = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgVertexAttrib1f;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1416
 *     cgl_debug.glValidateProgram = dbgValidateProgram
 *     cgl_debug.glVertexAttrib1f = dbgVertexAttrib1f
 *     cgl_debug.glVertexAttrib2f = dbgVertexAttrib2f             # <<<<<<<<<<<<<<
 *     cgl_debug.glVertexAttrib3f = dbgVertexAttrib3f
 *     cgl_debug.glVertexAttrib4f = dbgVertexAttrib4f
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glVertexAttrib2f = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgVertexAttrib2f;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1417
 *     cgl_debug.glVertexAttrib1f = dbgVertexAttrib1f
 *     cgl_debug.glVertexAttrib2f = dbgVertexAttrib2f
 *     cgl_debug.glVertexAttrib3f = dbgVertexAttrib3f             # <<<<<<<<<<<<<<
 *     cgl_debug.glVertexAttrib4f = dbgVertexAttrib4f
 *     cgl_debug.glVertexAttribPointer = dbgVertexAttribPointer
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glVertexAttrib3f = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgVertexAttrib3f;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1418
 *     cgl_debug.glVertexAttrib2f = dbgVertexAttrib2f
 *     cgl_debug.glVertexAttrib3f = dbgVertexAttrib3f
 *     cgl_debug.glVertexAttrib4f = dbgVertexAttrib4f             # <<<<<<<<<<<<<<
 *     cgl_debug.glVertexAttribPointer = dbgVertexAttribPointer
 *     cgl_debug.glViewport = dbgViewport
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glVertexAttrib4f = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgVertexAttrib4f;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1419
 *     cgl_debug.glVertexAttrib3f = dbgVertexAttrib3f
 *     cgl_debug.glVertexAttrib4f = dbgVertexAttrib4f
 *     cgl_debug.glVertexAttribPointer = dbgVertexAttribPointer             # <<<<<<<<<<<<<<
 *     cgl_debug.glViewport = dbgViewport
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glVertexAttribPointer = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgVertexAttribPointer;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1420
 *     cgl_debug.glVertexAttrib4f = dbgVertexAttrib4f
 *     cgl_debug.glVertexAttribPointer = dbgVertexAttribPointer
 *     cgl_debug.glViewport = dbgViewport             # <<<<<<<<<<<<<<
 * 
 *     global cgl_native
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug->glViewport = __pyx_f_4kivy_8graphics_11cgl_backend_9cgl_debug_dbgViewport;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1423
 * 
 *     global cgl_native
 *     cgl_native = cgl_get_context()             # <<<<<<<<<<<<<<
 *     cgl_set_context(cgl_debug)
*/
  __pyx_t_1 = __pyx_f_4kivy_8graphics_3cgl_cgl_get_context(); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1423, __pyx_L1_error)
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_native = __pyx_t_1;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1424
 *     global cgl_native
 *     cgl_native = cgl_get_context()
 *     cgl_set_context(cgl_debug)             # <<<<<<<<<<<<<<
*/
  __pyx_f_4kivy_8graphics_3cgl_cgl_set_context(__pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug); if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1424, __pyx_L1_error)

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1291
 * 
 * 
 * def init_backend_debug():             # <<<<<<<<<<<<<<
 *     cgl_debug.glActiveTexture = dbgActiveTexture
 *     cgl_debug.glAttachShader = dbgAttachShader
*/

  /* function exit code */
  __pyx_r = Py_None; __Pyx_INCREF(Py_None);
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_AddTraceback("kivy.graphics.cgl_backend.cgl_debug.init_backend_debug", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}
/* #### Code section: module_exttypes ### */

static PyMethodDef __pyx_methods[] = {
  {0, 0, 0, 0}
};
/* #### Code section: initfunc_declarations ### */
static CYTHON_SMALL_CODE int __Pyx_InitCachedBuiltins(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_InitCachedConstants(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_InitGlobals(void); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_InitConstants(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_global_init_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_variable_export_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_function_export_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_type_import_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_variable_import_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_modinit_function_import_code(__pyx_mstatetype *__pyx_mstate); /*proto*/
static CYTHON_SMALL_CODE int __Pyx_CreateCodeObjects(__pyx_mstatetype *__pyx_mstate); /*proto*/
/* #### Code section: init_module ### */

static int __Pyx_modinit_global_init_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_global_init_code", 0);
  /*--- Global init code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_variable_export_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_variable_export_code", 0);
  /*--- Variable export code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_function_export_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_function_export_code", 0);
  /*--- Function export code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_type_init_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_type_init_code", 0);
  /*--- Type init code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_type_import_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_modinit_type_import_code", 0);
  /*--- Type import code ---*/
  __Pyx_RefNannyFinishContext();
  return 0;
}

static int __Pyx_modinit_variable_import_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_modinit_variable_import_code", 0);
  /*--- Variable import code ---*/
  {
    __pyx_t_1 = PyImport_ImportModule("kivy.graphics.cgl"); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    const char * __pyx_import_signature = __Pyx_PyBytes_AsString(__pyx_mstate_global->__pyx_kp_b_pyx_t_4kivy_8graphics_3cgl_GLE);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (unlikely(!__pyx_import_signature)) __PYX_ERR(0, 1, __pyx_L1_error)
    #endif
    const char * __pyx_import_name = __pyx_import_signature + 71;
    void **const __pyx_import_pointers[] = {(void **)&__pyx_vp_4kivy_8graphics_3cgl_cgl, (void **)&__pyx_vp_4kivy_8graphics_3cgl_pi, (void **)&__pyx_vp_4kivy_8graphics_3cgl_kivy_opengl_es2, (void **)&__pyx_vp_4kivy_8graphics_3cgl_verify_gl_main_thread, (void **)&__pyx_vp_4kivy_8graphics_3cgl_initialized_tid, (void **) NULL};
    void **const *__pyx_import_pointer = __pyx_import_pointers;
    const char *__pyx_import_current_signature = __pyx_import_signature;
    while (*__pyx_import_pointer) {
      if (__Pyx_ImportVoidPtr_3_2_3(__pyx_t_1, __pyx_import_name, *__pyx_import_pointer, __pyx_import_current_signature) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
      ++__pyx_import_pointer;
      __pyx_import_name = strchr(__pyx_import_name, '\0') + 1;
      __pyx_import_signature = strchr(__pyx_import_signature, '\0') + 1;
      if (*__pyx_import_signature != '\0') __pyx_import_current_signature = __pyx_import_signature;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_RefNannyFinishContext();
  return -1;
}

static int __Pyx_modinit_function_import_code(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  PyObject *__pyx_t_1 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannySetupContext("__Pyx_modinit_function_import_code", 0);
  /*--- Function import code ---*/
  {
    __pyx_t_1 = PyImport_ImportModule("kivy.graphics.cgl"); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_1);
    const char * __pyx_import_signature = __Pyx_PyBytes_AsString(__pyx_mstate_global->__pyx_kp_b_pyx_t_4kivy_8graphics_3cgl_GLE_2);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (unlikely(!__pyx_import_signature)) __PYX_ERR(0, 1, __pyx_L1_error)
    #endif
    const char * __pyx_import_name = __pyx_import_signature + 103;
    void (**const __pyx_import_pointers[])(void) = {(void (**)(void))&__pyx_f_4kivy_8graphics_3cgl_cgl_get_context, (void (**)(void))&__pyx_f_4kivy_8graphics_3cgl_cgl_set_context, (void (**)(void)) NULL};
    void (**const *__pyx_import_pointer)(void) = __pyx_import_pointers;
    const char *__pyx_import_current_signature = __pyx_import_signature;
    while (*__pyx_import_pointer) {
      if (__Pyx_ImportFunction_3_2_3(__pyx_t_1, __pyx_import_name, *__pyx_import_pointer, __pyx_import_current_signature) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
      ++__pyx_import_pointer;
      __pyx_import_name = strchr(__pyx_import_name, '\0') + 1;
      __pyx_import_signature = strchr(__pyx_import_signature, '\0') + 1;
      if (*__pyx_import_signature != '\0') __pyx_import_current_signature = __pyx_import_signature;
    }
    __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  }
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_RefNannyFinishContext();
  return -1;
}

#if CYTHON_PEP489_MULTI_PHASE_INIT
static PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def); /*proto*/
static int __pyx_pymod_exec_cgl_debug(PyObject* module); /*proto*/
static PyModuleDef_Slot __pyx_moduledef_slots[] = {
  {Py_mod_create, (void*)__pyx_pymod_create},
  {Py_mod_exec, (void*)__pyx_pymod_exec_cgl_debug},
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
  {Py_mod_gil, __Pyx_FREETHREADING_COMPATIBLE},
  #endif
  #if PY_VERSION_HEX >= 0x030C0000 && CYTHON_USE_MODULE_STATE
  {Py_mod_multiple_interpreters, Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED},
  #endif
  {0, NULL}
};
#endif

#ifdef __cplusplus
namespace {
  struct PyModuleDef __pyx_moduledef =
  #else
  static struct PyModuleDef __pyx_moduledef =
  #endif
  {
      PyModuleDef_HEAD_INIT,
      "cgl_debug",
      0, /* m_doc */
    #if CYTHON_USE_MODULE_STATE
      sizeof(__pyx_mstatetype), /* m_size */
    #else
      (CYTHON_PEP489_MULTI_PHASE_INIT) ? 0 : -1, /* m_size */
    #endif
      __pyx_methods /* m_methods */,
    #if CYTHON_PEP489_MULTI_PHASE_INIT
      __pyx_moduledef_slots, /* m_slots */
    #else
      NULL, /* m_reload */
    #endif
    #if CYTHON_USE_MODULE_STATE
      __pyx_m_traverse, /* m_traverse */
      __pyx_m_clear, /* m_clear */
      NULL /* m_free */
    #else
      NULL, /* m_traverse */
      NULL, /* m_clear */
      NULL /* m_free */
    #endif
  };
  #ifdef __cplusplus
} /* anonymous namespace */
#endif

/* PyModInitFuncType */
#ifndef CYTHON_NO_PYINIT_EXPORT
  #define __Pyx_PyMODINIT_FUNC PyMODINIT_FUNC
#else
  #ifdef __cplusplus
  #define __Pyx_PyMODINIT_FUNC extern "C" PyObject *
  #else
  #define __Pyx_PyMODINIT_FUNC PyObject *
  #endif
#endif

__Pyx_PyMODINIT_FUNC PyInit_cgl_debug(void) CYTHON_SMALL_CODE; /*proto*/
__Pyx_PyMODINIT_FUNC PyInit_cgl_debug(void)
#if CYTHON_PEP489_MULTI_PHASE_INIT
{
  return PyModuleDef_Init(&__pyx_moduledef);
}
/* ModuleCreationPEP489 */
#if CYTHON_COMPILING_IN_LIMITED_API && (__PYX_LIMITED_VERSION_HEX < 0x03090000\
      || ((defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS)) && __PYX_LIMITED_VERSION_HEX < 0x030A0000))
static PY_INT64_T __Pyx_GetCurrentInterpreterId(void) {
    {
        PyObject *module = PyImport_ImportModule("_interpreters"); // 3.13+ I think
        if (!module) {
            PyErr_Clear(); // just try the 3.8-3.12 version
            module = PyImport_ImportModule("_xxsubinterpreters");
            if (!module) goto bad;
        }
        PyObject *current = PyObject_CallMethod(module, "get_current", NULL);
        Py_DECREF(module);
        if (!current) goto bad;
        if (PyTuple_Check(current)) {
            PyObject *new_current = PySequence_GetItem(current, 0);
            Py_DECREF(current);
            current = new_current;
            if (!new_current) goto bad;
        }
        long long as_c_int = PyLong_AsLongLong(current);
        Py_DECREF(current);
        return as_c_int;
    }
  bad:
    PySys_WriteStderr("__Pyx_GetCurrentInterpreterId failed. Try setting the C define CYTHON_PEP489_MULTI_PHASE_INIT=0\n");
    return -1;
}
#endif
#if !CYTHON_USE_MODULE_STATE
static CYTHON_SMALL_CODE int __Pyx_check_single_interpreter(void) {
    static PY_INT64_T main_interpreter_id = -1;
#if CYTHON_COMPILING_IN_GRAAL && defined(GRAALPY_VERSION_NUM) && GRAALPY_VERSION_NUM > 0x19000000
    PY_INT64_T current_id = GraalPyInterpreterState_GetIDFromThreadState(PyThreadState_Get());
#elif CYTHON_COMPILING_IN_GRAAL
    PY_INT64_T current_id = PyInterpreterState_GetIDFromThreadState(PyThreadState_Get());
#elif CYTHON_COMPILING_IN_LIMITED_API && (__PYX_LIMITED_VERSION_HEX < 0x03090000\
      || ((defined(_WIN32) || defined(WIN32) || defined(MS_WINDOWS)) && __PYX_LIMITED_VERSION_HEX < 0x030A0000))
    PY_INT64_T current_id = __Pyx_GetCurrentInterpreterId();
#elif CYTHON_COMPILING_IN_LIMITED_API
    PY_INT64_T current_id = PyInterpreterState_GetID(PyInterpreterState_Get());
#else
    PY_INT64_T current_id = PyInterpreterState_GetID(PyThreadState_Get()->interp);
#endif
    if (unlikely(current_id == -1)) {
        return -1;
    }
    if (main_interpreter_id == -1) {
        main_interpreter_id = current_id;
        return 0;
    } else if (unlikely(main_interpreter_id != current_id)) {
        PyErr_SetString(
            PyExc_ImportError,
            "Interpreter change detected - this module can only be loaded into one interpreter per process.");
        return -1;
    }
    return 0;
}
#endif
static CYTHON_SMALL_CODE int __Pyx_copy_spec_to_module(PyObject *spec, PyObject *moddict, const char* from_name, const char* to_name, int allow_none)
{
    PyObject *value = PyObject_GetAttrString(spec, from_name);
    int result = 0;
    if (likely(value)) {
        if (allow_none || value != Py_None) {
            result = PyDict_SetItemString(moddict, to_name, value);
        }
        Py_DECREF(value);
    } else if (PyErr_ExceptionMatches(PyExc_AttributeError)) {
        PyErr_Clear();
    } else {
        result = -1;
    }
    return result;
}
static CYTHON_SMALL_CODE PyObject* __pyx_pymod_create(PyObject *spec, PyModuleDef *def) {
    PyObject *module = NULL, *moddict, *modname;
    CYTHON_UNUSED_VAR(def);
    #if !CYTHON_USE_MODULE_STATE
    if (__Pyx_check_single_interpreter())
        return NULL;
    #endif
    if (__pyx_m)
        return __Pyx_NewRef(__pyx_m);
    modname = PyObject_GetAttrString(spec, "name");
    if (unlikely(!modname)) goto bad;
    module = PyModule_NewObject(modname);
    Py_DECREF(modname);
    if (unlikely(!module)) goto bad;
    moddict = PyModule_GetDict(module);
    if (unlikely(!moddict)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "loader", "__loader__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "origin", "__file__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "parent", "__package__", 1) < 0)) goto bad;
    if (unlikely(__Pyx_copy_spec_to_module(spec, moddict, "submodule_search_locations", "__path__", 0) < 0)) goto bad;
    return module;
bad:
    Py_XDECREF(module);
    return NULL;
}


static CYTHON_SMALL_CODE int __pyx_pymod_exec_cgl_debug(PyObject *__pyx_pyinit_module)
#endif
{
  int stringtab_initialized = 0;
  #if CYTHON_USE_MODULE_STATE
  int pystate_addmodule_run = 0;
  #endif
  __pyx_mstatetype *__pyx_mstate = NULL;
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  int __pyx_lineno = 0;
  const char *__pyx_filename = NULL;
  int __pyx_clineno = 0;
  __Pyx_RefNannyDeclarations
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  if (__pyx_m) {
    if (__pyx_m == __pyx_pyinit_module) return 0;
    PyErr_SetString(PyExc_RuntimeError, "Module 'cgl_debug' has already been imported. Re-initialisation is not supported.");
    return -1;
  }
  #else
  if (__pyx_m) return __Pyx_NewRef(__pyx_m);
  #endif
  /*--- Module creation code ---*/
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  __pyx_t_1 = __pyx_pyinit_module;
  Py_INCREF(__pyx_t_1);
  #else
  __pyx_t_1 = PyModule_Create(&__pyx_moduledef); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #if CYTHON_USE_MODULE_STATE
  {
    int add_module_result = __Pyx_State_AddModule(__pyx_t_1, &__pyx_moduledef);
    __pyx_t_1 = 0; /* transfer ownership from __pyx_t_1 to "cgl_debug" pseudovariable */
    if (unlikely((add_module_result < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
    pystate_addmodule_run = 1;
  }
  #else
  __pyx_m = __pyx_t_1;
  #endif
  #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
  PyUnstable_Module_SetGIL(__pyx_m, Py_MOD_GIL_USED);
  #endif
  __pyx_mstate = __pyx_mstate_global;
  CYTHON_UNUSED_VAR(__pyx_t_1);
  __pyx_mstate->__pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_mstate->__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error)
  Py_INCREF(__pyx_mstate->__pyx_d);
  __pyx_mstate->__pyx_b = __Pyx_PyImport_AddModuleRef(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_mstate->__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_mstate->__pyx_cython_runtime = __Pyx_PyImport_AddModuleRef("cython_runtime"); if (unlikely(!__pyx_mstate->__pyx_cython_runtime)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_mstate->__pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  /* ImportRefnannyAPI */
  #if CYTHON_REFNANNY
  __Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny");
  if (!__Pyx_RefNanny) {
    PyErr_Clear();
    __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny");
    if (!__Pyx_RefNanny)
        Py_FatalError("failed to import 'refnanny' module");
  }
  #endif
  
__Pyx_RefNannySetupContext("PyInit_cgl_debug", 0);
  __Pyx_init_runtime_version();
  if (__Pyx_check_binary_version(__PYX_LIMITED_VERSION_HEX, __Pyx_get_runtime_version(), CYTHON_COMPILING_IN_LIMITED_API) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_mstate->__pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_mstate->__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_mstate->__pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_mstate->__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_mstate->__pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_mstate->__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Library function declarations ---*/
  /*--- Initialize various global constants etc. ---*/
  if (__Pyx_InitConstants(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  stringtab_initialized = 1;
  if (__Pyx_InitGlobals() < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__pyx_module_is_main_kivy__graphics__cgl_backend__cgl_debug) {
    if (PyObject_SetAttr(__pyx_m, __pyx_mstate_global->__pyx_n_u_name_2, __pyx_mstate_global->__pyx_n_u_main) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  }
  {
    PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error)
    if (!PyDict_GetItemString(modules, "kivy.graphics.cgl_backend.cgl_debug")) {
      if (unlikely((PyDict_SetItemString(modules, "kivy.graphics.cgl_backend.cgl_debug", __pyx_m) < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
    }
  }
  /*--- Builtin init code ---*/
  if (__Pyx_InitCachedBuiltins(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Constants init code ---*/
  if (__Pyx_InitCachedConstants(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_CreateCodeObjects(__pyx_mstate) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Global type/function init code ---*/
  (void)__Pyx_modinit_global_init_code(__pyx_mstate);
  (void)__Pyx_modinit_variable_export_code(__pyx_mstate);
  (void)__Pyx_modinit_function_export_code(__pyx_mstate);
  (void)__Pyx_modinit_type_init_code(__pyx_mstate);
  (void)__Pyx_modinit_type_import_code(__pyx_mstate);
  if (unlikely((__Pyx_modinit_variable_import_code(__pyx_mstate) < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
  if (unlikely((__Pyx_modinit_function_import_code(__pyx_mstate) < 0))) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Execution code ---*/

  /* "kivy/graphics/common.pxi":11
 *     ctypedef char* const_char_ptr "const char*"
 * 
 * cdef double pi = PI             # <<<<<<<<<<<<<<
 * cdef extern from "math.h":
 *     double cos(double) nogil
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_pi = 3.141592653589793;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":7
 * 
 * cdef GLES2_Context g_cgl_debug
 * cdef GLES2_Context *cgl_debug = &g_cgl_debug             # <<<<<<<<<<<<<<
 * cdef GLES2_Context *cgl_native
 * 
*/
  __pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_cgl_debug = (&__pyx_v_4kivy_8graphics_11cgl_backend_9cgl_debug_g_cgl_debug);

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":11
 * 
 * 
 * cpdef is_backend_supported():             # <<<<<<<<<<<<<<
 *     return True
 * 
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_11cgl_backend_9cgl_debug_1is_backend_supported, 0, __pyx_mstate_global->__pyx_n_u_is_backend_supported, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_cgl_backend_cgl_de, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[0])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_is_backend_supported, __pyx_t_2) < (0)) __PYX_ERR(0, 11, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":14
 *     return True
 * 
 * def gl_debug_print(*args):             # <<<<<<<<<<<<<<
 *     print("".join([str(x) for x in args]))
 * 
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_11cgl_backend_9cgl_debug_3gl_debug_print, 0, __pyx_mstate_global->__pyx_n_u_gl_debug_print, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_cgl_backend_cgl_de, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[1])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 14, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_gl_debug_print, __pyx_t_2) < (0)) __PYX_ERR(0, 14, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":17
 *     print("".join([str(x) for x in args]))
 * 
 * def gl_check_error():             # <<<<<<<<<<<<<<
 *   ret = cgl_native.glGetError()
 *   if ret:
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_11cgl_backend_9cgl_debug_5gl_check_error, 0, __pyx_mstate_global->__pyx_n_u_gl_check_error, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_cgl_backend_cgl_de, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[2])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 17, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_gl_check_error, __pyx_t_2) < (0)) __PYX_ERR(0, 17, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1291
 * 
 * 
 * def init_backend_debug():             # <<<<<<<<<<<<<<
 *     cgl_debug.glActiveTexture = dbgActiveTexture
 *     cgl_debug.glAttachShader = dbgAttachShader
*/
  __pyx_t_2 = __Pyx_CyFunction_New(&__pyx_mdef_4kivy_8graphics_11cgl_backend_9cgl_debug_7init_backend_debug, 0, __pyx_mstate_global->__pyx_n_u_init_backend_debug, NULL, __pyx_mstate_global->__pyx_n_u_kivy_graphics_cgl_backend_cgl_de, __pyx_mstate_global->__pyx_d, ((PyObject *)__pyx_mstate_global->__pyx_codeobj_tab[3])); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1291, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030E0000
  PyUnstable_Object_EnableDeferredRefcount(__pyx_t_2);
  #endif
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_init_backend_debug, __pyx_t_2) < (0)) __PYX_ERR(0, 1291, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "kivy/graphics/cgl_backend/cgl_debug.pyx":1
 * include "../../include/config.pxi"             # <<<<<<<<<<<<<<
 * include "../common.pxi"
 * 
*/
  __pyx_t_2 = __Pyx_PyDict_NewPresized(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_mstate_global->__pyx_d, __pyx_mstate_global->__pyx_n_u_test, __pyx_t_2) < (0)) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /*--- Wrapped vars code ---*/

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  if (__pyx_m) {
    if (__pyx_mstate->__pyx_d && stringtab_initialized) {
      __Pyx_AddTraceback("init kivy.graphics.cgl_backend.cgl_debug", __pyx_clineno, __pyx_lineno, __pyx_filename);
    }
    #if !CYTHON_USE_MODULE_STATE
    Py_CLEAR(__pyx_m);
    #else
    Py_DECREF(__pyx_m);
    if (pystate_addmodule_run) {
      PyObject *tp, *value, *tb;
      PyErr_Fetch(&tp, &value, &tb);
      PyState_RemoveModule(&__pyx_moduledef);
      PyErr_Restore(tp, value, tb);
    }
    #endif
  } else if (!PyErr_Occurred()) {
    PyErr_SetString(PyExc_ImportError, "init kivy.graphics.cgl_backend.cgl_debug");
  }
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #if CYTHON_PEP489_MULTI_PHASE_INIT
  return (__pyx_m != NULL) ? 0 : -1;
  #else
  return __pyx_m;
  #endif
}
/* #### Code section: pystring_table ### */
/* #### Code section: cached_builtins ### */

static int __Pyx_InitCachedBuiltins(__pyx_mstatetype *__pyx_mstate) {
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __pyx_builtin_print = __Pyx_GetBuiltinName(__pyx_mstate->__pyx_n_u_print); if (!__pyx_builtin_print) __PYX_ERR(0, 15, __pyx_L1_error)

  /* Cached unbound methods */
  __pyx_mstate->__pyx_umethod_PyDict_Type_items.type = (PyObject*)&PyDict_Type;
  __pyx_mstate->__pyx_umethod_PyDict_Type_items.method_name = &__pyx_mstate->__pyx_n_u_items;
  __pyx_mstate->__pyx_umethod_PyDict_Type_values.type = (PyObject*)&PyDict_Type;
  __pyx_mstate->__pyx_umethod_PyDict_Type_values.method_name = &__pyx_mstate->__pyx_n_u_values;
  return 0;
  __pyx_L1_error:;
  return -1;
}
/* #### Code section: cached_constants ### */

static int __Pyx_InitCachedConstants(__pyx_mstatetype *__pyx_mstate) {
  __Pyx_RefNannyDeclarations
  CYTHON_UNUSED_VAR(__pyx_mstate);
  __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0);
  __Pyx_RefNannyFinishContext();
  return 0;
}
/* #### Code section: init_constants ### */

static int __Pyx_InitConstants(__pyx_mstatetype *__pyx_mstate) {
  CYTHON_UNUSED_VAR(__pyx_mstate);
  {
    const struct { const unsigned int length: 10; } index[] = {{0},{30},{29},{35},{26},{31},{32},{27},{23},{38},{27},{33},{26},{26},{29},{38},{23},{23},{19},{22},{29},{36},{39},{30},{33},{21},{26},{22},{24},{29},{30},{30},{28},{25},{23},{23},{29},{39},{20},{24},{26},{38},{19},{14},{13},{39},{36},{23},{21},{26},{27},{22},{30},{32},{33},{35},{34},{26},{36},{24},{51},{26},{34},{29},{42},{32},{31},{27},{23},{33},{33},{35},{29},{29},{32},{32},{20},{24},{22},{34},{26},{36},{24},{26},{24},{28},{26},{29},{21},{35},{29},{18},{28},{33},{25},{33},{25},{31},{23},{26},{29},{29},{29},{27},{28},{27},{28},{27},{28},{27},{28},{27},{28},{27},{28},{27},{28},{27},{28},{34},{27},{32},{28},{28},{28},{28},{33},{19},{13},{3},{3},{2},{1},{10},{15},{9},{11},{11},{11},{12},{10},{9},{8},{12},{13},{11},{9},{10},{11},{16},{16},{9},{10},{11},{14},{10},{11},{11},{19},{11},{39},{10},{10},{13},{9},{13},{9},{14},{8},{15},{11},{10},{10},{10},{10},{7},{8},{17},{17},{23},{11},{11},{9},{8},{10},{13},{11},{11},{14},{12},{12},{14},{9},{8},{10},{10},{5},{9},{6},{10},{6},{12},{6},{12},{6},{10},{10},{20},{4},{18},{18},{1},{8},{14},{14},{18},{20},{13},{5},{35},{8},{10},{8},{5},{12},{3},{12},{10},{8},{6},{1},{7},{27},{28},{1011},{131},{134}};
    #if (CYTHON_COMPRESS_STRINGS) == 3 && __PYX_LIMITED_VERSION_HEX >= 0x030e0000 /* compression: zstd (1765 bytes) */
const char* const cstring = "(\265/\375`\264\026\3356\000\206}\2755 \225:@\270\0000\000 (\000C\2040\"\204\206\026\311N&\266ER{i\357\235vK\025\215<\374\363\005qd\0256Z\021\250\005\240\277D`\210\202\267\332\002\246\000\247\000\244\000\215\232\247\237\314by\252:\353\340n.\346fk\243\327\272\233\\\374\3162,U[\273\304[\331u\337\203\223\237%\227\360\266()C\006_O\322F-\374\313\376\002K8\330[\026\n\327\312^Y6\310\242*\253\272\262\267\311\276,k\370\373\251\325\306\037\211*L\355o\211\323\337\266\333\274n3D\215\230\2740GY\277\276 \247\302\234\023\307N%%\221\316\334\344\027\025\243\236=\337\357\272pd\322\376\335h\212\252\235\233=\302Z\367\250\203\332\310\231\333/\365m\373\257\205h\257\215\330\303w1\014\267\3727\223\364\264\024\223N9\224\252\r\321\366\003\345j\030\"$\014\222\206\241mh\232S\367\323d\220\345\235\202:\334\316?\233\266xtpt\245_\256\345\312TW\373\257Jw\036\335ut\307\321-Yj\331 \013;\255\2657\016\345\266\270EIX\202\254M\261\267\334\362\013\327\256c\231\324{I\332\354\364S\222]\335\262\322\321F\337s=\303\263S\274\343*\312\317>\351\356f\373\363\346!My4\205v\023\305\331\343\237(\277T\242Z\355\374\276-\314\332\331\232\313\222\322\221\3121\313i\3273\346\301e\201\255\302\277\316\223M~\322P\242\276\3323\354r\303\234\030#\313pYQC\243\262\370;r\014\206\265v\377l\007#\307\325\306\337\026\245\027c\214\034o\353\037gG\271U\236\375!u\272i\320\336\346\253n\365|;~Y\211\277u\211\353\325\022c\255\013\356\274\\:-okX\277g\010\276\270R\260\316\365\352\342\267\360&s\355_7\357\330\375A\312\311\351\342\326\367\336d\251a\270^\240\206\307q\223W\333\252\242\364\266\215\272\365\007\256{\033\257V\257\234[r\247\363{T\322\216\267N\365\3475\177\223\331\275\255\336\030\246\257\3733\244\333N\327\020\213\352\314\005u\213\317^\2104\322B$\256ik\304\365\307\376\346\226\375{\351\305W\327\316\255\020G\345\311 \r5\030\ny\223J\215\343\351u\235a(\364\263C,U!\345B\026\332\273\370'%\211\034\251S\212IG\004\211\036\361\301\030M\261Rl\301!&\022\000\032\020\010\n\212\321\300\\z2\326\347C$\263)\365\\\310nvFQ\222\341\300D\263\207\036\213Y\205\254F""\324C2\315$L\262\010\353\031\255\254\2414\213x\230A\310\030\\f\02392\207\231\246\360\243\320\3033\212\204\037\002 \027\236\201\000 \027\331E\354\000V\0200c\231\204\254\3066\326\021{\210\211b'\030\004L\0043(\301\020\004\200\000x\\\265\362\313p;\346j\201\357\250\301\241rhf$I\n*i\rQ\020\302P\355 3\017\022a\220J\250\010!\002\0311\204\220!\td\350\024J\033\273\001\364\301\254\021\200[#\356j3\021\317p=\351\377\030\352\275\235\267\007\n\217\210\244\"R\251\274\203\226\234\315Bt\206Z\236LB\257\220\232\324\261\371gn B[hD\033\276\0006\327R<\316\243\032}w\203\300Z\211\360\224W\203\372\217\232a\242)\nD \350\213\276!\022.\304\027\300-\372\022z\032/</\242_g\212\364%\275\230NL.t?`F\354W\260\034\336\340\350\364\022\t)\331\342r\261G\201\272\354\271\345\t\021\344\2273$e\td\252\317\307\264\032\360\200P:\"\301\030W\204\tx\201\225@\202;\343G\225Z\216\364\346`ih\nD\001\003f\020\006\306\262\242\231}\252R\336\375J\007\014\272\254\234\240\213\016\215T\3452\212\273oX\321\257\342\300\2210\005&\n\262\373\236\303Th\261b\310\355\205\225TO\350\363\333\2453\212\227\322\227\234k\246\017\246\353\206\3478H\207T\251\207\373f1\356\032\025\257I(\250)\016\312T\030M]~\327\3630-\305+X\353\347H1E\r \352\256\236Z\363\205\341\016\270\314b\300j&\261\351a\235\220\311E\036\314\200`B\021#\324\270.\371\207r(~\346\311 \262\017y\t\r\003\001\321\006R\322iy\325\234b1\315\306\245_d\346:\202\211!\213\355#\022$\325W 0c\225.\365\t\342\014\2203\274\260\363\240\233Q\024\223\256nq'\335\2356\263\n\013P\263\330\004\020q\345\214\325g\226\007\350m\032\224K\255\274\006\221\235\301x4\0368\300\343\265\246/4t\246\375\324Z\305\260\312\037;v\315\031\362&8\366\002\243\327\002\314B\020\270(\2377\016x)\240\347z\2560\223\322\353\315'1\222\235\201:\010\340<Dy\303I\"[<V\022\373\024\3729S\226\rRA\230s#\331y\261\342^\301pB\270{\253\247\025\253\036\311\316\354\373\225n\031\200N$\314\204&P\002LX\026\205c\320\260\241J\302\305v\005\204\274\242 \273\272\004\256\337\374\267\025\023d4\345\242E\252>\030J\2005\205\240\2625\300\224\341\3316CX\346~5w\265o"";$\370\324\254P\204]0\355\311\336\230\201\206\3679\013\032\3262i\257\235\244\271\035t\211J:\030\373\215\242\261\354\021\300\031\021\352\246_\021\234B\210wW$a\013\006-\230F\031\315\214\211\3518\002#\2547\367\256 l\024\014\366\362\255\024\001a\323\"[EU\371\325\321r]\257,\311\\\242{\024\204\243\361\245[\273\2323\2654\232\323-\006@7EA\013\220#i\370\204\206\210\353\010\321\361\247R\032\2516|`x\\\241JB`\247\r\371\331\242N\270\2771C\017t\000\227\027\223\366xD\014\244\001Ng\277A`a|do\264KW2\000\355\237E\302J)p-/\340\235t\221\036UU\n\r\025\036zY{P\tl\340\256=\211a\257\016\2545\337\247#{xh\275&\214\347\253\360\351x\233\276\321&\002a\023\252KV\215\341\213\207+7\377\330\257\274_`\014X\310\367\353\350\303\000`a\360\3277f\337\307\370\306\233\206Ka\237K\260\313z\330\027\022\003h\010#\005(grF\333\014r\304D\2010\014\223\376\021\014F\020\377\327\274\301\325\221n(K\205T\177\315qzi\254A\231U`\267\023a4\r\322h\217\323#>\377F\000\327\316\206>\237|\374\237\260pP\037\307\201\373\000\376\340\336\315\000g\202Y\373'\365\331\004\031\217!\210\374\007\350\014\022\236=\227\n";
    PyObject *data = __Pyx_DecompressString(cstring, 1765, 3);
    if (unlikely(!data)) __PYX_ERR(0, 1, __pyx_L1_error)
    const char* const bytes = __Pyx_PyBytes_AsString(data);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (likely(bytes)); else { Py_DECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) }
    #endif
    #elif (CYTHON_COMPRESS_STRINGS) == 2 /* compression: bz2 (1856 bytes) */
const char* const cstring = "BZh91AY&SY\004\271K[\000\003\250\177\373w~(\003\377\377\275B\277\347\377\237\277\357\377\360@@@@@@@\000@@@\000`\007\346\334\n}V\3333#Zk\332\334V\214:\327\036\004\222SFM)\247\351O\322\236\324\364iO\322M\242d\364\214\312\003F\010\310\320\030M\014\324i\243\323&\325\006Djz\203@\021M\007\352\201\240\006\217Ph\006\200\000\000\000\000\002&\310\212\232\032\000\003 \000\000\000\000\000\000\000z\200h\004\232\222\010\32124\233Hy)\341F 4h\006\200\000\000\000\000\0008h\000\006\203A\2400@\r\r4\310\006\206\2152\000b\006\200\004\212jhd\2325\001\246S\3240jf\224\032\032\006\200\000\000\0004h\000\347\372\\w{\345\363\342\370\234\225|5z\227Y\223#\202\223\t\315\230\241\200\001\231 \010\3549\316\312\322P\200\023\200\000\244\331\253C\n\006zpAO\373gc]Z^M\224\204\206\037sP\234\212\001\326\267do\t\214\251\010\264\305\347U\237V\232\241\224\305J\303\345i{\317\177\304\376\332\362\021\002\373\0225\304I\032\324\214\000ap\235\"\227\361\254o\323\301\026p\256\002\260Z\225\242\263KQi\201W`\334\227\360\332\255\206\026\246\316wF\254\003(\006c18.\3726\302I;\020\354#\022 \252\212%\244\222J\n\005\203,\312\200qU\010\301H20\202\304Q\026F\n0\"#\024\026+\022n\t\271\201\317\316,y\316\213\210R@\363\031\257i\267\220\340g\017.\333\371M\307\372s\205\315y\r4\323M4\226\303\263\227`D\r\370Lq\303]\177U\215\330\343Ip`gy\270(\307F6P\2057\302\237(\021K\246\"\367\215\327,\003\2464A\365\365iM0\315\014P\335;\334\242\031h\261\241(\321U\255\312s:>6\035\010\214\213\004z\252\210\261\025\024TE\024Q\020;\267\347\342\376\371\270q\276\373\271\267\207WOW\ruK\\\022n\233\351x\225(\036\005)\005e#\201\226-\346\264 \0228\301\034\027\353\346M=:O\022\373\367a\250\233n\251\307\307\001\030\250\250\242\237T\314B\376\2661\016\375\262\013+ \337L\233^\004\254\317\01050\334\262\221\232\247\026\2733\266\347;[\270\360k\256\227\005\374\245\330\344\004\353\260\004H\020\3311\204\233x\225wc;\023\240\220\000\010\0306\360Y\027H\333Mq\022\221y\"\306\331-\002\373\324N*4\201\310\323b\356H\227\237;{U\212\346\317\026[\227\330\240\277?d\343\204\270\301\320\275""\341\032\002\342-\325\262_\276\362\365\265\255Xc\215d\336\001\212\211(hk\262\003\210r\306\203\231s\n\246:PSL\254\337\303\323\035\212b\210\202\240\226*\205R\330\255H\226\273B.\320\245\010\212\006\260\255pE\270\0020\002\203&D\034\203\353\0311\033\222X\264\027\2021\245\306\304\255L\257\216^_\373\311\344\253\320+\2044\203\261\230\353T\204B\331\372$\305\276\220\263\332\2770\263(<\323\222\242\254\236\002\014\232t\3136\334s\232\031\343v\216\321\377QJM\262i\006j\346\n-\336\206\251~UT\252*(\255U\025A\312K\014\264\325\010_\013\243\217\253\366O\257\2766/4\252\240v\263\020\215SWc\320\363\013\255\\\022\274N\242!\302}VJ\033\2662m*\207&\365\020\027\2444\321s\321\"\365}\210\346\340\360\235\275r\226\034\035\336\250\262\030Z\020\356\356\252\031)\r\216w\261\333Y\322\371\205\254\247=*\303\007c\206M\225 $\222+>\250\200\242LH\240\016\010\261\214\357\031\n\246\230S<a4\365kk\202\314.\323\3377\331\tj&\206`b\223'l\362[\021\201\243\24114\306aE1\005\026\"\032\265\332B\351j\250n\274\226cuv\340m\324mwRE4\351\270c@\236\362H\234A\213\310Y$\365d\212\240\375\2044~\254$'\321\323\253\360\357\367\277\030\210\215\356u\233)\034\316\206\260\003\214\000\347^9\232\226D\200\272\024)p\035N\343c\0140\300kcU|$\270\"V`\010\276bA\255\333=\t$\223E\214\235%\016\3372\250\026\356\317\022\255k\260\3240\300\332\020\006\324\206\351x\202\232\034T\275JYe\226N\334\014\n{\350\322\262S\236\246\311\217VD!\352\326gY\023\216\210\014\373$@\221\324\262\321\n\206\3145L\237V\305\325+rH\331\341\347f\330d\351\222\032\223\317<\372\205tD\260\211\336\202k\227\230\230aW\211\316\023I\332V\254\352\367Y8B(\321!\211\003\006\205\014B4\361,g#v\275\252<<\250\317\200\2371\304\231\336\233\210\031,\267\23510\312\351\216\024\020\345A\000S\366&\256\202\334:e\016\020\207p\323R\\\267\001\311\225\310\336U\3000\205E\\\363\212c\2340\\\334\2325\300\317'\216\231\014Q\030F\023kN\261\340K\037\302\021%s\302Z\"pI\333\021s!\016'#I\231 \357.T\025\364\263\330_\262\004\363\316\216\014\267\3133I!\261\315\233u\361\337\311b\356\251\201\316\3273v\231\003A\202\022e""\342r\321!|\255*\300\315)m\030m'\263\343\007\321v\345V\317r5\343\212\356\007\\\302\001\254t\235\353\203\250\363\016\377\233JE\3030\261`(p\245\014\007}Y,\222\231kU\271\300\233\316\340\r\244\263\205B\241\177t\335*Ca\262d\311\341\3578\346M\350_9\016<\346\231\t\203\\\020\212^T%`\nP\200\350\003,\344\315\313\212\340Z\235\215\261\024\307{\267\024Si\275\033$F\270\2029G\326\224\226`\273\206x\356\304\324\034k*RH:g#JY_\023e\230\027\350\351\"f\022\267\271~\340el\330\342\321%W)9\023a&Z\344\310\211\002\275o\3168m\306\025\027\024\232\255q@\266\316\3241\215\261\271\326\371\222\261%$\304\005!\310\264\350\335\t\250L\203\324I\027\003 \363S`\006\326G\2555\220\320\262\021\"\365\377+\303\223\200:\205\326\306\301\214\033lm#\217\243?fs\301\321\333\312q3d\205\332la\261UU\331\207^\353\230.3\255KU\370Q\372\323\025\331\306\\6\014\311\017\226v$\022\t\302\262\304\006\211X_/[\034\242h\337~5\003\3602z\0211\200\266\334\\|\234\334\306/\200\001\254\361\367\374b\255\352\311c)\330f%\241\032@\214\277\304\007R\014\177\341\023\002j\350$E\354h\250\203\2542\013*\277\321\211A\027fi\264\000\005E\013kD\261\2648ev\nU\037\0256|r\321Y3\302\nC*\030\206!\202*D\272\270\014X\205*\021\235J\243\007\214\221\300r\200\002\252\217\000\245\211yH<Q\242$`\316\010\226\023J\232?\342\356H\247\n\022\000\227)k`";
    PyObject *data = __Pyx_DecompressString(cstring, 1856, 2);
    if (unlikely(!data)) __PYX_ERR(0, 1, __pyx_L1_error)
    const char* const bytes = __Pyx_PyBytes_AsString(data);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (likely(bytes)); else { Py_DECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) }
    #endif
    #elif (CYTHON_COMPRESS_STRINGS) != 0 /* compression: zlib (1788 bytes) */
const char* const cstring = "x\332\275XKo\3346\020\336\024I\321W\016F\317m\2244M\355d\353\300vP\364\022\024~\327\200S?\266M\201\276\004Z\242v\tsE\205\244\326\2739\345\270\307=\356q\217>\366\247\344\350c~J\207\244(\211ZIm.\r\020q8\337\0149\303\031\316p}x\354\365\351v \311\010\377\214\3072\345x\325\223\206\360\236{\207\032\225\022\005\203\336\000\205\230\257z\tg}\216\206\026\334!q\010\002\234\\\034\263\000I\302\342Z\221\2354\212\224\266D\274\217e\0319\000I|\321\010\237\343\030\266m\306\013\243]\210\202\336.\243\014\2248\016\035\366\376\253T\033\332\303\t\342H\202\356\220\205\370\374p\247V\312\240\016t\220\306A\241,xP\325U\002\000D(\220\214\347\210\366a\017I\264d\254Fz\351E\035\270;\300\301e\351\220z\022\311T,IQ\214\370\262\277\232\335\2238\016\010\005\203\03468\206\304e\316R\272/\200\341\352\263aB(\266\261\027z,\203\034\013\201U\020\216\206\250\2177\367\226\354*\313\200\207\215b\311\244m\021\215\266\250s\014\24185i\267\352\255\225\230\326t9I\362 \356\246\224\036\240\000\273\241\335\303\024Klb\001\347\033\273\374R\004\226\301|\347J\346\033\264\234\302\313\272\365gk\260,\271]\245D\016L~E\360u\330&|\021E\375\202\335ru\367\210@\027\024\277\304\034.\274\271\303\333\234\243\311\252\007\367\n\217+b\253^\200\222\234\307\321\225\226\025\2253\004\376>\305C\034\313\n\262\037\377\227\275\214\224\263\325\001\211\211\030\330\240\036\320\2644)b\322V&Jb\331\201.g\320\001g\261\\\316\211C\034/'\0040\033\262\001\220\246`\003T\023M\340bUE^\220d\210\222\252Q\207X\232\312l\016l)\2009\376KL\"\306\207\265\002\272x\343\320\344\200h\020i+\337 \261\303\030T\214x\004X\014\216\227\021\355\350)R\347!1'\243\032\037\016(C\262F\267t\210\306J\2256\355K\035\305\022\3671\257Y,\273\202Gq\304\216Y\277\316\211LB\255\273\014\226\303\326n\2029\310|\037\367\332\346x\217\245\\%S\003\254V^\206 \0141,Y\361\014\322&\267(\252\263\250,Pkr\226\036m\021\316D\242Q\013X\177r\345+\255\324\235\373\\\301I\025\377\221\304\262j\360\221\260\217\005\023\216\202o\252C\350\224\207#\341< \242bRH4\225\347#\341\226\r^\232\0252\365\005\372H4=\227\216I\214\177%""\241\2042u\245\206\022\377\262\311\222S2\306\264\007\217\005L*\251}\312\350\244\317\342\223(\022\030\216\312}R\234c\024jU\270\327\343\202Yx\241\226\204\216Y=\342\036\032&\024\357\262\0216\350\010\3214\337\261\027\020!\324;\"_\261-\245\263\307\205\373$\002+q\215\200\333\2622@5\255VM\323\325\312o\225\0148IZ\365N\022\305&\324\262\233\337\027\316\rk\003I\r\330\374*\311\256\315\006,I\263\253\267\004\215\2321\322\0025\253mF-P\213\032i\201\232\325\266\242\026\250E\215\264@\315j\317\242\026\250E\215\264@\315j/\020\224\254q\375\302\242\361\311\367\022Q\022\242\346'a\271\034\252\314\200r8\256\3036[\260\255\026\354Y\013v\312\240\334\252R\346\010\020|\2250.\315}?Ip\014\354}\316\241\312xO\275\256\267\326]\373\241\353!\232\014\020\340@\345\255ZO/L\345\000\202qS\026\272E\335\266\244x\374\\\223\202\2746\302\001K3}M)\030\016\r\3511/q@\013\271\235o\014\023\363;\253k\2575\020\204\013\263\216\212\030\312H\247\0078smHV\204\272^\237c\034kj\200I\177`\264\211\272\314=k\250\355V\232\"\001\326\013\020h\376\224\365\r\t\007\032#Z\332\236\304PV\025yIF\223\247\020\373d@\002\3614\350S\377\002\005\227P\2355\035\202I\375\365d2\356z\360\223\261/\007j9\212G\330xVJ\271\256-~\212\030\027G\227=T\rQ\234\223\352\036j\255X\231D\301\221P\263\231\356 \232TEsXP\332\247D\267\021Me\355\007(\311\025\203\343HO+\355\321e\010#Y0\362Z\330-:\206%\265p\236\014\212\320\014\335`4\305\203\302\037\001\251\2339*\364\013\351\261\022QM\267\330\241h\3019\255\367\220\034\305\"a\"C\314o@C(8\215\211\024\232\223\n\210\272\246F\n\320\rQ\021W\232g\373x\3273\2710.\035\346\304|K\234\327\346\233'\351\353\004\t\265\213\357\237N\306\360\177\217\004\322\377\t\254<\307\021\270 \220\230@\277b\353\001\343,\225\360z\020\001\205\257Ob\037\354\017\260\312\232\320\367U\332\372>dN\240\376\"\340cuEm\036\371\t\034\014\250\022is\314\360\211\310\347\"M\3245\307\241\017\314|+\"\361P\250D]\267\211\272^J\324\365<Q}\177\210\300\036\370\007\311\226R\254(\225'\276\331\331\367_\245\210\032\006\3070\205\263\310p\240B\3603\245\300\225X\300W\037\256\030\277""\271us\373\323\351\206\032>\236\256L\037L\367g+\263\373\263\255\031\232\211\371\3039^(\350\203\217\246\237\314\236\314\317n>\270\363\346\354\346C\220\177\373\331\243\005\276\326jw\337\336\365\026f\2747\177\245\307\257\027gz\374bn\306\007\213\373z\374j\261\241\307/\347\310\301\255\376\352\265\032\247\376|[O\037.\266k\305\326\256W\224\330\357\363[\016lv\317\265\255\3647\013c\324\343kc\304\375\305\212\263\272k\374\364\257\371\206\303\266\276\330\371\243\005r|5\313e\273\346\233g\213\37597{>\271\336\2503\365\217\371J\311\264l\232\373e\r6\016\344K\3335\254\037M\207[\345[G\254\337V.[\336\370\235\357\362\335\337\310\221\262Z\326\355o\257\317Zv]\naU\275\232)\256\334\364\267Y\235M&\004\3714;yG(\007\255=v\264\341\263\247g\303\230-\002\201zW\266\313\252Y1w\376\257\031\352\216\225\320\375o\323\":\325\213hs\247i\314\334\204\243}w\373\316\315\355\225\331=\345\310\347\263\215\3316\324\032\250\237\322\177\246\352\225\377\275-X\376\226\252R\207\307\373\275M\177\227\305\252\374{\217;!K\341\267b\007jS\247\223\306\202\364c\350\203\224\305\375\016Hw\022\322\321\2130x\356\2002\026\233\035h\332$\232\250\372\252+\235\034p\370q\325Q%\225\230.\352K\022\276\217\t\253#F\302\265\216\372z\253\357\243\270\246L\364\241\265A\231\326,=\027\305\374\037\220w\037[";
    PyObject *data = __Pyx_DecompressString(cstring, 1788, 1);
    if (unlikely(!data)) __PYX_ERR(0, 1, __pyx_L1_error)
    const char* const bytes = __Pyx_PyBytes_AsString(data);
    #if !CYTHON_ASSUME_SAFE_MACROS
    if (likely(bytes)); else { Py_DECREF(data); __PYX_ERR(0, 1, __pyx_L1_error) }
    #endif
    #else /* compression: none (6068 bytes) */
const char* const bytes = "GL glActiveTexture( texture = GL glAttachShader( program = GL glBindAttribLocation( program = GL glBindBuffer( target = GL glBindFramebuffer( target = GL glBindRenderbuffer( target = GL glBindTexture( target = GL glBlendColor( red = GL glBlendEquationSeparate( modeRGB = GL glBlendEquation( mode = GL glBlendFuncSeparate( srcRGB = GL glBlendFunc( sfactor = GL glBufferData( target = GL glBufferSubData( target = GL glCheckFramebufferStatus( target = GL glClearColor( red = GL glClearStencil( s = GL glClear( mask = GL glColorMask( red = GL glCompileShader( shader = GL glCompressedTexImage2D( target = GL glCompressedTexSubImage2D( target = GL glCopyTexImage2D( target = GL glCopyTexSubImage2D( target = GL glCreateProgram( )GL glCreateShader( type = GL glCullFace( mode = GL glDeleteBuffers( n = GL glDeleteFramebuffers( n = GL glDeleteProgram( program = GL glDeleteRenderbuffers( n = GL glDeleteShader( shader = GL glDeleteTextures( n = GL glDepthFunc( func = GL glDepthMask( flag = GL glDetachShader( program = GL glDisableVertexAttribArray( index = GL glDisable( cap = GL glDrawArrays( mode = GL glDrawElements( mode = GL glEnableVertexAttribArray( index = GL glEnable( cap = GL glFinish( )GL glFlush( )GL glFramebufferRenderbuffer( target = GL glFramebufferTexture2D( target = GL glFrontFace( mode = GL glGenBuffers( n = GL glGenFramebuffers( n = GL glGenRenderbuffers( n = GL glGenTextures( n = GL glGenerateMipmap( target = GL glGetActiveAttrib( program = GL glGetActiveUniform( program = GL glGetAttachedShaders( program = GL glGetAttribLocation( program = GL glGetBooleanv( pname = GL glGetBufferParameteriv( target = GL glGetFloatv( pname = GL glGetFramebufferAttachmentParameteriv( target = GL glGetIntegerv( pname = GL glGetProgramInfoLog( program = GL glGetProgramiv( program = GL glGetRenderbufferParameteriv( target = GL glGetShaderInfoLog( shader = GL glGetShaderSource( shader = GL glGetShaderiv( shader = GL glGetString( name = GL glGetTexParameterfv( target = GL glGetTexParameteri""v( target = GL glGetUniformLocation( program = GL glGetUniformfv( program = GL glGetUniformiv( program = GL glGetVertexAttribfv( index = GL glGetVertexAttribiv( index = GL glHint( target = GL glIsBuffer( buffer = GL glIsEnabled( cap = GL glIsFramebuffer( framebuffer = GL glIsProgram( program = GL glIsRenderbuffer( renderbuffer = GL glIsShader( shader = GL glIsTexture( texture = GL glLineWidth( width = GL glLinkProgram( program = GL glPixelStorei( pname = GL glPolygonOffset( factor = GL glReadPixels( x = GL glRenderbufferStorage( target = GL glSampleCoverage( value = GL glScissor( x = GL glShaderSource( shader = GL glStencilFuncSeparate( face = GL glStencilFunc( func = GL glStencilMaskSeparate( face = GL glStencilMask( mask = GL glStencilOpSeparate( face = GL glStencilOp( fail = GL glTexImage2D( target = GL glTexParameterf( target = GL glTexParameteri( target = GL glTexSubImage2D( target = GL glUniform1f( location = GL glUniform1fv( location = GL glUniform1i( location = GL glUniform1iv( location = GL glUniform2f( location = GL glUniform2fv( location = GL glUniform2i( location = GL glUniform2iv( location = GL glUniform3f( location = GL glUniform3fv( location = GL glUniform3i( location = GL glUniform3iv( location = GL glUniform4f( location = GL glUniform4fv( location = GL glUniform4i( location = GL glUniform4iv( location = GL glUniformMatrix4fv( location = GL glUseProgram( program = GL glValidateProgram( program = GL glVertexAttrib1f( indx = GL glVertexAttrib2f( indx = GL glVertexAttrib3f( indx = GL glVertexAttrib4f( indx = GL glVertexAttribPointer( indx = GL glViewport( x = OpenGL Error  / , ),)?, alpha = , attachment = , blue = , border = , buffer = , buffers*=, bufsize = , count = , count*=, data*=, dfactor = , dstAlpha = , dstRGB = , fail = , first = , format = , framebuffer = , framebuffers*=, func = , green = , height = , imageSize = , index = , indices*=, infolog*=, internalformat = , invert = kivy/graphics/cgl_backend/cgl_debug.pyx, length*=, level = , location"" = , mask = , maxcount = , mode = , modeAlpha = , name*=, normalized = , offset = , param = , params*=, pixels*=, pname = , ptr*=, ref = , renderbuffer = , renderbuffers*=, renderbuffertarget = , shader = , shaders*=, size = , size*=, source*=, srcAlpha = , stride = , string**=, textarget = , texture = , textures*=, transpose = , type = , type*=, units = , usage = , v*=, value*=, w = , width = , x = , xoffset = , y = , yoffset = , z = , zfail = , zpass = __Pyx_PyDict_NextRefargsasyncio.coroutinescline_in_tracebackd__func__gl_check_errorgl_debug_printinit_backend_debugis_backend_supported_is_coroutineitemskivy.graphics.cgl_backend.cgl_debug__main____module____name__print__qualname__ret__set_name__setdefault__test__valuesx\200\001\330\004\013\2101\200\001\330\004\t\210\021\210\"\210E\220\021\220!\2203\220a\220s\230$\230e\2401\200\001\330\002\010\210\n\220+\230Q\330\002\005\200Q\330\006\013\2101\320\014&\240e\2501\200\001\330\004\r\320\r \240\001\330\004\r\320\r\037\230q\330\004\r\320\r%\240Q\330\004\r\320\r\035\230Q\330\004\r\320\r\"\240!\330\004\r\320\r#\2401\330\004\r\320\r\036\230a\330\004\r\320\r\035\230Q\330\004\r\320\r \240\001\330\004\r\320\r(\250\001\330\004\r\210_\230A\330\004\r\320\r$\240A\330\004\r\320\r\035\230Q\330\004\r\320\r \240\001\330\004\r\320\r)\250\021\330\004\r\210[\230\001\330\004\r\320\r\035\230Q\330\004\r\320\r\037\230q\330\004\r\210_\230A\330\004\r\320\r \240\001\330\004\r\320\r'\240q\330\004\r\320\r*\250!\330\004\r\320\r!\240\021\330\004\r\320\r$\240A\330\004\r\320\r \240\001\330\004\r\320\r\037\230q\330\004\r\210^\2301\330\004\r\320\r \240\001\330\004\r\320\r%\240Q\330\004\r\320\r \240\001\330\004\r\320\r&\240a\330\004\r\320\r\037\230q\330\004\r\320\r!\240\021\330\004\r\210_\230A\330\004\r\210_\230A\330\004\r\320\r\037\230q\330\004\r\210]\230!\330\004\r\320\r+\2501\330\004\r\320\r\035\230Q\330\004\r\320\r\037\230q\330\004\r\210\\\230\021\330\004\r\320\r*\250!\330\004\r\210\\\230\021\330\004\r\210[\230\001\330\004\r\320\r*\250!\330\004\r""\320\r'\240q\330\004\r\210_\230A\330\004\r\320\r\035\230Q\330\004\r\320\r!\240\021\330\004\r\320\r\"\240!\330\004\r\320\r#\2401\330\004\r\320\r\036\230a\330\004\r\320\r\"\240!\330\004\r\320\r#\2401\330\004\r\320\r%\240Q\330\004\r\320\r$\240A\330\004\r\320\r\036\230a\330\004\r\320\r'\240q\330\004\r\210^\2301\330\004\r\210_\230A\330\004\r\320\r6\260a\330\004\r\320\r\036\230a\330\004\r\320\r$\240A\330\004\r\320\r\037\230q\330\004\r\320\r-\250Q\330\004\r\320\r#\2401\330\004\r\320\r\036\230a\330\004\r\320\r\"\240!\330\004\r\210_\230A\330\004\r\320\r$\240A\330\004\r\320\r$\240A\330\004\r\320\r\037\230q\330\004\r\320\r\037\230q\330\004\r\320\r%\240Q\330\004\r\320\r$\240A\330\004\r\320\r$\240A\330\004\r\210Z\220q\330\004\r\210^\2301\330\004\r\210_\230A\330\004\r\320\r \240\001\330\004\r\210_\230A\330\004\r\320\r!\240\021\330\004\r\210^\2301\330\004\r\210_\230A\330\004\r\210_\230A\330\004\r\320\r\036\230a\330\004\r\320\r\036\230a\330\004\r\320\r \240\001\330\004\r\320\r\035\230Q\330\004\r\320\r&\240a\330\004\r\320\r!\240\021\330\004\r\210]\230!\340\004\r\320\r\037\230q\330\004\r\320\r\036\230a\330\004\r\320\r&\240a\330\004\r\320\r\036\230a\330\004\r\320\r&\240a\330\004\r\210_\230A\330\004\r\320\r$\240A\330\004\r\320\r\035\230Q\330\004\r\320\r \240\001\330\004\r\320\r \240\001\330\004\r\320\r \240\001\330\004\r\210_\230A\330\004\r\320\r\035\230Q\330\004\r\210_\230A\330\004\r\320\r\035\230Q\330\004\r\210_\230A\330\004\r\320\r\035\230Q\330\004\r\210_\230A\330\004\r\320\r\035\230Q\330\004\r\210_\230A\330\004\r\320\r\035\230Q\330\004\r\210_\230A\330\004\r\320\r\035\230Q\330\004\r\210_\230A\330\004\r\320\r\035\230Q\330\004\r\210_\230A\330\004\r\320\r\035\230Q\330\004\r\320\r#\2401\330\004\r\320\r\035\230Q\330\004\r\320\r\"\240!\330\004\r\320\r!\240\021\330\004\r\320\r!\240\021\330\004\r\320\r!\240\021\330\004\r\320\r!\240\021\330\004\r\320\r&\240a\330\004\r\210^\2301\340\004\005\330\004\021\220\037\240\001\330\004\023\2201\220A__pyx_t_4kivy_8graphics_3cgl_GLES2_Context *\000double""\000int\000\000unsigned long\000cgl\000pi\000kivy_opengl_es2\000verify_gl_main_thread\000initialized_tid__pyx_t_4kivy_8graphics_3cgl_GLES2_Context *(void)\000void (__pyx_t_4kivy_8graphics_3cgl_GLES2_Context *)\000cgl_get_context\000cgl_set_context";
    PyObject *data = NULL;
    CYTHON_UNUSED_VAR(__Pyx_DecompressString);
    #endif
    PyObject **stringtab = __pyx_mstate->__pyx_string_tab;
    Py_ssize_t pos = 0;
    for (int i = 0; i < 231; i++) {
      Py_ssize_t bytes_length = index[i].length;
      PyObject *string = PyUnicode_DecodeUTF8(bytes + pos, bytes_length, NULL);
      if (likely(string) && i >= 207) PyUnicode_InternInPlace(&string);
      if (unlikely(!string)) {
        Py_XDECREF(data);
        __PYX_ERR(0, 1, __pyx_L1_error)
      }
      stringtab[i] = string;
      pos += bytes_length;
    }
    for (int i = 231; i < 237; i++) {
      Py_ssize_t bytes_length = index[i].length;
      PyObject *string = PyBytes_FromStringAndSize(bytes + pos, bytes_length);
      stringtab[i] = string;
      pos += bytes_length;
      if (unlikely(!string)) {
        Py_XDECREF(data);
        __PYX_ERR(0, 1, __pyx_L1_error)
      }
    }
    Py_XDECREF(data);
    for (Py_ssize_t i = 0; i < 237; i++) {
      if (unlikely(PyObject_Hash(stringtab[i]) == -1)) {
        __PYX_ERR(0, 1, __pyx_L1_error)
      }
    }
    #if CYTHON_IMMORTAL_CONSTANTS
    {
      PyObject **table = stringtab + 231;
      for (Py_ssize_t i=0; i<6; ++i) {
        #if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
        Py_SET_REFCNT(table[i], _Py_IMMORTAL_REFCNT_LOCAL);
        #else
        Py_SET_REFCNT(table[i], _Py_IMMORTAL_INITIAL_REFCNT);
        #endif
      }
    }
    #endif
  }
  return 0;
  __pyx_L1_error:;
  return -1;
}
/* #### Code section: init_codeobjects ### */
typedef struct {
    unsigned int argcount : 1;
    unsigned int num_posonly_args : 1;
    unsigned int num_kwonly_args : 1;
    unsigned int nlocals : 2;
    unsigned int flags : 10;
    unsigned int first_line : 11;
} __Pyx_PyCode_New_function_description;
/* NewCodeObj.proto */
static PyObject* __Pyx_PyCode_New(
        const __Pyx_PyCode_New_function_description descr,
        PyObject * const *varnames,
        PyObject *filename,
        PyObject *funcname,
        PyObject *line_table,
        PyObject *tuple_dedup_map
);


static int __Pyx_CreateCodeObjects(__pyx_mstatetype *__pyx_mstate) {
  PyObject* tuple_dedup_map = PyDict_New();
  if (unlikely(!tuple_dedup_map)) return -1;
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 0, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 11};
    PyObject* const varnames[] = {0};
    __pyx_mstate_global->__pyx_codeobj_tab[0] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_cgl_backend_cgl_de_2, __pyx_mstate->__pyx_n_u_is_backend_supported, __pyx_mstate->__pyx_kp_b_iso88591_1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[0])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 2, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS|CO_VARARGS), 14};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_args, __pyx_mstate->__pyx_n_u_x};
    __pyx_mstate_global->__pyx_codeobj_tab[1] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_cgl_backend_cgl_de_2, __pyx_mstate->__pyx_n_u_gl_debug_print, __pyx_mstate->__pyx_kp_b_iso88591_E_3as_e1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[1])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 1, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 17};
    PyObject* const varnames[] = {__pyx_mstate->__pyx_n_u_ret};
    __pyx_mstate_global->__pyx_codeobj_tab[2] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_cgl_backend_cgl_de_2, __pyx_mstate->__pyx_n_u_gl_check_error, __pyx_mstate->__pyx_kp_b_iso88591_Q_Q_1_e1, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[2])) goto bad;
  }
  {
    const __Pyx_PyCode_New_function_description descr = {0, 0, 0, 0, (unsigned int)(CO_OPTIMIZED|CO_NEWLOCALS), 1291};
    PyObject* const varnames[] = {0};
    __pyx_mstate_global->__pyx_codeobj_tab[3] = __Pyx_PyCode_New(descr, varnames, __pyx_mstate->__pyx_kp_u_kivy_graphics_cgl_backend_cgl_de_2, __pyx_mstate->__pyx_n_u_init_backend_debug, __pyx_mstate->__pyx_kp_b_iso88591_q_Q_Q_1_a_Q__A_A_Q_Q_q__A_q_A_q, tuple_dedup_map); if (unlikely(!__pyx_mstate_global->__pyx_codeobj_tab[3])) goto bad;
  }
  Py_DECREF(tuple_dedup_map);
  return 0;
  bad:
  Py_DECREF(tuple_dedup_map);
  return -1;
}
/* #### Code section: init_globals ### */

static int __Pyx_InitGlobals(void) {
  /* PythonCompatibility.init */
  if (likely(__Pyx_init_co_variables() == 0)); else
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  /* CommonTypesMetaclass.init */
  if (likely(__pyx_CommonTypesMetaclass_init(__pyx_m) == 0)); else
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  /* CachedMethodType.init */
  #if CYTHON_COMPILING_IN_LIMITED_API
  {
      PyObject *typesModule=NULL;
      typesModule = PyImport_ImportModule("types");
      if (typesModule) {
          __pyx_mstate_global->__Pyx_CachedMethodType = PyObject_GetAttrString(typesModule, "MethodType");
          Py_DECREF(typesModule);
      }
  } // error handling follows
  #endif
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  /* CythonFunctionShared.init */
  if (likely(__pyx_CyFunction_init(__pyx_m) == 0)); else
  
  if (unlikely(PyErr_Occurred())) __PYX_ERR(0, 1, __pyx_L1_error)

  return 0;
  __pyx_L1_error:;
  return -1;
}
/* #### Code section: cleanup_globals ### */
/* #### Code section: cleanup_module ### */
/* #### Code section: main_method ### */
/* #### Code section: utility_code_pragmas ### */
#ifdef _MSC_VER
#pragma warning( push )
/* Warning 4127: conditional expression is constant
 * Cython uses constant conditional expressions to allow in inline functions to be optimized at
 * compile-time, so this warning is not useful
 */
#pragma warning( disable : 4127 )
#endif



/* #### Code section: utility_code_def ### */

/* --- Runtime support code --- */
/* Refnanny */
#if CYTHON_REFNANNY
static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) {
    PyObject *m = NULL, *p = NULL;
    void *r = NULL;
    m = PyImport_ImportModule(modname);
    if (!m) goto end;
    p = PyObject_GetAttrString(m, "RefNannyAPI");
    if (!p) goto end;
    r = PyLong_AsVoidPtr(p);
end:
    Py_XDECREF(p);
    Py_XDECREF(m);
    return (__Pyx_RefNannyAPIStruct *)r;
}
#endif

/* PyErrExceptionMatches (used by PyObjectGetAttrStrNoError) */
#if CYTHON_FAST_THREAD_STATE
static int __Pyx_PyErr_ExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
    Py_ssize_t i, n;
    n = PyTuple_GET_SIZE(tuple);
    for (i=0; i<n; i++) {
        if (exc_type == PyTuple_GET_ITEM(tuple, i)) return 1;
    }
    for (i=0; i<n; i++) {
        if (__Pyx_PyErr_GivenExceptionMatches(exc_type, PyTuple_GET_ITEM(tuple, i))) return 1;
    }
    return 0;
}
static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err) {
    int result;
    PyObject *exc_type;
#if PY_VERSION_HEX >= 0x030C00A6
    PyObject *current_exception = tstate->current_exception;
    if (unlikely(!current_exception)) return 0;
    exc_type = (PyObject*) Py_TYPE(current_exception);
    if (exc_type == err) return 1;
#else
    exc_type = tstate->curexc_type;
    if (exc_type == err) return 1;
    if (unlikely(!exc_type)) return 0;
#endif
    #if CYTHON_AVOID_BORROWED_REFS
    Py_INCREF(exc_type);
    #endif
    if (unlikely(PyTuple_Check(err))) {
        result = __Pyx_PyErr_ExceptionMatchesTuple(exc_type, err);
    } else {
        result = __Pyx_PyErr_GivenExceptionMatches(exc_type, err);
    }
    #if CYTHON_AVOID_BORROWED_REFS
    Py_DECREF(exc_type);
    #endif
    return result;
}
#endif

/* PyErrFetchRestore (used by PyObjectGetAttrStrNoError) */
#if CYTHON_FAST_THREAD_STATE
static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
#if PY_VERSION_HEX >= 0x030C00A6
    PyObject *tmp_value;
    assert(type == NULL || (value != NULL && type == (PyObject*) Py_TYPE(value)));
    if (value) {
        #if CYTHON_COMPILING_IN_CPYTHON
        if (unlikely(((PyBaseExceptionObject*) value)->traceback != tb))
        #endif
            PyException_SetTraceback(value, tb);
    }
    tmp_value = tstate->current_exception;
    tstate->current_exception = value;
    Py_XDECREF(tmp_value);
    Py_XDECREF(type);
    Py_XDECREF(tb);
#else
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    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);
#endif
}
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
#if PY_VERSION_HEX >= 0x030C00A6
    PyObject* exc_value;
    exc_value = tstate->current_exception;
    tstate->current_exception = 0;
    *value = exc_value;
    *type = NULL;
    *tb = NULL;
    if (exc_value) {
        *type = (PyObject*) Py_TYPE(exc_value);
        Py_INCREF(*type);
        #if CYTHON_COMPILING_IN_CPYTHON
        *tb = ((PyBaseExceptionObject*) exc_value)->traceback;
        Py_XINCREF(*tb);
        #else
        *tb = PyException_GetTraceback(exc_value);
        #endif
    }
#else
    *type = tstate->curexc_type;
    *value = tstate->curexc_value;
    *tb = tstate->curexc_traceback;
    tstate->curexc_type = 0;
    tstate->curexc_value = 0;
    tstate->curexc_traceback = 0;
#endif
}
#endif

/* PyObjectGetAttrStr (used by PyObjectGetAttrStrNoError) */
#if CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) {
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_getattro))
        return tp->tp_getattro(obj, attr_name);
    return PyObject_GetAttr(obj, attr_name);
}
#endif

/* PyObjectGetAttrStrNoError (used by GetBuiltinName) */
#if __PYX_LIMITED_VERSION_HEX < 0x030d0000
static void __Pyx_PyObject_GetAttrStr_ClearAttributeError(void) {
    __Pyx_PyThreadState_declare
    __Pyx_PyThreadState_assign
    if (likely(__Pyx_PyErr_ExceptionMatches(PyExc_AttributeError)))
        __Pyx_PyErr_Clear();
}
#endif
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStrNoError(PyObject* obj, PyObject* attr_name) {
    PyObject *result;
#if __PYX_LIMITED_VERSION_HEX >= 0x030d0000
    (void) PyObject_GetOptionalAttr(obj, attr_name, &result);
    return result;
#else
#if CYTHON_COMPILING_IN_CPYTHON && CYTHON_USE_TYPE_SLOTS
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_getattro == PyObject_GenericGetAttr)) {
        return _PyObject_GenericGetAttrWithDict(obj, attr_name, NULL, 1);
    }
#endif
    result = __Pyx_PyObject_GetAttrStr(obj, attr_name);
    if (unlikely(!result)) {
        __Pyx_PyObject_GetAttrStr_ClearAttributeError();
    }
    return result;
#endif
}

/* GetBuiltinName */
static PyObject *__Pyx_GetBuiltinName(PyObject *name) {
    PyObject* result = __Pyx_PyObject_GetAttrStrNoError(__pyx_mstate_global->__pyx_b, name);
    if (unlikely(!result) && !PyErr_Occurred()) {
        PyErr_Format(PyExc_NameError,
            "name '%U' is not defined", name);
    }
    return result;
}

/* TupleAndListFromArray (used by fastcall) */
#if !CYTHON_COMPILING_IN_CPYTHON && CYTHON_METH_FASTCALL
static CYTHON_INLINE PyObject *
__Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n)
{
    PyObject *res;
    Py_ssize_t i;
    if (n <= 0) {
        return __Pyx_NewRef(__pyx_mstate_global->__pyx_empty_tuple);
    }
    res = PyTuple_New(n);
    if (unlikely(res == NULL)) return NULL;
    for (i = 0; i < n; i++) {
        if (unlikely(__Pyx_PyTuple_SET_ITEM(res, i, src[i]) < (0))) {
            Py_DECREF(res);
            return NULL;
        }
        Py_INCREF(src[i]);
    }
    return res;
}
#elif CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE void __Pyx_copy_object_array(PyObject *const *CYTHON_RESTRICT src, PyObject** CYTHON_RESTRICT dest, Py_ssize_t length) {
    PyObject *v;
    Py_ssize_t i;
    for (i = 0; i < length; i++) {
        v = dest[i] = src[i];
        Py_INCREF(v);
    }
}
static CYTHON_INLINE PyObject *
__Pyx_PyTuple_FromArray(PyObject *const *src, Py_ssize_t n)
{
    PyObject *res;
    if (n <= 0) {
        return __Pyx_NewRef(__pyx_mstate_global->__pyx_empty_tuple);
    }
    res = PyTuple_New(n);
    if (unlikely(res == NULL)) return NULL;
    __Pyx_copy_object_array(src, ((PyTupleObject*)res)->ob_item, n);
    return res;
}
static CYTHON_INLINE PyObject *
__Pyx_PyList_FromArray(PyObject *const *src, Py_ssize_t n)
{
    PyObject *res;
    if (n <= 0) {
        return PyList_New(0);
    }
    res = PyList_New(n);
    if (unlikely(res == NULL)) return NULL;
    __Pyx_copy_object_array(src, ((PyListObject*)res)->ob_item, n);
    return res;
}
#endif

/* BytesEquals (used by UnicodeEquals) */
static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals) {
#if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_GRAAL ||\
        !(CYTHON_ASSUME_SAFE_SIZE && CYTHON_ASSUME_SAFE_MACROS)
    return PyObject_RichCompareBool(s1, s2, equals);
#else
    if (s1 == s2) {
        return (equals == Py_EQ);
    } else if (PyBytes_CheckExact(s1) & PyBytes_CheckExact(s2)) {
        const char *ps1, *ps2;
        Py_ssize_t length = PyBytes_GET_SIZE(s1);
        if (length != PyBytes_GET_SIZE(s2))
            return (equals == Py_NE);
        ps1 = PyBytes_AS_STRING(s1);
        ps2 = PyBytes_AS_STRING(s2);
        if (ps1[0] != ps2[0]) {
            return (equals == Py_NE);
        } else if (length == 1) {
            return (equals == Py_EQ);
        } else {
            int result;
#if CYTHON_USE_UNICODE_INTERNALS && (PY_VERSION_HEX < 0x030B0000)
            Py_hash_t hash1, hash2;
            hash1 = ((PyBytesObject*)s1)->ob_shash;
            hash2 = ((PyBytesObject*)s2)->ob_shash;
            if (hash1 != hash2 && hash1 != -1 && hash2 != -1) {
                return (equals == Py_NE);
            }
#endif
            result = memcmp(ps1, ps2, (size_t)length);
            return (equals == Py_EQ) ? (result == 0) : (result != 0);
        }
    } else if ((s1 == Py_None) & PyBytes_CheckExact(s2)) {
        return (equals == Py_NE);
    } else if ((s2 == Py_None) & PyBytes_CheckExact(s1)) {
        return (equals == Py_NE);
    } else {
        int result;
        PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
        if (!py_result)
            return -1;
        result = __Pyx_PyObject_IsTrue(py_result);
        Py_DECREF(py_result);
        return result;
    }
#endif
}

/* UnicodeEquals (used by fastcall) */
static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals) {
#if CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_GRAAL
    return PyObject_RichCompareBool(s1, s2, equals);
#else
    int s1_is_unicode, s2_is_unicode;
    if (s1 == s2) {
        goto return_eq;
    }
    s1_is_unicode = PyUnicode_CheckExact(s1);
    s2_is_unicode = PyUnicode_CheckExact(s2);
    if (s1_is_unicode & s2_is_unicode) {
        Py_ssize_t length, length2;
        int kind;
        void *data1, *data2;
        #if !CYTHON_COMPILING_IN_LIMITED_API
        if (unlikely(__Pyx_PyUnicode_READY(s1) < 0) || unlikely(__Pyx_PyUnicode_READY(s2) < 0))
            return -1;
        #endif
        length = __Pyx_PyUnicode_GET_LENGTH(s1);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(length < 0)) return -1;
        #endif
        length2 = __Pyx_PyUnicode_GET_LENGTH(s2);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(length2 < 0)) return -1;
        #endif
        if (length != length2) {
            goto return_ne;
        }
#if CYTHON_USE_UNICODE_INTERNALS
        {
            Py_hash_t hash1, hash2;
            hash1 = ((PyASCIIObject*)s1)->hash;
            hash2 = ((PyASCIIObject*)s2)->hash;
            if (hash1 != hash2 && hash1 != -1 && hash2 != -1) {
                goto return_ne;
            }
        }
#endif
        kind = __Pyx_PyUnicode_KIND(s1);
        if (kind != __Pyx_PyUnicode_KIND(s2)) {
            goto return_ne;
        }
        data1 = __Pyx_PyUnicode_DATA(s1);
        data2 = __Pyx_PyUnicode_DATA(s2);
        if (__Pyx_PyUnicode_READ(kind, data1, 0) != __Pyx_PyUnicode_READ(kind, data2, 0)) {
            goto return_ne;
        } else if (length == 1) {
            goto return_eq;
        } else {
            int result = memcmp(data1, data2, (size_t)(length * kind));
            return (equals == Py_EQ) ? (result == 0) : (result != 0);
        }
    } else if ((s1 == Py_None) & s2_is_unicode) {
        goto return_ne;
    } else if ((s2 == Py_None) & s1_is_unicode) {
        goto return_ne;
    } else {
        int result;
        PyObject* py_result = PyObject_RichCompare(s1, s2, equals);
        if (!py_result)
            return -1;
        result = __Pyx_PyObject_IsTrue(py_result);
        Py_DECREF(py_result);
        return result;
    }
return_eq:
    return (equals == Py_EQ);
return_ne:
    return (equals == Py_NE);
#endif
}

/* fastcall */
#if CYTHON_METH_FASTCALL
static CYTHON_INLINE PyObject * __Pyx_GetKwValue_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues, PyObject *s)
{
    Py_ssize_t i, n = __Pyx_PyTuple_GET_SIZE(kwnames);
    #if !CYTHON_ASSUME_SAFE_SIZE
    if (unlikely(n == -1)) return NULL;
    #endif
    for (i = 0; i < n; i++)
    {
        PyObject *namei = __Pyx_PyTuple_GET_ITEM(kwnames, i);
        #if !CYTHON_ASSUME_SAFE_MACROS
        if (unlikely(!namei)) return NULL;
        #endif
        if (s == namei) return kwvalues[i];
    }
    for (i = 0; i < n; i++)
    {
        PyObject *namei = __Pyx_PyTuple_GET_ITEM(kwnames, i);
        #if !CYTHON_ASSUME_SAFE_MACROS
        if (unlikely(!namei)) return NULL;
        #endif
        int eq = __Pyx_PyUnicode_Equals(s, namei, Py_EQ);
        if (unlikely(eq != 0)) {
            if (unlikely(eq < 0)) return NULL;
            return kwvalues[i];
        }
    }
    return NULL;
}
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030d0000 || CYTHON_COMPILING_IN_LIMITED_API
CYTHON_UNUSED static PyObject *__Pyx_KwargsAsDict_FASTCALL(PyObject *kwnames, PyObject *const *kwvalues) {
    Py_ssize_t i, nkwargs;
    PyObject *dict;
#if !CYTHON_ASSUME_SAFE_SIZE
    nkwargs = PyTuple_Size(kwnames);
    if (unlikely(nkwargs < 0)) return NULL;
#else
    nkwargs = PyTuple_GET_SIZE(kwnames);
#endif
    dict = PyDict_New();
    if (unlikely(!dict))
        return NULL;
    for (i=0; i<nkwargs; i++) {
#if !CYTHON_ASSUME_SAFE_MACROS
        PyObject *key = PyTuple_GetItem(kwnames, i);
        if (!key) goto bad;
#else
        PyObject *key = PyTuple_GET_ITEM(kwnames, i);
#endif
        if (unlikely(PyDict_SetItem(dict, key, kwvalues[i]) < 0))
            goto bad;
    }
    return dict;
bad:
    Py_DECREF(dict);
    return NULL;
}
#endif
#endif

/* PyObjectCall (used by PyObjectFastCall) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) {
    PyObject *result;
    ternaryfunc call = Py_TYPE(func)->tp_call;
    if (unlikely(!call))
        return PyObject_Call(func, arg, kw);
    if (unlikely(Py_EnterRecursiveCall(" while calling a Python object")))
        return NULL;
    result = (*call)(func, arg, kw);
    Py_LeaveRecursiveCall();
    if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
        PyErr_SetString(
            PyExc_SystemError,
            "NULL result without error in PyObject_Call");
    }
    return result;
}
#endif

/* PyObjectCallMethO (used by PyObjectFastCall) */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) {
    PyObject *self, *result;
    PyCFunction cfunc;
    cfunc = __Pyx_CyOrPyCFunction_GET_FUNCTION(func);
    self = __Pyx_CyOrPyCFunction_GET_SELF(func);
    if (unlikely(Py_EnterRecursiveCall(" while calling a Python object")))
        return NULL;
    result = cfunc(self, arg);
    Py_LeaveRecursiveCall();
    if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
        PyErr_SetString(
            PyExc_SystemError,
            "NULL result without error in PyObject_Call");
    }
    return result;
}
#endif

/* PyObjectFastCall (used by PyObjectCallOneArg) */
#if PY_VERSION_HEX < 0x03090000 || CYTHON_COMPILING_IN_LIMITED_API
static PyObject* __Pyx_PyObject_FastCall_fallback(PyObject *func, PyObject * const*args, size_t nargs, PyObject *kwargs) {
    PyObject *argstuple;
    PyObject *result = 0;
    size_t i;
    argstuple = PyTuple_New((Py_ssize_t)nargs);
    if (unlikely(!argstuple)) return NULL;
    for (i = 0; i < nargs; i++) {
        Py_INCREF(args[i]);
        if (__Pyx_PyTuple_SET_ITEM(argstuple, (Py_ssize_t)i, args[i]) != (0)) goto bad;
    }
    result = __Pyx_PyObject_Call(func, argstuple, kwargs);
  bad:
    Py_DECREF(argstuple);
    return result;
}
#endif
#if CYTHON_VECTORCALL && !CYTHON_COMPILING_IN_LIMITED_API
  #if PY_VERSION_HEX < 0x03090000
    #define __Pyx_PyVectorcall_Function(callable) _PyVectorcall_Function(callable)
  #elif CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE vectorcallfunc __Pyx_PyVectorcall_Function(PyObject *callable) {
    PyTypeObject *tp = Py_TYPE(callable);
    #if defined(__Pyx_CyFunction_USED)
    if (__Pyx_CyFunction_CheckExact(callable)) {
        return __Pyx_CyFunction_func_vectorcall(callable);
    }
    #endif
    if (!PyType_HasFeature(tp, Py_TPFLAGS_HAVE_VECTORCALL)) {
        return NULL;
    }
    assert(PyCallable_Check(callable));
    Py_ssize_t offset = tp->tp_vectorcall_offset;
    assert(offset > 0);
    vectorcallfunc ptr;
    memcpy(&ptr, (char *) callable + offset, sizeof(ptr));
    return ptr;
}
  #else
    #define __Pyx_PyVectorcall_Function(callable) PyVectorcall_Function(callable)
  #endif
#endif
static CYTHON_INLINE PyObject* __Pyx_PyObject_FastCallDict(PyObject *func, PyObject *const *args, size_t _nargs, PyObject *kwargs) {
    Py_ssize_t nargs = __Pyx_PyVectorcall_NARGS(_nargs);
#if CYTHON_COMPILING_IN_CPYTHON
    if (nargs == 0 && kwargs == NULL) {
        if (__Pyx_CyOrPyCFunction_Check(func) && likely( __Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_NOARGS))
            return __Pyx_PyObject_CallMethO(func, NULL);
    }
    else if (nargs == 1 && kwargs == NULL) {
        if (__Pyx_CyOrPyCFunction_Check(func) && likely( __Pyx_CyOrPyCFunction_GET_FLAGS(func) & METH_O))
            return __Pyx_PyObject_CallMethO(func, args[0]);
    }
#endif
    if (kwargs == NULL) {
        #if CYTHON_VECTORCALL
          #if CYTHON_COMPILING_IN_LIMITED_API
            return PyObject_Vectorcall(func, args, _nargs, NULL);
          #else
            vectorcallfunc f = __Pyx_PyVectorcall_Function(func);
            if (f) {
                return f(func, args, _nargs, NULL);
            }
          #endif
        #endif
    }
    if (nargs == 0) {
        return __Pyx_PyObject_Call(func, __pyx_mstate_global->__pyx_empty_tuple, kwargs);
    }
    #if PY_VERSION_HEX >= 0x03090000 && !CYTHON_COMPILING_IN_LIMITED_API
    return PyObject_VectorcallDict(func, args, (size_t)nargs, kwargs);
    #else
    return __Pyx_PyObject_FastCall_fallback(func, args, (size_t)nargs, kwargs);
    #endif
}

/* PyObjectCallOneArg (used by CallUnboundCMethod0) */
static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) {
    PyObject *args[2] = {NULL, arg};
    return __Pyx_PyObject_FastCall(func, args+1, 1 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET);
}

/* UnpackUnboundCMethod (used by CallUnboundCMethod0) */
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030C0000
static PyObject *__Pyx_SelflessCall(PyObject *method, PyObject *args, PyObject *kwargs) {
    PyObject *result;
    PyObject *selfless_args = PyTuple_GetSlice(args, 1, PyTuple_Size(args));
    if (unlikely(!selfless_args)) return NULL;
    result = PyObject_Call(method, selfless_args, kwargs);
    Py_DECREF(selfless_args);
    return result;
}
#elif CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x03090000
static PyObject *__Pyx_SelflessCall(PyObject *method, PyObject **args, Py_ssize_t nargs, PyObject *kwnames) {
        return _PyObject_Vectorcall
            (method, args ? args+1 : NULL, nargs ? nargs-1 : 0, kwnames);
}
#else
static PyObject *__Pyx_SelflessCall(PyObject *method, PyObject *const *args, Py_ssize_t nargs, PyObject *kwnames) {
    return
#if PY_VERSION_HEX < 0x03090000
    _PyObject_Vectorcall
#else
    PyObject_Vectorcall
#endif
        (method, args ? args+1 : NULL, nargs ? (size_t) nargs-1 : 0, kwnames);
}
#endif
static PyMethodDef __Pyx_UnboundCMethod_Def = {
     "CythonUnboundCMethod",
     __PYX_REINTERPRET_FUNCION(PyCFunction, __Pyx_SelflessCall),
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030C0000
     METH_VARARGS | METH_KEYWORDS,
#else
     METH_FASTCALL | METH_KEYWORDS,
#endif
     NULL
};
static int __Pyx_TryUnpackUnboundCMethod(__Pyx_CachedCFunction* target) {
    PyObject *method, *result=NULL;
    method = __Pyx_PyObject_GetAttrStr(target->type, *target->method_name);
    if (unlikely(!method))
        return -1;
    result = method;
#if CYTHON_COMPILING_IN_CPYTHON
    if (likely(__Pyx_TypeCheck(method, &PyMethodDescr_Type)))
    {
        PyMethodDescrObject *descr = (PyMethodDescrObject*) method;
        target->func = descr->d_method->ml_meth;
        target->flag = descr->d_method->ml_flags & ~(METH_CLASS | METH_STATIC | METH_COEXIST | METH_STACKLESS);
    } else
#endif
#if CYTHON_COMPILING_IN_PYPY
#else
    if (PyCFunction_Check(method))
#endif
    {
        PyObject *self;
        int self_found;
#if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY
        self = PyObject_GetAttrString(method, "__self__");
        if (!self) {
            PyErr_Clear();
        }
#else
        self = PyCFunction_GET_SELF(method);
#endif
        self_found = (self && self != Py_None);
#if CYTHON_COMPILING_IN_LIMITED_API || CYTHON_COMPILING_IN_PYPY
        Py_XDECREF(self);
#endif
        if (self_found) {
            PyObject *unbound_method = PyCFunction_New(&__Pyx_UnboundCMethod_Def, method);
            if (unlikely(!unbound_method)) return -1;
            Py_DECREF(method);
            result = unbound_method;
        }
    }
#if !CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    if (unlikely(target->method)) {
        Py_DECREF(result);
    } else
#endif
    target->method = result;
    return 0;
}

/* CallUnboundCMethod0 */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self) {
    int was_initialized = __Pyx_CachedCFunction_GetAndSetInitializing(cfunc);
    if (likely(was_initialized == 2 && cfunc->func)) {
        if (likely(cfunc->flag == METH_NOARGS))
            return __Pyx_CallCFunction(cfunc, self, NULL);
        if (likely(cfunc->flag == METH_FASTCALL))
            return __Pyx_CallCFunctionFast(cfunc, self, NULL, 0);
        if (cfunc->flag == (METH_FASTCALL | METH_KEYWORDS))
            return __Pyx_CallCFunctionFastWithKeywords(cfunc, self, NULL, 0, NULL);
        if (likely(cfunc->flag == (METH_VARARGS | METH_KEYWORDS)))
            return __Pyx_CallCFunctionWithKeywords(cfunc, self, __pyx_mstate_global->__pyx_empty_tuple, NULL);
        if (cfunc->flag == METH_VARARGS)
            return __Pyx_CallCFunction(cfunc, self, __pyx_mstate_global->__pyx_empty_tuple);
        return __Pyx__CallUnboundCMethod0(cfunc, self);
    }
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    else if (unlikely(was_initialized == 1)) {
        __Pyx_CachedCFunction tmp_cfunc = {
#ifndef __cplusplus
            0
#endif
        };
        tmp_cfunc.type = cfunc->type;
        tmp_cfunc.method_name = cfunc->method_name;
        return __Pyx__CallUnboundCMethod0(&tmp_cfunc, self);
    }
#endif
    PyObject *result = __Pyx__CallUnboundCMethod0(cfunc, self);
    __Pyx_CachedCFunction_SetFinishedInitializing(cfunc);
    return result;
}
#endif
static PyObject* __Pyx__CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self) {
    PyObject *result;
    if (unlikely(!cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0)) return NULL;
    result = __Pyx_PyObject_CallOneArg(cfunc->method, self);
    return result;
}

/* py_dict_items (used by OwnedDictNext) */
static CYTHON_INLINE PyObject* __Pyx_PyDict_Items(PyObject* d) {
    return __Pyx_CallUnboundCMethod0(&__pyx_mstate_global->__pyx_umethod_PyDict_Type_items, d);
}

/* py_dict_values (used by OwnedDictNext) */
static CYTHON_INLINE PyObject* __Pyx_PyDict_Values(PyObject* d) {
    return __Pyx_CallUnboundCMethod0(&__pyx_mstate_global->__pyx_umethod_PyDict_Type_values, d);
}

/* OwnedDictNext (used by RejectKeywords) */
#if CYTHON_AVOID_BORROWED_REFS
static int __Pyx_PyDict_NextRef(PyObject *p, PyObject **ppos, PyObject **pkey, PyObject **pvalue) {
    PyObject *next = NULL;
    if (!*ppos) {
        if (pvalue) {
            PyObject *dictview = pkey ? __Pyx_PyDict_Items(p) : __Pyx_PyDict_Values(p);
            if (unlikely(!dictview)) goto bad;
            *ppos = PyObject_GetIter(dictview);
            Py_DECREF(dictview);
        } else {
            *ppos = PyObject_GetIter(p);
        }
        if (unlikely(!*ppos)) goto bad;
    }
    next = PyIter_Next(*ppos);
    if (!next) {
        if (PyErr_Occurred()) goto bad;
        return 0;
    }
    if (pkey && pvalue) {
        *pkey = __Pyx_PySequence_ITEM(next, 0);
        if (unlikely(*pkey)) goto bad;
        *pvalue = __Pyx_PySequence_ITEM(next, 1);
        if (unlikely(*pvalue)) goto bad;
        Py_DECREF(next);
    } else if (pkey) {
        *pkey = next;
    } else {
        assert(pvalue);
        *pvalue = next;
    }
    return 1;
  bad:
    Py_XDECREF(next);
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d0000
    PyErr_FormatUnraisable("Exception ignored in __Pyx_PyDict_NextRef");
#else
    PyErr_WriteUnraisable(__pyx_mstate_global->__pyx_n_u_Pyx_PyDict_NextRef);
#endif
    if (pkey) *pkey = NULL;
    if (pvalue) *pvalue = NULL;
    return 0;
}
#else // !CYTHON_AVOID_BORROWED_REFS
static int __Pyx_PyDict_NextRef(PyObject *p, Py_ssize_t *ppos, PyObject **pkey, PyObject **pvalue) {
    int result = PyDict_Next(p, ppos, pkey, pvalue);
    if (likely(result == 1)) {
        if (pkey) Py_INCREF(*pkey);
        if (pvalue) Py_INCREF(*pvalue);
    }
    return result;
}
#endif

/* RejectKeywords */
static void __Pyx_RejectKeywords(const char* function_name, PyObject *kwds) {
    PyObject *key = NULL;
    if (CYTHON_METH_FASTCALL && likely(PyTuple_Check(kwds))) {
        key = __Pyx_PySequence_ITEM(kwds, 0);
    } else {
#if CYTHON_AVOID_BORROWED_REFS
        PyObject *pos = NULL;
#else
        Py_ssize_t pos = 0;
#endif
#if !CYTHON_COMPILING_IN_PYPY || defined(PyArg_ValidateKeywordArguments)
        if (unlikely(!PyArg_ValidateKeywordArguments(kwds))) return;
#endif
        __Pyx_PyDict_NextRef(kwds, &pos, &key, NULL);
#if CYTHON_AVOID_BORROWED_REFS
        Py_XDECREF(pos);
#endif
    }
    if (likely(key)) {
        PyErr_Format(PyExc_TypeError,
            "%s() got an unexpected keyword argument '%U'",
            function_name, key);
        Py_DECREF(key);
    }
}

/* CIntToDigits (used by CIntToPyUnicode) */
static const char DIGIT_PAIRS_10[2*10*10+1] = {
    "00010203040506070809"
    "10111213141516171819"
    "20212223242526272829"
    "30313233343536373839"
    "40414243444546474849"
    "50515253545556575859"
    "60616263646566676869"
    "70717273747576777879"
    "80818283848586878889"
    "90919293949596979899"
};
static const char DIGIT_PAIRS_8[2*8*8+1] = {
    "0001020304050607"
    "1011121314151617"
    "2021222324252627"
    "3031323334353637"
    "4041424344454647"
    "5051525354555657"
    "6061626364656667"
    "7071727374757677"
};
static const char DIGITS_HEX[2*16+1] = {
    "0123456789abcdef"
    "0123456789ABCDEF"
};

/* BuildPyUnicode (used by COrdinalToPyUnicode) */
static PyObject* __Pyx_PyUnicode_BuildFromAscii(Py_ssize_t ulength, const char* chars, int clength,
                                                int prepend_sign, char padding_char) {
    PyObject *uval;
    Py_ssize_t uoffset = ulength - clength;
#if CYTHON_USE_UNICODE_INTERNALS
    Py_ssize_t i;
    void *udata;
    uval = PyUnicode_New(ulength, 127);
    if (unlikely(!uval)) return NULL;
    udata = PyUnicode_DATA(uval);
    if (uoffset > 0) {
        i = 0;
        if (prepend_sign) {
            __Pyx_PyUnicode_WRITE(PyUnicode_1BYTE_KIND, udata, 0, '-');
            i++;
        }
        for (; i < uoffset; i++) {
            __Pyx_PyUnicode_WRITE(PyUnicode_1BYTE_KIND, udata, i, padding_char);
        }
    }
    for (i=0; i < clength; i++) {
        __Pyx_PyUnicode_WRITE(PyUnicode_1BYTE_KIND, udata, uoffset+i, chars[i]);
    }
#else
    {
        PyObject *sign = NULL, *padding = NULL;
        uval = NULL;
        if (uoffset > 0) {
            prepend_sign = !!prepend_sign;
            if (uoffset > prepend_sign) {
                padding = PyUnicode_FromOrdinal(padding_char);
                if (likely(padding) && uoffset > prepend_sign + 1) {
                    PyObject *tmp = PySequence_Repeat(padding, uoffset - prepend_sign);
                    Py_DECREF(padding);
                    padding = tmp;
                }
                if (unlikely(!padding)) goto done_or_error;
            }
            if (prepend_sign) {
                sign = PyUnicode_FromOrdinal('-');
                if (unlikely(!sign)) goto done_or_error;
            }
        }
        uval = PyUnicode_DecodeASCII(chars, clength, NULL);
        if (likely(uval) && padding) {
            PyObject *tmp = PyUnicode_Concat(padding, uval);
            Py_DECREF(uval);
            uval = tmp;
        }
        if (likely(uval) && sign) {
            PyObject *tmp = PyUnicode_Concat(sign, uval);
            Py_DECREF(uval);
            uval = tmp;
        }
done_or_error:
        Py_XDECREF(padding);
        Py_XDECREF(sign);
    }
#endif
    return uval;
}

/* COrdinalToPyUnicode (used by CIntToPyUnicode) */
static CYTHON_INLINE int __Pyx_CheckUnicodeValue(int value) {
    return value <= 1114111;
}
static PyObject* __Pyx_PyUnicode_FromOrdinal_Padded(int value, Py_ssize_t ulength, char padding_char) {
    Py_ssize_t padding_length = ulength - 1;
    if (likely((padding_length <= 250) && (value < 0xD800 || value > 0xDFFF))) {
        char chars[256];
        if (value <= 255) {
            memset(chars, padding_char, (size_t) padding_length);
            chars[ulength-1] = (char) value;
            return PyUnicode_DecodeLatin1(chars, ulength, NULL);
        }
        char *cpos = chars + sizeof(chars);
        if (value < 0x800) {
            *--cpos = (char) (0x80 | (value & 0x3f));
            value >>= 6;
            *--cpos = (char) (0xc0 | (value & 0x1f));
        } else if (value < 0x10000) {
            *--cpos = (char) (0x80 | (value & 0x3f));
            value >>= 6;
            *--cpos = (char) (0x80 | (value & 0x3f));
            value >>= 6;
            *--cpos = (char) (0xe0 | (value & 0x0f));
        } else {
            *--cpos = (char) (0x80 | (value & 0x3f));
            value >>= 6;
            *--cpos = (char) (0x80 | (value & 0x3f));
            value >>= 6;
            *--cpos = (char) (0x80 | (value & 0x3f));
            value >>= 6;
            *--cpos = (char) (0xf0 | (value & 0x07));
        }
        cpos -= padding_length;
        memset(cpos, padding_char, (size_t) padding_length);
        return PyUnicode_DecodeUTF8(cpos, chars + sizeof(chars) - cpos, NULL);
    }
    if (value <= 127 && CYTHON_USE_UNICODE_INTERNALS) {
        const char chars[1] = {(char) value};
        return __Pyx_PyUnicode_BuildFromAscii(ulength, chars, 1, 0, padding_char);
    }
    {
        PyObject *uchar, *padding_uchar, *padding, *result;
        padding_uchar = PyUnicode_FromOrdinal(padding_char);
        if (unlikely(!padding_uchar)) return NULL;
        padding = PySequence_Repeat(padding_uchar, padding_length);
        Py_DECREF(padding_uchar);
        if (unlikely(!padding)) return NULL;
        uchar = PyUnicode_FromOrdinal(value);
        if (unlikely(!uchar)) {
            Py_DECREF(padding);
            return NULL;
        }
        result = PyUnicode_Concat(padding, uchar);
        Py_DECREF(padding);
        Py_DECREF(uchar);
        return result;
    }
}

/* CIntToPyUnicode */
static CYTHON_INLINE PyObject* __Pyx_uchar___Pyx_PyUnicode_From_GLenum(GLenum value, Py_ssize_t width, char padding_char) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const GLenum neg_one = (GLenum) -1, const_zero = (GLenum) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!(is_unsigned || value == 0 || value > 0) ||
                    !(sizeof(value) <= 2 || value & ~ (GLenum) 0x01fffff || __Pyx_CheckUnicodeValue((int) value)))) {
        PyErr_SetString(PyExc_OverflowError, "%c arg not in range(0x110000)");
        return NULL;
    }
    if (width <= 1) {
        return PyUnicode_FromOrdinal((int) value);
    }
    return __Pyx_PyUnicode_FromOrdinal_Padded((int) value, width, padding_char);
}
static CYTHON_INLINE PyObject* __Pyx____Pyx_PyUnicode_From_GLenum(GLenum value, Py_ssize_t width, char padding_char, char format_char) {
    char digits[sizeof(GLenum)*3+2];
    char *dpos, *end = digits + sizeof(GLenum)*3+2;
    const char *hex_digits = DIGITS_HEX;
    Py_ssize_t length, ulength;
    int prepend_sign, last_one_off;
    GLenum remaining;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const GLenum neg_one = (GLenum) -1, const_zero = (GLenum) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (format_char == 'X') {
        hex_digits += 16;
        format_char = 'x';
    }
    remaining = value;
    last_one_off = 0;
    dpos = end;
    do {
        int digit_pos;
        switch (format_char) {
        case 'o':
            digit_pos = abs((int)(remaining % (8*8)));
            remaining = (GLenum) (remaining / (8*8));
            dpos -= 2;
            memcpy(dpos, DIGIT_PAIRS_8 + digit_pos * 2, 2);
            last_one_off = (digit_pos < 8);
            break;
        case 'd':
            digit_pos = abs((int)(remaining % (10*10)));
            remaining = (GLenum) (remaining / (10*10));
            dpos -= 2;
            memcpy(dpos, DIGIT_PAIRS_10 + digit_pos * 2, 2);
            last_one_off = (digit_pos < 10);
            break;
        case 'x':
            *(--dpos) = hex_digits[abs((int)(remaining % 16))];
            remaining = (GLenum) (remaining / 16);
            break;
        default:
            assert(0);
            break;
        }
    } while (unlikely(remaining != 0));
    assert(!last_one_off || *dpos == '0');
    dpos += last_one_off;
    length = end - dpos;
    ulength = length;
    prepend_sign = 0;
    if (!is_unsigned && value <= neg_one) {
        if (padding_char == ' ' || width <= length + 1) {
            *(--dpos) = '-';
            ++length;
        } else {
            prepend_sign = 1;
        }
        ++ulength;
    }
    if (width > ulength) {
        ulength = width;
    }
    if (ulength == 1) {
        return PyUnicode_FromOrdinal(*dpos);
    }
    return __Pyx_PyUnicode_BuildFromAscii(ulength, dpos, (int) length, prepend_sign, padding_char);
}

/* JoinPyUnicode */
static PyObject* __Pyx_PyUnicode_Join(PyObject** values, Py_ssize_t value_count, Py_ssize_t result_ulength,
                                      Py_UCS4 max_char) {
#if CYTHON_USE_UNICODE_INTERNALS && CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    PyObject *result_uval;
    int result_ukind, kind_shift;
    Py_ssize_t i, char_pos;
    void *result_udata;
    if (max_char > 1114111) max_char = 1114111;
    result_uval = PyUnicode_New(result_ulength, max_char);
    if (unlikely(!result_uval)) return NULL;
    result_ukind = (max_char <= 255) ? PyUnicode_1BYTE_KIND : (max_char <= 65535) ? PyUnicode_2BYTE_KIND : PyUnicode_4BYTE_KIND;
    kind_shift = (result_ukind == PyUnicode_4BYTE_KIND) ? 2 : result_ukind - 1;
    result_udata = PyUnicode_DATA(result_uval);
    assert(kind_shift == 2 || kind_shift == 1 || kind_shift == 0);
    if (unlikely((PY_SSIZE_T_MAX >> kind_shift) - result_ulength < 0))
        goto overflow;
    char_pos = 0;
    for (i=0; i < value_count; i++) {
        int ukind;
        Py_ssize_t ulength;
        void *udata;
        PyObject *uval = values[i];
        #if !CYTHON_COMPILING_IN_LIMITED_API
        if (__Pyx_PyUnicode_READY(uval) == (-1))
            goto bad;
        #endif
        ulength = __Pyx_PyUnicode_GET_LENGTH(uval);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(ulength < 0)) goto bad;
        #endif
        if (unlikely(!ulength))
            continue;
        if (unlikely((PY_SSIZE_T_MAX >> kind_shift) - ulength < char_pos))
            goto overflow;
        ukind = __Pyx_PyUnicode_KIND(uval);
        udata = __Pyx_PyUnicode_DATA(uval);
        if (ukind == result_ukind) {
            memcpy((char *)result_udata + (char_pos << kind_shift), udata, (size_t) (ulength << kind_shift));
        } else {
            #if PY_VERSION_HEX >= 0x030d0000
            if (unlikely(PyUnicode_CopyCharacters(result_uval, char_pos, uval, 0, ulength) < 0)) goto bad;
            #elif CYTHON_COMPILING_IN_CPYTHON || defined(_PyUnicode_FastCopyCharacters)
            _PyUnicode_FastCopyCharacters(result_uval, char_pos, uval, 0, ulength);
            #else
            Py_ssize_t j;
            for (j=0; j < ulength; j++) {
                Py_UCS4 uchar = __Pyx_PyUnicode_READ(ukind, udata, j);
                __Pyx_PyUnicode_WRITE(result_ukind, result_udata, char_pos+j, uchar);
            }
            #endif
        }
        char_pos += ulength;
    }
    return result_uval;
overflow:
    PyErr_SetString(PyExc_OverflowError, "join() result is too long for a Python string");
bad:
    Py_DECREF(result_uval);
    return NULL;
#else
    Py_ssize_t i;
    PyObject *result = NULL;
    PyObject *value_tuple = PyTuple_New(value_count);
    if (unlikely(!value_tuple)) return NULL;
    CYTHON_UNUSED_VAR(max_char);
    CYTHON_UNUSED_VAR(result_ulength);
    for (i=0; i<value_count; i++) {
        if (__Pyx_PyTuple_SET_ITEM(value_tuple, i, values[i]) != (0)) goto bad;
        Py_INCREF(values[i]);
    }
    result = PyUnicode_Join(__pyx_mstate_global->__pyx_empty_unicode, value_tuple);
bad:
    Py_DECREF(value_tuple);
    return result;
#endif
}

/* PyDictVersioning (used by GetModuleGlobalName) */
#if CYTHON_USE_DICT_VERSIONS && CYTHON_USE_TYPE_SLOTS
static CYTHON_INLINE PY_UINT64_T __Pyx_get_tp_dict_version(PyObject *obj) {
    PyObject *dict = Py_TYPE(obj)->tp_dict;
    return likely(dict) ? __PYX_GET_DICT_VERSION(dict) : 0;
}
static CYTHON_INLINE PY_UINT64_T __Pyx_get_object_dict_version(PyObject *obj) {
    PyObject **dictptr = NULL;
    Py_ssize_t offset = Py_TYPE(obj)->tp_dictoffset;
    if (offset) {
#if CYTHON_COMPILING_IN_CPYTHON
        dictptr = (likely(offset > 0)) ? (PyObject **) ((char *)obj + offset) : _PyObject_GetDictPtr(obj);
#else
        dictptr = _PyObject_GetDictPtr(obj);
#endif
    }
    return (dictptr && *dictptr) ? __PYX_GET_DICT_VERSION(*dictptr) : 0;
}
static CYTHON_INLINE int __Pyx_object_dict_version_matches(PyObject* obj, PY_UINT64_T tp_dict_version, PY_UINT64_T obj_dict_version) {
    PyObject *dict = Py_TYPE(obj)->tp_dict;
    if (unlikely(!dict) || unlikely(tp_dict_version != __PYX_GET_DICT_VERSION(dict)))
        return 0;
    return obj_dict_version == __Pyx_get_object_dict_version(obj);
}
#endif

/* GetModuleGlobalName */
#if CYTHON_USE_DICT_VERSIONS
static PyObject *__Pyx__GetModuleGlobalName(PyObject *name, PY_UINT64_T *dict_version, PyObject **dict_cached_value)
#else
static CYTHON_INLINE PyObject *__Pyx__GetModuleGlobalName(PyObject *name)
#endif
{
    PyObject *result;
#if CYTHON_COMPILING_IN_LIMITED_API
    if (unlikely(!__pyx_m)) {
        if (!PyErr_Occurred())
            PyErr_SetNone(PyExc_NameError);
        return NULL;
    }
    result = PyObject_GetAttr(__pyx_m, name);
    if (likely(result)) {
        return result;
    }
    PyErr_Clear();
#elif CYTHON_AVOID_BORROWED_REFS || CYTHON_AVOID_THREAD_UNSAFE_BORROWED_REFS
    if (unlikely(__Pyx_PyDict_GetItemRef(__pyx_mstate_global->__pyx_d, name, &result) == -1)) PyErr_Clear();
    __PYX_UPDATE_DICT_CACHE(__pyx_mstate_global->__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return result;
    }
#else
    result = _PyDict_GetItem_KnownHash(__pyx_mstate_global->__pyx_d, name, ((PyASCIIObject *) name)->hash);
    __PYX_UPDATE_DICT_CACHE(__pyx_mstate_global->__pyx_d, result, *dict_cached_value, *dict_version)
    if (likely(result)) {
        return __Pyx_NewRef(result);
    }
    PyErr_Clear();
#endif
    return __Pyx_GetBuiltinName(name);
}

/* PxdImportShared (used by VoidPtrImport) */
#ifndef __PYX_HAVE_RT_ImportFromPxd_3_2_3
#define __PYX_HAVE_RT_ImportFromPxd_3_2_3
static int __Pyx_ImportFromPxd_3_2_3(PyObject *module, const char *name, void **p, const char *sig, const char *what) {
    PyObject *d = 0;
    PyObject *cobj = 0;
    d = PyObject_GetAttrString(module, "__pyx_capi__");
    if (!d)
        goto bad;
#if (defined(Py_LIMITED_API) && Py_LIMITED_API >= 0x030d0000) || (!defined(Py_LIMITED_API) && PY_VERSION_HEX >= 0x030d0000)
    PyDict_GetItemStringRef(d, name, &cobj);
#else
    cobj = PyDict_GetItemString(d, name);
    Py_XINCREF(cobj);
#endif
    if (!cobj) {
        PyErr_Format(PyExc_ImportError,
            "%.200s does not export expected C %.8s %.200s",
                PyModule_GetName(module), what, name);
        goto bad;
    }
    if (!PyCapsule_IsValid(cobj, sig)) {
        PyErr_Format(PyExc_TypeError,
            "C %.8s %.200s.%.200s has wrong signature (expected %.500s, got %.500s)",
             what, PyModule_GetName(module), name, sig, PyCapsule_GetName(cobj));
        goto bad;
    }
    *p = PyCapsule_GetPointer(cobj, sig);
    if (!(*p))
        goto bad;
    Py_DECREF(d);
    Py_DECREF(cobj);
    return 0;
bad:
    Py_XDECREF(d);
    Py_XDECREF(cobj);
    return -1;
}
#endif

/* VoidPtrImport */
#ifndef __PYX_HAVE_RT_ImportVoidPtr_3_2_3
#define __PYX_HAVE_RT_ImportVoidPtr_3_2_3
static int __Pyx_ImportVoidPtr_3_2_3(PyObject *module, const char *name, void **p, const char *sig) {
    return __Pyx_ImportFromPxd_3_2_3(module, name, p, sig, "variable");
}
#endif

/* FunctionImport */
#ifndef __PYX_HAVE_RT_ImportFunction_3_2_3
#define __PYX_HAVE_RT_ImportFunction_3_2_3
static int __Pyx_ImportFunction_3_2_3(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
    union {
        void (*fp)(void);
        void *p;
    } tmp;
    int result = __Pyx_ImportFromPxd_3_2_3(module, funcname, &tmp.p, sig, "function");
    if (result == 0) {
        *f = tmp.fp;
    }
    return result;
}
#endif

/* dict_setdefault (used by FetchCommonType) */
static CYTHON_INLINE PyObject *__Pyx_PyDict_SetDefault(PyObject *d, PyObject *key, PyObject *default_value) {
    PyObject* value;
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX >= 0x030C0000
    PyObject *args[] = {d, key, default_value};
    value = PyObject_VectorcallMethod(__pyx_mstate_global->__pyx_n_u_setdefault, args, 3 | PY_VECTORCALL_ARGUMENTS_OFFSET, NULL);
#elif CYTHON_COMPILING_IN_LIMITED_API
    value = PyObject_CallMethodObjArgs(d, __pyx_mstate_global->__pyx_n_u_setdefault, key, default_value, NULL);
#elif PY_VERSION_HEX >= 0x030d0000
    PyDict_SetDefaultRef(d, key, default_value, &value);
#else
    value = PyDict_SetDefault(d, key, default_value);
    if (unlikely(!value)) return NULL;
    Py_INCREF(value);
#endif
    return value;
}

/* LimitedApiGetTypeDict (used by SetItemOnTypeDict) */
#if CYTHON_COMPILING_IN_LIMITED_API
static Py_ssize_t __Pyx_GetTypeDictOffset(void) {
    PyObject *tp_dictoffset_o;
    Py_ssize_t tp_dictoffset;
    tp_dictoffset_o = PyObject_GetAttrString((PyObject*)(&PyType_Type), "__dictoffset__");
    if (unlikely(!tp_dictoffset_o)) return -1;
    tp_dictoffset = PyLong_AsSsize_t(tp_dictoffset_o);
    Py_DECREF(tp_dictoffset_o);
    if (unlikely(tp_dictoffset == 0)) {
        PyErr_SetString(
            PyExc_TypeError,
            "'type' doesn't have a dictoffset");
        return -1;
    } else if (unlikely(tp_dictoffset < 0)) {
        PyErr_SetString(
            PyExc_TypeError,
            "'type' has an unexpected negative dictoffset. "
            "Please report this as Cython bug");
        return -1;
    }
    return tp_dictoffset;
}
static PyObject *__Pyx_GetTypeDict(PyTypeObject *tp) {
    static Py_ssize_t tp_dictoffset = 0;
    if (unlikely(tp_dictoffset == 0)) {
        tp_dictoffset = __Pyx_GetTypeDictOffset();
        if (unlikely(tp_dictoffset == -1 && PyErr_Occurred())) {
            tp_dictoffset = 0; // try again next time?
            return NULL;
        }
    }
    return *(PyObject**)((char*)tp + tp_dictoffset);
}
#endif

/* SetItemOnTypeDict (used by FixUpExtensionType) */
static int __Pyx__SetItemOnTypeDict(PyTypeObject *tp, PyObject *k, PyObject *v) {
    int result;
    PyObject *tp_dict;
#if CYTHON_COMPILING_IN_LIMITED_API
    tp_dict = __Pyx_GetTypeDict(tp);
    if (unlikely(!tp_dict)) return -1;
#else
    tp_dict = tp->tp_dict;
#endif
    result = PyDict_SetItem(tp_dict, k, v);
    if (likely(!result)) {
        PyType_Modified(tp);
        if (unlikely(PyObject_HasAttr(v, __pyx_mstate_global->__pyx_n_u_set_name))) {
            PyObject *setNameResult = PyObject_CallMethodObjArgs(v, __pyx_mstate_global->__pyx_n_u_set_name,  (PyObject *) tp, k, NULL);
            if (!setNameResult) return -1;
            Py_DECREF(setNameResult);
        }
    }
    return result;
}

/* FixUpExtensionType (used by FetchCommonType) */
static int __Pyx_fix_up_extension_type_from_spec(PyType_Spec *spec, PyTypeObject *type) {
#if __PYX_LIMITED_VERSION_HEX > 0x030900B1
    CYTHON_UNUSED_VAR(spec);
    CYTHON_UNUSED_VAR(type);
    CYTHON_UNUSED_VAR(__Pyx__SetItemOnTypeDict);
#else
    const PyType_Slot *slot = spec->slots;
    int changed = 0;
#if !CYTHON_COMPILING_IN_LIMITED_API
    while (slot && slot->slot && slot->slot != Py_tp_members)
        slot++;
    if (slot && slot->slot == Py_tp_members) {
#if !CYTHON_COMPILING_IN_CPYTHON
        const
#endif  // !CYTHON_COMPILING_IN_CPYTHON)
            PyMemberDef *memb = (PyMemberDef*) slot->pfunc;
        while (memb && memb->name) {
            if (memb->name[0] == '_' && memb->name[1] == '_') {
                if (strcmp(memb->name, "__weaklistoffset__") == 0) {
                    assert(memb->type == T_PYSSIZET);
                    assert(memb->flags == READONLY);
                    type->tp_weaklistoffset = memb->offset;
                    changed = 1;
                }
                else if (strcmp(memb->name, "__dictoffset__") == 0) {
                    assert(memb->type == T_PYSSIZET);
                    assert(memb->flags == READONLY);
                    type->tp_dictoffset = memb->offset;
                    changed = 1;
                }
#if CYTHON_METH_FASTCALL
                else if (strcmp(memb->name, "__vectorcalloffset__") == 0) {
                    assert(memb->type == T_PYSSIZET);
                    assert(memb->flags == READONLY);
                    type->tp_vectorcall_offset = memb->offset;
                    changed = 1;
                }
#endif  // CYTHON_METH_FASTCALL
#if !CYTHON_COMPILING_IN_PYPY
                else if (strcmp(memb->name, "__module__") == 0) {
                    PyObject *descr;
                    assert(memb->type == T_OBJECT);
                    assert(memb->flags == 0 || memb->flags == READONLY);
                    descr = PyDescr_NewMember(type, memb);
                    if (unlikely(!descr))
                        return -1;
                    int set_item_result = PyDict_SetItem(type->tp_dict, PyDescr_NAME(descr), descr);
                    Py_DECREF(descr);
                    if (unlikely(set_item_result < 0)) {
                        return -1;
                    }
                    changed = 1;
                }
#endif  // !CYTHON_COMPILING_IN_PYPY
            }
            memb++;
        }
    }
#endif  // !CYTHON_COMPILING_IN_LIMITED_API
#if !CYTHON_COMPILING_IN_PYPY
    slot = spec->slots;
    while (slot && slot->slot && slot->slot != Py_tp_getset)
        slot++;
    if (slot && slot->slot == Py_tp_getset) {
        PyGetSetDef *getset = (PyGetSetDef*) slot->pfunc;
        while (getset && getset->name) {
            if (getset->name[0] == '_' && getset->name[1] == '_' && strcmp(getset->name, "__module__") == 0) {
                PyObject *descr = PyDescr_NewGetSet(type, getset);
                if (unlikely(!descr))
                    return -1;
                #if CYTHON_COMPILING_IN_LIMITED_API
                PyObject *pyname = PyUnicode_FromString(getset->name);
                if (unlikely(!pyname)) {
                    Py_DECREF(descr);
                    return -1;
                }
                int set_item_result = __Pyx_SetItemOnTypeDict(type, pyname, descr);
                Py_DECREF(pyname);
                #else
                CYTHON_UNUSED_VAR(__Pyx__SetItemOnTypeDict);
                int set_item_result = PyDict_SetItem(type->tp_dict, PyDescr_NAME(descr), descr);
                #endif
                Py_DECREF(descr);
                if (unlikely(set_item_result < 0)) {
                    return -1;
                }
                changed = 1;
            }
            ++getset;
        }
    }
#else
    CYTHON_UNUSED_VAR(__Pyx__SetItemOnTypeDict);
#endif  // !CYTHON_COMPILING_IN_PYPY
    if (changed)
        PyType_Modified(type);
#endif  // PY_VERSION_HEX > 0x030900B1
    return 0;
}

/* AddModuleRef (used by FetchSharedCythonModule) */
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
  static PyObject *__Pyx_PyImport_AddModuleObjectRef(PyObject *name) {
      PyObject *module_dict = PyImport_GetModuleDict();
      PyObject *m;
      if (PyMapping_GetOptionalItem(module_dict, name, &m) < 0) {
          return NULL;
      }
      if (m != NULL && PyModule_Check(m)) {
          return m;
      }
      Py_XDECREF(m);
      m = PyModule_NewObject(name);
      if (m == NULL)
          return NULL;
      if (PyDict_CheckExact(module_dict)) {
          PyObject *new_m;
          (void)PyDict_SetDefaultRef(module_dict, name, m, &new_m);
          Py_DECREF(m);
          return new_m;
      } else {
           if (PyObject_SetItem(module_dict, name, m) != 0) {
                Py_DECREF(m);
                return NULL;
            }
            return m;
      }
  }
  static PyObject *__Pyx_PyImport_AddModuleRef(const char *name) {
      PyObject *py_name = PyUnicode_FromString(name);
      if (!py_name) return NULL;
      PyObject *module = __Pyx_PyImport_AddModuleObjectRef(py_name);
      Py_DECREF(py_name);
      return module;
  }
#elif __PYX_LIMITED_VERSION_HEX >= 0x030d0000
  #define __Pyx_PyImport_AddModuleRef(name) PyImport_AddModuleRef(name)
#else
  static PyObject *__Pyx_PyImport_AddModuleRef(const char *name) {
      PyObject *module = PyImport_AddModule(name);
      Py_XINCREF(module);
      return module;
  }
#endif

/* FetchSharedCythonModule (used by FetchCommonType) */
static PyObject *__Pyx_FetchSharedCythonABIModule(void) {
    return __Pyx_PyImport_AddModuleRef(__PYX_ABI_MODULE_NAME);
}

/* FetchCommonType (used by CommonTypesMetaclass) */
#if __PYX_LIMITED_VERSION_HEX < 0x030C0000
static PyObject* __Pyx_PyType_FromMetaclass(PyTypeObject *metaclass, PyObject *module, PyType_Spec *spec, PyObject *bases) {
    PyObject *result = __Pyx_PyType_FromModuleAndSpec(module, spec, bases);
    if (result && metaclass) {
        PyObject *old_tp = (PyObject*)Py_TYPE(result);
    Py_INCREF((PyObject*)metaclass);
#if __PYX_LIMITED_VERSION_HEX >= 0x03090000
        Py_SET_TYPE(result, metaclass);
#else
        result->ob_type = metaclass;
#endif
        Py_DECREF(old_tp);
    }
    return result;
}
#else
#define __Pyx_PyType_FromMetaclass(me, mo, s, b) PyType_FromMetaclass(me, mo, s, b)
#endif
static int __Pyx_VerifyCachedType(PyObject *cached_type,
                               const char *name,
                               Py_ssize_t expected_basicsize) {
    Py_ssize_t basicsize;
    if (!PyType_Check(cached_type)) {
        PyErr_Format(PyExc_TypeError,
            "Shared Cython type %.200s is not a type object", name);
        return -1;
    }
    if (expected_basicsize == 0) {
        return 0; // size is inherited, nothing useful to check
    }
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *py_basicsize;
    py_basicsize = PyObject_GetAttrString(cached_type, "__basicsize__");
    if (unlikely(!py_basicsize)) return -1;
    basicsize = PyLong_AsSsize_t(py_basicsize);
    Py_DECREF(py_basicsize);
    py_basicsize = NULL;
    if (unlikely(basicsize == (Py_ssize_t)-1) && PyErr_Occurred()) return -1;
#else
    basicsize = ((PyTypeObject*) cached_type)->tp_basicsize;
#endif
    if (basicsize != expected_basicsize) {
        PyErr_Format(PyExc_TypeError,
            "Shared Cython type %.200s has the wrong size, try recompiling",
            name);
        return -1;
    }
    return 0;
}
static PyTypeObject *__Pyx_FetchCommonTypeFromSpec(PyTypeObject *metaclass, PyObject *module, PyType_Spec *spec, PyObject *bases) {
    PyObject *abi_module = NULL, *cached_type = NULL, *abi_module_dict, *new_cached_type, *py_object_name;
    int get_item_ref_result;
    const char* object_name = strrchr(spec->name, '.');
    object_name = object_name ? object_name+1 : spec->name;
    py_object_name = PyUnicode_FromString(object_name);
    if (!py_object_name) return NULL;
    abi_module = __Pyx_FetchSharedCythonABIModule();
    if (!abi_module) goto done;
    abi_module_dict = PyModule_GetDict(abi_module);
    if (!abi_module_dict) goto done;
    get_item_ref_result = __Pyx_PyDict_GetItemRef(abi_module_dict, py_object_name, &cached_type);
    if (get_item_ref_result == 1) {
        if (__Pyx_VerifyCachedType(
              cached_type,
              object_name,
              spec->basicsize) < 0) {
            goto bad;
        }
        goto done;
    } else if (unlikely(get_item_ref_result == -1)) {
        goto bad;
    }
    cached_type = __Pyx_PyType_FromMetaclass(
        metaclass,
        CYTHON_USE_MODULE_STATE ? module : abi_module,
        spec, bases);
    if (unlikely(!cached_type)) goto bad;
    if (unlikely(__Pyx_fix_up_extension_type_from_spec(spec, (PyTypeObject *) cached_type) < 0)) goto bad;
    new_cached_type = __Pyx_PyDict_SetDefault(abi_module_dict, py_object_name, cached_type);
    if (unlikely(new_cached_type != cached_type)) {
        if (unlikely(!new_cached_type)) goto bad;
        Py_DECREF(cached_type);
        cached_type = new_cached_type;
        if (__Pyx_VerifyCachedType(
                cached_type,
                object_name,
                spec->basicsize) < 0) {
            goto bad;
        }
        goto done;
    } else {
        Py_DECREF(new_cached_type);
    }
done:
    Py_XDECREF(abi_module);
    Py_DECREF(py_object_name);
    assert(cached_type == NULL || PyType_Check(cached_type));
    return (PyTypeObject *) cached_type;
bad:
    Py_XDECREF(cached_type);
    cached_type = NULL;
    goto done;
}

/* CommonTypesMetaclass (used by CythonFunctionShared) */
static PyObject* __pyx_CommonTypesMetaclass_get_module(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED void* context) {
    return PyUnicode_FromString(__PYX_ABI_MODULE_NAME);
}
#if __PYX_LIMITED_VERSION_HEX < 0x030A0000
static PyObject* __pyx_CommonTypesMetaclass_call(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED PyObject *args, CYTHON_UNUSED PyObject *kwds) {
    PyErr_SetString(PyExc_TypeError, "Cannot instantiate Cython internal types");
    return NULL;
}
static int __pyx_CommonTypesMetaclass_setattr(CYTHON_UNUSED PyObject *self, CYTHON_UNUSED PyObject *attr, CYTHON_UNUSED PyObject *value) {
    PyErr_SetString(PyExc_TypeError, "Cython internal types are immutable");
    return -1;
}
#endif
static PyGetSetDef __pyx_CommonTypesMetaclass_getset[] = {
    {"__module__", __pyx_CommonTypesMetaclass_get_module, NULL, NULL, NULL},
    {0, 0, 0, 0, 0}
};
static PyType_Slot __pyx_CommonTypesMetaclass_slots[] = {
    {Py_tp_getset, (void *)__pyx_CommonTypesMetaclass_getset},
    #if __PYX_LIMITED_VERSION_HEX < 0x030A0000
    {Py_tp_call, (void*)__pyx_CommonTypesMetaclass_call},
    {Py_tp_new, (void*)__pyx_CommonTypesMetaclass_call},
    {Py_tp_setattro, (void*)__pyx_CommonTypesMetaclass_setattr},
    #endif
    {0, 0}
};
static PyType_Spec __pyx_CommonTypesMetaclass_spec = {
    __PYX_TYPE_MODULE_PREFIX "_common_types_metatype",
    0,
    0,
    Py_TPFLAGS_IMMUTABLETYPE |
    Py_TPFLAGS_DISALLOW_INSTANTIATION |
    Py_TPFLAGS_DEFAULT,
    __pyx_CommonTypesMetaclass_slots
};
static int __pyx_CommonTypesMetaclass_init(PyObject *module) {
    __pyx_mstatetype *mstate = __Pyx_PyModule_GetState(module);
    PyObject *bases = PyTuple_Pack(1, &PyType_Type);
    if (unlikely(!bases)) {
        return -1;
    }
    mstate->__pyx_CommonTypesMetaclassType = __Pyx_FetchCommonTypeFromSpec(NULL, module, &__pyx_CommonTypesMetaclass_spec, bases);
    Py_DECREF(bases);
    if (unlikely(mstate->__pyx_CommonTypesMetaclassType == NULL)) {
        return -1;
    }
    return 0;
}

/* CallTypeTraverse (used by CythonFunctionShared) */
#if !CYTHON_USE_TYPE_SPECS || (!CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x03090000)
#else
static int __Pyx_call_type_traverse(PyObject *o, int always_call, visitproc visit, void *arg) {
    #if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x03090000
    if (__Pyx_get_runtime_version() < 0x03090000) return 0;
    #endif
    if (!always_call) {
        PyTypeObject *base = __Pyx_PyObject_GetSlot(o, tp_base, PyTypeObject*);
        unsigned long flags = PyType_GetFlags(base);
        if (flags & Py_TPFLAGS_HEAPTYPE) {
            return 0;
        }
    }
    Py_VISIT((PyObject*)Py_TYPE(o));
    return 0;
}
#endif

/* PyMethodNew (used by CythonFunctionShared) */
#if CYTHON_COMPILING_IN_LIMITED_API
static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, PyObject *typ) {
    PyObject *result;
    CYTHON_UNUSED_VAR(typ);
    if (!self)
        return __Pyx_NewRef(func);
    #if __PYX_LIMITED_VERSION_HEX >= 0x030C0000
    {
        PyObject *args[] = {func, self};
        result = PyObject_Vectorcall(__pyx_mstate_global->__Pyx_CachedMethodType, args, 2, NULL);
    }
    #else
    result = PyObject_CallFunctionObjArgs(__pyx_mstate_global->__Pyx_CachedMethodType, func, self, NULL);
    #endif
    return result;
}
#else
static PyObject *__Pyx_PyMethod_New(PyObject *func, PyObject *self, PyObject *typ) {
    CYTHON_UNUSED_VAR(typ);
    if (!self)
        return __Pyx_NewRef(func);
    return PyMethod_New(func, self);
}
#endif

/* PyVectorcallFastCallDict (used by CythonFunctionShared) */
#if CYTHON_METH_FASTCALL && CYTHON_VECTORCALL
static PyObject *__Pyx_PyVectorcall_FastCallDict_kw(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw)
{
    PyObject *res = NULL;
    PyObject *kwnames;
    PyObject **newargs;
    PyObject **kwvalues;
    Py_ssize_t i;
    #if CYTHON_AVOID_BORROWED_REFS
    PyObject *pos;
    #else
    Py_ssize_t pos;
    #endif
    size_t j;
    PyObject *key, *value;
    unsigned long keys_are_strings;
    #if !CYTHON_ASSUME_SAFE_SIZE
    Py_ssize_t nkw = PyDict_Size(kw);
    if (unlikely(nkw == -1)) return NULL;
    #else
    Py_ssize_t nkw = PyDict_GET_SIZE(kw);
    #endif
    newargs = (PyObject **)PyMem_Malloc((nargs + (size_t)nkw) * sizeof(args[0]));
    if (unlikely(newargs == NULL)) {
        PyErr_NoMemory();
        return NULL;
    }
    for (j = 0; j < nargs; j++) newargs[j] = args[j];
    kwnames = PyTuple_New(nkw);
    if (unlikely(kwnames == NULL)) {
        PyMem_Free(newargs);
        return NULL;
    }
    kwvalues = newargs + nargs;
    pos = 0;
    i = 0;
    keys_are_strings = Py_TPFLAGS_UNICODE_SUBCLASS;
    while (__Pyx_PyDict_NextRef(kw, &pos, &key, &value)) {
        keys_are_strings &=
        #if CYTHON_COMPILING_IN_LIMITED_API
            PyType_GetFlags(Py_TYPE(key));
        #else
            Py_TYPE(key)->tp_flags;
        #endif
        #if !CYTHON_ASSUME_SAFE_MACROS
        if (unlikely(PyTuple_SetItem(kwnames, i, key) < 0)) goto cleanup;
        #else
        PyTuple_SET_ITEM(kwnames, i, key);
        #endif
        kwvalues[i] = value;
        i++;
    }
    if (unlikely(!keys_are_strings)) {
        PyErr_SetString(PyExc_TypeError, "keywords must be strings");
        goto cleanup;
    }
    res = vc(func, newargs, nargs, kwnames);
cleanup:
    #if CYTHON_AVOID_BORROWED_REFS
    Py_DECREF(pos);
    #endif
    Py_DECREF(kwnames);
    for (i = 0; i < nkw; i++)
        Py_DECREF(kwvalues[i]);
    PyMem_Free(newargs);
    return res;
}
static CYTHON_INLINE PyObject *__Pyx_PyVectorcall_FastCallDict(PyObject *func, __pyx_vectorcallfunc vc, PyObject *const *args, size_t nargs, PyObject *kw)
{
    Py_ssize_t kw_size =
        likely(kw == NULL) ?
        0 :
#if !CYTHON_ASSUME_SAFE_SIZE
        PyDict_Size(kw);
#else
        PyDict_GET_SIZE(kw);
#endif
    if (kw_size == 0) {
        return vc(func, args, nargs, NULL);
    }
#if !CYTHON_ASSUME_SAFE_SIZE
    else if (unlikely(kw_size == -1)) {
        return NULL;
    }
#endif
    return __Pyx_PyVectorcall_FastCallDict_kw(func, vc, args, nargs, kw);
}
#endif

/* CythonFunctionShared (used by CythonFunction) */
#if CYTHON_COMPILING_IN_LIMITED_API
static CYTHON_INLINE int __Pyx__IsSameCyOrCFunctionNoMethod(PyObject *func, void (*cfunc)(void)) {
    if (__Pyx_CyFunction_Check(func)) {
        return PyCFunction_GetFunction(((__pyx_CyFunctionObject*)func)->func) == (PyCFunction) cfunc;
    } else if (PyCFunction_Check(func)) {
        return PyCFunction_GetFunction(func) == (PyCFunction) cfunc;
    }
    return 0;
}
static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void (*cfunc)(void)) {
    if ((PyObject*)Py_TYPE(func) == __pyx_mstate_global->__Pyx_CachedMethodType) {
        int result;
        PyObject *newFunc = PyObject_GetAttr(func, __pyx_mstate_global->__pyx_n_u_func_2);
        if (unlikely(!newFunc)) {
            PyErr_Clear(); // It's only an optimization, so don't throw an error
            return 0;
        }
        result = __Pyx__IsSameCyOrCFunctionNoMethod(newFunc, cfunc);
        Py_DECREF(newFunc);
        return result;
    }
    return __Pyx__IsSameCyOrCFunctionNoMethod(func, cfunc);
}
#else
static CYTHON_INLINE int __Pyx__IsSameCyOrCFunction(PyObject *func, void (*cfunc)(void)) {
    if (PyMethod_Check(func)) {
        func = PyMethod_GET_FUNCTION(func);
    }
    return __Pyx_CyOrPyCFunction_Check(func) && __Pyx_CyOrPyCFunction_GET_FUNCTION(func) == (PyCFunction) cfunc;
}
#endif
static CYTHON_INLINE void __Pyx__CyFunction_SetClassObj(__pyx_CyFunctionObject* f, PyObject* classobj) {
#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
    __Pyx_Py_XDECREF_SET(
        __Pyx_CyFunction_GetClassObj(f),
            ((classobj) ? __Pyx_NewRef(classobj) : NULL));
#else
    __Pyx_Py_XDECREF_SET(
        ((PyCMethodObject *) (f))->mm_class,
        (PyTypeObject*)((classobj) ? __Pyx_NewRef(classobj) : NULL));
#endif
}
static PyObject *
__Pyx_CyFunction_get_doc_locked(__pyx_CyFunctionObject *op)
{
    if (unlikely(op->func_doc == NULL)) {
#if CYTHON_COMPILING_IN_LIMITED_API
        op->func_doc = PyObject_GetAttrString(op->func, "__doc__");
        if (unlikely(!op->func_doc)) return NULL;
#else
        if (((PyCFunctionObject*)op)->m_ml->ml_doc) {
            op->func_doc = PyUnicode_FromString(((PyCFunctionObject*)op)->m_ml->ml_doc);
            if (unlikely(op->func_doc == NULL))
                return NULL;
        } else {
            Py_INCREF(Py_None);
            return Py_None;
        }
#endif
    }
    Py_INCREF(op->func_doc);
    return op->func_doc;
}
static PyObject *
__Pyx_CyFunction_get_doc(__pyx_CyFunctionObject *op, void *closure) {
    PyObject *result;
    CYTHON_UNUSED_VAR(closure);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    result = __Pyx_CyFunction_get_doc_locked(op);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static int
__Pyx_CyFunction_set_doc(__pyx_CyFunctionObject *op, PyObject *value, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (value == NULL) {
        value = Py_None;
    }
    Py_INCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->func_doc, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_name_locked(__pyx_CyFunctionObject *op)
{
    if (unlikely(op->func_name == NULL)) {
#if CYTHON_COMPILING_IN_LIMITED_API
        op->func_name = PyObject_GetAttrString(op->func, "__name__");
#else
        op->func_name = PyUnicode_InternFromString(((PyCFunctionObject*)op)->m_ml->ml_name);
#endif
        if (unlikely(op->func_name == NULL))
            return NULL;
    }
    Py_INCREF(op->func_name);
    return op->func_name;
}
static PyObject *
__Pyx_CyFunction_get_name(__pyx_CyFunctionObject *op, void *context)
{
    PyObject *result = NULL;
    CYTHON_UNUSED_VAR(context);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    result = __Pyx_CyFunction_get_name_locked(op);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static int
__Pyx_CyFunction_set_name(__pyx_CyFunctionObject *op, PyObject *value, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (unlikely(value == NULL || !PyUnicode_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__name__ must be set to a string object");
        return -1;
    }
    Py_INCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->func_name, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_qualname(__pyx_CyFunctionObject *op, void *context)
{
    CYTHON_UNUSED_VAR(context);
    PyObject *result;
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    Py_INCREF(op->func_qualname);
    result = op->func_qualname;
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static int
__Pyx_CyFunction_set_qualname(__pyx_CyFunctionObject *op, PyObject *value, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (unlikely(value == NULL || !PyUnicode_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__qualname__ must be set to a string object");
        return -1;
    }
    Py_INCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->func_qualname, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
static PyObject *
__Pyx_CyFunction_get_dict(__pyx_CyFunctionObject *op, void *context)
{
    CYTHON_UNUSED_VAR(context);
    if (unlikely(op->func_dict == NULL)) {
        op->func_dict = PyDict_New();
        if (unlikely(op->func_dict == NULL))
            return NULL;
    }
    Py_INCREF(op->func_dict);
    return op->func_dict;
}
#endif
static PyObject *
__Pyx_CyFunction_get_globals(__pyx_CyFunctionObject *op, void *context)
{
    CYTHON_UNUSED_VAR(context);
    Py_INCREF(op->func_globals);
    return op->func_globals;
}
static PyObject *
__Pyx_CyFunction_get_closure(__pyx_CyFunctionObject *op, void *context)
{
    CYTHON_UNUSED_VAR(op);
    CYTHON_UNUSED_VAR(context);
    Py_INCREF(Py_None);
    return Py_None;
}
static PyObject *
__Pyx_CyFunction_get_code(__pyx_CyFunctionObject *op, void *context)
{
    PyObject* result = (op->func_code) ? op->func_code : Py_None;
    CYTHON_UNUSED_VAR(context);
    Py_INCREF(result);
    return result;
}
static int
__Pyx_CyFunction_init_defaults(__pyx_CyFunctionObject *op) {
    int result = 0;
    PyObject *res = op->defaults_getter((PyObject *) op);
    if (unlikely(!res))
        return -1;
    #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
    op->defaults_tuple = PyTuple_GET_ITEM(res, 0);
    Py_INCREF(op->defaults_tuple);
    op->defaults_kwdict = PyTuple_GET_ITEM(res, 1);
    Py_INCREF(op->defaults_kwdict);
    #else
    op->defaults_tuple = __Pyx_PySequence_ITEM(res, 0);
    if (unlikely(!op->defaults_tuple)) result = -1;
    else {
        op->defaults_kwdict = __Pyx_PySequence_ITEM(res, 1);
        if (unlikely(!op->defaults_kwdict)) result = -1;
    }
    #endif
    Py_DECREF(res);
    return result;
}
static int
__Pyx_CyFunction_set_defaults(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
    CYTHON_UNUSED_VAR(context);
    if (!value) {
        value = Py_None;
    } else if (unlikely(value != Py_None && !PyTuple_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__defaults__ must be set to a tuple object");
        return -1;
    }
    PyErr_WarnEx(PyExc_RuntimeWarning, "changes to cyfunction.__defaults__ will not "
                 "currently affect the values used in function calls", 1);
    Py_INCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->defaults_tuple, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_defaults_locked(__pyx_CyFunctionObject *op) {
    PyObject* result = op->defaults_tuple;
    if (unlikely(!result)) {
        if (op->defaults_getter) {
            if (unlikely(__Pyx_CyFunction_init_defaults(op) < 0)) return NULL;
            result = op->defaults_tuple;
        } else {
            result = Py_None;
        }
    }
    Py_INCREF(result);
    return result;
}
static PyObject *
__Pyx_CyFunction_get_defaults(__pyx_CyFunctionObject *op, void *context) {
    PyObject* result = NULL;
    CYTHON_UNUSED_VAR(context);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    result = __Pyx_CyFunction_get_defaults_locked(op);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static int
__Pyx_CyFunction_set_kwdefaults(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
    CYTHON_UNUSED_VAR(context);
    if (!value) {
        value = Py_None;
    } else if (unlikely(value != Py_None && !PyDict_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__kwdefaults__ must be set to a dict object");
        return -1;
    }
    PyErr_WarnEx(PyExc_RuntimeWarning, "changes to cyfunction.__kwdefaults__ will not "
                 "currently affect the values used in function calls", 1);
    Py_INCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->defaults_kwdict, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_kwdefaults_locked(__pyx_CyFunctionObject *op) {
    PyObject* result = op->defaults_kwdict;
    if (unlikely(!result)) {
        if (op->defaults_getter) {
            if (unlikely(__Pyx_CyFunction_init_defaults(op) < 0)) return NULL;
            result = op->defaults_kwdict;
        } else {
            result = Py_None;
        }
    }
    Py_INCREF(result);
    return result;
}
static PyObject *
__Pyx_CyFunction_get_kwdefaults(__pyx_CyFunctionObject *op, void *context) {
    PyObject* result;
    CYTHON_UNUSED_VAR(context);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    result = __Pyx_CyFunction_get_kwdefaults_locked(op);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static int
__Pyx_CyFunction_set_annotations(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
    CYTHON_UNUSED_VAR(context);
    if (!value || value == Py_None) {
        value = NULL;
    } else if (unlikely(!PyDict_Check(value))) {
        PyErr_SetString(PyExc_TypeError,
                        "__annotations__ must be set to a dict object");
        return -1;
    }
    Py_XINCREF(value);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    __Pyx_Py_XDECREF_SET(op->func_annotations, value);
    __Pyx_END_CRITICAL_SECTION();
    return 0;
}
static PyObject *
__Pyx_CyFunction_get_annotations_locked(__pyx_CyFunctionObject *op) {
    PyObject* result = op->func_annotations;
    if (unlikely(!result)) {
        result = PyDict_New();
        if (unlikely(!result)) return NULL;
        op->func_annotations = result;
    }
    Py_INCREF(result);
    return result;
}
static PyObject *
__Pyx_CyFunction_get_annotations(__pyx_CyFunctionObject *op, void *context) {
    PyObject *result;
    CYTHON_UNUSED_VAR(context);
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    result = __Pyx_CyFunction_get_annotations_locked(op);
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static PyObject *
__Pyx_CyFunction_get_is_coroutine_value(__pyx_CyFunctionObject *op) {
    int is_coroutine = op->flags & __Pyx_CYFUNCTION_COROUTINE;
    if (is_coroutine) {
        PyObject *is_coroutine_value, *module, *fromlist, *marker = __pyx_mstate_global->__pyx_n_u_is_coroutine;
        fromlist = PyList_New(1);
        if (unlikely(!fromlist)) return NULL;
        Py_INCREF(marker);
#if CYTHON_ASSUME_SAFE_MACROS
        PyList_SET_ITEM(fromlist, 0, marker);
#else
        if (unlikely(PyList_SetItem(fromlist, 0, marker) < 0)) {
            Py_DECREF(marker);
            Py_DECREF(fromlist);
            return NULL;
        }
#endif
        module = PyImport_ImportModuleLevelObject(__pyx_mstate_global->__pyx_n_u_asyncio_coroutines, NULL, NULL, fromlist, 0);
        Py_DECREF(fromlist);
        if (unlikely(!module)) goto ignore;
        is_coroutine_value = __Pyx_PyObject_GetAttrStr(module, marker);
        Py_DECREF(module);
        if (likely(is_coroutine_value)) {
            return is_coroutine_value;
        }
ignore:
        PyErr_Clear();
    }
    return __Pyx_PyBool_FromLong(is_coroutine);
}
static PyObject *
__Pyx_CyFunction_get_is_coroutine(__pyx_CyFunctionObject *op, void *context) {
    PyObject *result;
    CYTHON_UNUSED_VAR(context);
    if (op->func_is_coroutine) {
        return __Pyx_NewRef(op->func_is_coroutine);
    }
    result = __Pyx_CyFunction_get_is_coroutine_value(op);
    if (unlikely(!result))
        return NULL;
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    if (op->func_is_coroutine) {
        Py_DECREF(result);
        result = __Pyx_NewRef(op->func_is_coroutine);
    } else {
        op->func_is_coroutine = __Pyx_NewRef(result);
    }
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static void __Pyx_CyFunction_raise_argument_count_error(__pyx_CyFunctionObject *func, const char* message, Py_ssize_t size) {
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *py_name = __Pyx_CyFunction_get_name(func, NULL);
    if (!py_name) return;
    PyErr_Format(PyExc_TypeError,
        "%.200S() %s (%" CYTHON_FORMAT_SSIZE_T "d given)",
        py_name, message, size);
    Py_DECREF(py_name);
#else
    const char* name = ((PyCFunctionObject*)func)->m_ml->ml_name;
    PyErr_Format(PyExc_TypeError,
        "%.200s() %s (%" CYTHON_FORMAT_SSIZE_T "d given)",
        name, message, size);
#endif
}
static void __Pyx_CyFunction_raise_type_error(__pyx_CyFunctionObject *func, const char* message) {
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *py_name = __Pyx_CyFunction_get_name(func, NULL);
    if (!py_name) return;
    PyErr_Format(PyExc_TypeError,
        "%.200S() %s",
        py_name, message);
    Py_DECREF(py_name);
#else
    const char* name = ((PyCFunctionObject*)func)->m_ml->ml_name;
    PyErr_Format(PyExc_TypeError,
        "%.200s() %s",
        name, message);
#endif
}
#if CYTHON_COMPILING_IN_LIMITED_API
static PyObject *
__Pyx_CyFunction_get_module(__pyx_CyFunctionObject *op, void *context) {
    CYTHON_UNUSED_VAR(context);
    return PyObject_GetAttrString(op->func, "__module__");
}
static int
__Pyx_CyFunction_set_module(__pyx_CyFunctionObject *op, PyObject* value, void *context) {
    CYTHON_UNUSED_VAR(context);
    return PyObject_SetAttrString(op->func, "__module__", value);
}
#endif
static PyGetSetDef __pyx_CyFunction_getsets[] = {
    {"func_doc", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0},
    {"__doc__",  (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0},
    {"func_name", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0},
    {"__name__", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0},
    {"__qualname__", (getter)__Pyx_CyFunction_get_qualname, (setter)__Pyx_CyFunction_set_qualname, 0, 0},
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
    {"func_dict", (getter)__Pyx_CyFunction_get_dict, (setter)PyObject_GenericSetDict, 0, 0},
    {"__dict__", (getter)__Pyx_CyFunction_get_dict, (setter)PyObject_GenericSetDict, 0, 0},
#else
    {"func_dict", (getter)PyObject_GenericGetDict, (setter)PyObject_GenericSetDict, 0, 0},
    {"__dict__", (getter)PyObject_GenericGetDict, (setter)PyObject_GenericSetDict, 0, 0},
#endif
    {"func_globals", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0},
    {"__globals__", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0},
    {"func_closure", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0},
    {"__closure__", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0},
    {"func_code", (getter)__Pyx_CyFunction_get_code, 0, 0, 0},
    {"__code__", (getter)__Pyx_CyFunction_get_code, 0, 0, 0},
    {"func_defaults", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0},
    {"__defaults__", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0},
    {"__kwdefaults__", (getter)__Pyx_CyFunction_get_kwdefaults, (setter)__Pyx_CyFunction_set_kwdefaults, 0, 0},
    {"__annotations__", (getter)__Pyx_CyFunction_get_annotations, (setter)__Pyx_CyFunction_set_annotations, 0, 0},
    {"_is_coroutine", (getter)__Pyx_CyFunction_get_is_coroutine, 0, 0, 0},
#if CYTHON_COMPILING_IN_LIMITED_API
    {"__module__", (getter)__Pyx_CyFunction_get_module, (setter)__Pyx_CyFunction_set_module, 0, 0},
#endif
    {0, 0, 0, 0, 0}
};
static PyMemberDef __pyx_CyFunction_members[] = {
#if !CYTHON_COMPILING_IN_LIMITED_API
    {"__module__", T_OBJECT, offsetof(PyCFunctionObject, m_module), 0, 0},
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    {"__dictoffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_dict), READONLY, 0},
#endif
#if CYTHON_METH_FASTCALL
#if CYTHON_COMPILING_IN_LIMITED_API
    {"__vectorcalloffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_vectorcall), READONLY, 0},
#else
    {"__vectorcalloffset__", T_PYSSIZET, offsetof(PyCFunctionObject, vectorcall), READONLY, 0},
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
    {"__weaklistoffset__", T_PYSSIZET, offsetof(__pyx_CyFunctionObject, func_weakreflist), READONLY, 0},
#else
    {"__weaklistoffset__", T_PYSSIZET, offsetof(PyCFunctionObject, m_weakreflist), READONLY, 0},
#endif
#endif
    {0, 0, 0,  0, 0}
};
static PyObject *
__Pyx_CyFunction_reduce(__pyx_CyFunctionObject *m, PyObject *args)
{
    PyObject *result = NULL;
    CYTHON_UNUSED_VAR(args);
    __Pyx_BEGIN_CRITICAL_SECTION(m);
    Py_INCREF(m->func_qualname);
    result = m->func_qualname;
    __Pyx_END_CRITICAL_SECTION();
    return result;
}
static PyMethodDef __pyx_CyFunction_methods[] = {
    {"__reduce__", (PyCFunction)__Pyx_CyFunction_reduce, METH_VARARGS, 0},
    {0, 0, 0, 0}
};
#if CYTHON_COMPILING_IN_LIMITED_API
#define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func_weakreflist)
#else
#define __Pyx_CyFunction_weakreflist(cyfunc) (((PyCFunctionObject*)cyfunc)->m_weakreflist)
#endif
static PyObject *__Pyx_CyFunction_Init(__pyx_CyFunctionObject *op, PyMethodDef *ml, int flags, PyObject* qualname,
                                       PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) {
#if !CYTHON_COMPILING_IN_LIMITED_API
    PyCFunctionObject *cf = (PyCFunctionObject*) op;
#endif
    if (unlikely(op == NULL))
        return NULL;
#if CYTHON_COMPILING_IN_LIMITED_API
    op->func = PyCFunction_NewEx(ml, (PyObject*)op, module);
    if (unlikely(!op->func)) return NULL;
#endif
    op->flags = flags;
    __Pyx_CyFunction_weakreflist(op) = NULL;
#if !CYTHON_COMPILING_IN_LIMITED_API
    cf->m_ml = ml;
    cf->m_self = (PyObject *) op;
#endif
    Py_XINCREF(closure);
    op->func_closure = closure;
#if !CYTHON_COMPILING_IN_LIMITED_API
    Py_XINCREF(module);
    cf->m_module = module;
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    op->func_dict = NULL;
#endif
    op->func_name = NULL;
    Py_INCREF(qualname);
    op->func_qualname = qualname;
    op->func_doc = NULL;
#if PY_VERSION_HEX < 0x030900B1 || CYTHON_COMPILING_IN_LIMITED_API
    op->func_classobj = NULL;
#else
    ((PyCMethodObject*)op)->mm_class = NULL;
#endif
    op->func_globals = globals;
    Py_INCREF(op->func_globals);
    Py_XINCREF(code);
    op->func_code = code;
    op->defaults = NULL;
    op->defaults_tuple = NULL;
    op->defaults_kwdict = NULL;
    op->defaults_getter = NULL;
    op->func_annotations = NULL;
    op->func_is_coroutine = NULL;
#if CYTHON_METH_FASTCALL
    switch (ml->ml_flags & (METH_VARARGS | METH_FASTCALL | METH_NOARGS | METH_O | METH_KEYWORDS | METH_METHOD)) {
    case METH_NOARGS:
        __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_NOARGS;
        break;
    case METH_O:
        __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_O;
        break;
    case METH_METHOD | METH_FASTCALL | METH_KEYWORDS:
        __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD;
        break;
    case METH_FASTCALL | METH_KEYWORDS:
        __Pyx_CyFunction_func_vectorcall(op) = __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS;
        break;
    case METH_VARARGS | METH_KEYWORDS:
        __Pyx_CyFunction_func_vectorcall(op) = NULL;
        break;
    default:
        PyErr_SetString(PyExc_SystemError, "Bad call flags for CyFunction");
        Py_DECREF(op);
        return NULL;
    }
#endif
    return (PyObject *) op;
}
static int
__Pyx_CyFunction_clear(__pyx_CyFunctionObject *m)
{
    Py_CLEAR(m->func_closure);
#if CYTHON_COMPILING_IN_LIMITED_API
    Py_CLEAR(m->func);
#else
    Py_CLEAR(((PyCFunctionObject*)m)->m_module);
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    Py_CLEAR(m->func_dict);
#elif PY_VERSION_HEX < 0x030d0000
    _PyObject_ClearManagedDict((PyObject*)m);
#else
    PyObject_ClearManagedDict((PyObject*)m);
#endif
    Py_CLEAR(m->func_name);
    Py_CLEAR(m->func_qualname);
    Py_CLEAR(m->func_doc);
    Py_CLEAR(m->func_globals);
    Py_CLEAR(m->func_code);
#if !CYTHON_COMPILING_IN_LIMITED_API
#if PY_VERSION_HEX < 0x030900B1
    Py_CLEAR(__Pyx_CyFunction_GetClassObj(m));
#else
    {
        PyObject *cls = (PyObject*) ((PyCMethodObject *) (m))->mm_class;
        ((PyCMethodObject *) (m))->mm_class = NULL;
        Py_XDECREF(cls);
    }
#endif
#endif
    Py_CLEAR(m->defaults_tuple);
    Py_CLEAR(m->defaults_kwdict);
    Py_CLEAR(m->func_annotations);
    Py_CLEAR(m->func_is_coroutine);
    Py_CLEAR(m->defaults);
    return 0;
}
static void __Pyx__CyFunction_dealloc(__pyx_CyFunctionObject *m)
{
    if (__Pyx_CyFunction_weakreflist(m) != NULL)
        PyObject_ClearWeakRefs((PyObject *) m);
    __Pyx_CyFunction_clear(m);
    __Pyx_PyHeapTypeObject_GC_Del(m);
}
static void __Pyx_CyFunction_dealloc(__pyx_CyFunctionObject *m)
{
    PyObject_GC_UnTrack(m);
    __Pyx__CyFunction_dealloc(m);
}
static int __Pyx_CyFunction_traverse(__pyx_CyFunctionObject *m, visitproc visit, void *arg)
{
    {
        int e = __Pyx_call_type_traverse((PyObject*)m, 1, visit, arg);
        if (e) return e;
    }
    Py_VISIT(m->func_closure);
#if CYTHON_COMPILING_IN_LIMITED_API
    Py_VISIT(m->func);
#else
    Py_VISIT(((PyCFunctionObject*)m)->m_module);
#endif
#if PY_VERSION_HEX < 0x030C0000 || CYTHON_COMPILING_IN_LIMITED_API
    Py_VISIT(m->func_dict);
#else
    {
        int e =
#if PY_VERSION_HEX < 0x030d0000
            _PyObject_VisitManagedDict
#else
            PyObject_VisitManagedDict
#endif
                ((PyObject*)m, visit, arg);
        if (e != 0) return e;
    }
#endif
    __Pyx_VISIT_CONST(m->func_name);
    __Pyx_VISIT_CONST(m->func_qualname);
    Py_VISIT(m->func_doc);
    Py_VISIT(m->func_globals);
    __Pyx_VISIT_CONST(m->func_code);
#if !CYTHON_COMPILING_IN_LIMITED_API
    Py_VISIT(__Pyx_CyFunction_GetClassObj(m));
#endif
    Py_VISIT(m->defaults_tuple);
    Py_VISIT(m->defaults_kwdict);
    Py_VISIT(m->func_is_coroutine);
    Py_VISIT(m->defaults);
    return 0;
}
static PyObject*
__Pyx_CyFunction_repr(__pyx_CyFunctionObject *op)
{
    PyObject *repr;
    __Pyx_BEGIN_CRITICAL_SECTION(op);
    repr = PyUnicode_FromFormat("<cyfunction %U at %p>",
                                op->func_qualname, (void *)op);
    __Pyx_END_CRITICAL_SECTION();
    return repr;
}
static PyObject * __Pyx_CyFunction_CallMethod(PyObject *func, PyObject *self, PyObject *arg, PyObject *kw) {
#if CYTHON_COMPILING_IN_LIMITED_API
    PyObject *f = ((__pyx_CyFunctionObject*)func)->func;
    PyCFunction meth;
    int flags;
    meth = PyCFunction_GetFunction(f);
    if (unlikely(!meth)) return NULL;
    flags = PyCFunction_GetFlags(f);
    if (unlikely(flags < 0)) return NULL;
#else
    PyCFunctionObject* f = (PyCFunctionObject*)func;
    PyCFunction meth = f->m_ml->ml_meth;
    int flags = f->m_ml->ml_flags;
#endif
    Py_ssize_t size;
    switch (flags & (METH_VARARGS | METH_KEYWORDS | METH_NOARGS | METH_O)) {
    case METH_VARARGS:
        if (likely(kw == NULL || PyDict_Size(kw) == 0))
            return (*meth)(self, arg);
        break;
    case METH_VARARGS | METH_KEYWORDS:
        return (*(PyCFunctionWithKeywords)(void(*)(void))meth)(self, arg, kw);
    case METH_NOARGS:
        if (likely(kw == NULL || PyDict_Size(kw) == 0)) {
#if CYTHON_ASSUME_SAFE_SIZE
            size = PyTuple_GET_SIZE(arg);
#else
            size = PyTuple_Size(arg);
            if (unlikely(size < 0)) return NULL;
#endif
            if (likely(size == 0))
                return (*meth)(self, NULL);
            __Pyx_CyFunction_raise_argument_count_error(
                (__pyx_CyFunctionObject*)func,
                "takes no arguments", size);
            return NULL;
        }
        break;
    case METH_O:
        if (likely(kw == NULL || PyDict_Size(kw) == 0)) {
#if CYTHON_ASSUME_SAFE_SIZE
            size = PyTuple_GET_SIZE(arg);
#else
            size = PyTuple_Size(arg);
            if (unlikely(size < 0)) return NULL;
#endif
            if (likely(size == 1)) {
                PyObject *result, *arg0;
                #if CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS
                arg0 = PyTuple_GET_ITEM(arg, 0);
                #else
                arg0 = __Pyx_PySequence_ITEM(arg, 0); if (unlikely(!arg0)) return NULL;
                #endif
                result = (*meth)(self, arg0);
                #if !(CYTHON_ASSUME_SAFE_MACROS && !CYTHON_AVOID_BORROWED_REFS)
                Py_DECREF(arg0);
                #endif
                return result;
            }
            __Pyx_CyFunction_raise_argument_count_error(
                (__pyx_CyFunctionObject*)func,
                "takes exactly one argument", size);
            return NULL;
        }
        break;
    default:
        PyErr_SetString(PyExc_SystemError, "Bad call flags for CyFunction");
        return NULL;
    }
    __Pyx_CyFunction_raise_type_error(
        (__pyx_CyFunctionObject*)func, "takes no keyword arguments");
    return NULL;
}
static CYTHON_INLINE PyObject *__Pyx_CyFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) {
    PyObject *self, *result;
#if CYTHON_COMPILING_IN_LIMITED_API
    self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)func)->func);
    if (unlikely(!self) && PyErr_Occurred()) return NULL;
#else
    self = ((PyCFunctionObject*)func)->m_self;
#endif
    result = __Pyx_CyFunction_CallMethod(func, self, arg, kw);
    return result;
}
static PyObject *__Pyx_CyFunction_CallAsMethod(PyObject *func, PyObject *args, PyObject *kw) {
    PyObject *result;
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *) func;
#if CYTHON_METH_FASTCALL && CYTHON_VECTORCALL
     __pyx_vectorcallfunc vc = __Pyx_CyFunction_func_vectorcall(cyfunc);
    if (vc) {
#if CYTHON_ASSUME_SAFE_MACROS && CYTHON_ASSUME_SAFE_SIZE
        return __Pyx_PyVectorcall_FastCallDict(func, vc, &PyTuple_GET_ITEM(args, 0), (size_t)PyTuple_GET_SIZE(args), kw);
#else
        (void) &__Pyx_PyVectorcall_FastCallDict;
        return PyVectorcall_Call(func, args, kw);
#endif
    }
#endif
    if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) {
        Py_ssize_t argc;
        PyObject *new_args;
        PyObject *self;
#if CYTHON_ASSUME_SAFE_SIZE
        argc = PyTuple_GET_SIZE(args);
#else
        argc = PyTuple_Size(args);
        if (unlikely(argc < 0)) return NULL;
#endif
        new_args = PyTuple_GetSlice(args, 1, argc);
        if (unlikely(!new_args))
            return NULL;
        self = PyTuple_GetItem(args, 0);
        if (unlikely(!self)) {
            Py_DECREF(new_args);
            PyErr_Format(PyExc_TypeError,
                         "unbound method %.200S() needs an argument",
                         cyfunc->func_qualname);
            return NULL;
        }
        result = __Pyx_CyFunction_CallMethod(func, self, new_args, kw);
        Py_DECREF(new_args);
    } else {
        result = __Pyx_CyFunction_Call(func, args, kw);
    }
    return result;
}
#if CYTHON_METH_FASTCALL && CYTHON_VECTORCALL
static CYTHON_INLINE int __Pyx_CyFunction_Vectorcall_CheckArgs(__pyx_CyFunctionObject *cyfunc, Py_ssize_t nargs, PyObject *kwnames)
{
    int ret = 0;
    if ((cyfunc->flags & __Pyx_CYFUNCTION_CCLASS) && !(cyfunc->flags & __Pyx_CYFUNCTION_STATICMETHOD)) {
        if (unlikely(nargs < 1)) {
            __Pyx_CyFunction_raise_type_error(
                cyfunc, "needs an argument");
            return -1;
        }
        ret = 1;
    }
    if (unlikely(kwnames) && unlikely(__Pyx_PyTuple_GET_SIZE(kwnames))) {
        __Pyx_CyFunction_raise_type_error(
            cyfunc, "takes no keyword arguments");
        return -1;
    }
    return ret;
}
static PyObject * __Pyx_CyFunction_Vectorcall_NOARGS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
{
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
    PyObject *self;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyCFunction meth = PyCFunction_GetFunction(cyfunc->func);
    if (unlikely(!meth)) return NULL;
#else
    PyCFunction meth = ((PyCFunctionObject*)cyfunc)->m_ml->ml_meth;
#endif
    switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, kwnames)) {
    case 1:
        self = args[0];
        args += 1;
        nargs -= 1;
        break;
    case 0:
#if CYTHON_COMPILING_IN_LIMITED_API
        self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)cyfunc)->func);
        if (unlikely(!self) && PyErr_Occurred()) return NULL;
#else
        self = ((PyCFunctionObject*)cyfunc)->m_self;
#endif
        break;
    default:
        return NULL;
    }
    if (unlikely(nargs != 0)) {
        __Pyx_CyFunction_raise_argument_count_error(
            cyfunc, "takes no arguments", nargs);
        return NULL;
    }
    return meth(self, NULL);
}
static PyObject * __Pyx_CyFunction_Vectorcall_O(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
{
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
    PyObject *self;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyCFunction meth = PyCFunction_GetFunction(cyfunc->func);
    if (unlikely(!meth)) return NULL;
#else
    PyCFunction meth = ((PyCFunctionObject*)cyfunc)->m_ml->ml_meth;
#endif
    switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, kwnames)) {
    case 1:
        self = args[0];
        args += 1;
        nargs -= 1;
        break;
    case 0:
#if CYTHON_COMPILING_IN_LIMITED_API
        self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)cyfunc)->func);
        if (unlikely(!self) && PyErr_Occurred()) return NULL;
#else
        self = ((PyCFunctionObject*)cyfunc)->m_self;
#endif
        break;
    default:
        return NULL;
    }
    if (unlikely(nargs != 1)) {
        __Pyx_CyFunction_raise_argument_count_error(
            cyfunc, "takes exactly one argument", nargs);
        return NULL;
    }
    return meth(self, args[0]);
}
static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
{
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
    PyObject *self;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyCFunction meth = PyCFunction_GetFunction(cyfunc->func);
    if (unlikely(!meth)) return NULL;
#else
    PyCFunction meth = ((PyCFunctionObject*)cyfunc)->m_ml->ml_meth;
#endif
    switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, NULL)) {
    case 1:
        self = args[0];
        args += 1;
        nargs -= 1;
        break;
    case 0:
#if CYTHON_COMPILING_IN_LIMITED_API
        self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)cyfunc)->func);
        if (unlikely(!self) && PyErr_Occurred()) return NULL;
#else
        self = ((PyCFunctionObject*)cyfunc)->m_self;
#endif
        break;
    default:
        return NULL;
    }
    return ((__Pyx_PyCFunctionFastWithKeywords)(void(*)(void))meth)(self, args, nargs, kwnames);
}
static PyObject * __Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS_METHOD(PyObject *func, PyObject *const *args, size_t nargsf, PyObject *kwnames)
{
    __pyx_CyFunctionObject *cyfunc = (__pyx_CyFunctionObject *)func;
    PyTypeObject *cls = (PyTypeObject *) __Pyx_CyFunction_GetClassObj(cyfunc);
    Py_ssize_t nargs = PyVectorcall_NARGS(nargsf);
    PyObject *self;
#if CYTHON_COMPILING_IN_LIMITED_API
    PyCFunction meth = PyCFunction_GetFunction(cyfunc->func);
    if (unlikely(!meth)) return NULL;
#else
    PyCFunction meth = ((PyCFunctionObject*)cyfunc)->m_ml->ml_meth;
#endif
    switch (__Pyx_CyFunction_Vectorcall_CheckArgs(cyfunc, nargs, NULL)) {
    case 1:
        self = args[0];
        args += 1;
        nargs -= 1;
        break;
    case 0:
#if CYTHON_COMPILING_IN_LIMITED_API
        self = PyCFunction_GetSelf(((__pyx_CyFunctionObject*)cyfunc)->func);
        if (unlikely(!self) && PyErr_Occurred()) return NULL;
#else
        self = ((PyCFunctionObject*)cyfunc)->m_self;
#endif
        break;
    default:
        return NULL;
    }
    #if PY_VERSION_HEX < 0x030e00A6
    size_t nargs_value = (size_t) nargs;
    #else
    Py_ssize_t nargs_value = nargs;
    #endif
    return ((__Pyx_PyCMethod)(void(*)(void))meth)(self, cls, args, nargs_value, kwnames);
}
#endif
static PyType_Slot __pyx_CyFunctionType_slots[] = {
    {Py_tp_dealloc, (void *)__Pyx_CyFunction_dealloc},
    {Py_tp_repr, (void *)__Pyx_CyFunction_repr},
    {Py_tp_call, (void *)__Pyx_CyFunction_CallAsMethod},
    {Py_tp_traverse, (void *)__Pyx_CyFunction_traverse},
    {Py_tp_clear, (void *)__Pyx_CyFunction_clear},
    {Py_tp_methods, (void *)__pyx_CyFunction_methods},
    {Py_tp_members, (void *)__pyx_CyFunction_members},
    {Py_tp_getset, (void *)__pyx_CyFunction_getsets},
    {Py_tp_descr_get, (void *)__Pyx_PyMethod_New},
    {0, 0},
};
static PyType_Spec __pyx_CyFunctionType_spec = {
    __PYX_TYPE_MODULE_PREFIX "cython_function_or_method",
    sizeof(__pyx_CyFunctionObject),
    0,
#ifdef Py_TPFLAGS_METHOD_DESCRIPTOR
    Py_TPFLAGS_METHOD_DESCRIPTOR |
#endif
#if CYTHON_METH_FASTCALL
#if defined(Py_TPFLAGS_HAVE_VECTORCALL)
    Py_TPFLAGS_HAVE_VECTORCALL |
#elif defined(_Py_TPFLAGS_HAVE_VECTORCALL)
    _Py_TPFLAGS_HAVE_VECTORCALL |
#endif
#endif // CYTHON_METH_FASTCALL
#if PY_VERSION_HEX >= 0x030C0000 && !CYTHON_COMPILING_IN_LIMITED_API
    Py_TPFLAGS_MANAGED_DICT |
#endif
    Py_TPFLAGS_IMMUTABLETYPE | Py_TPFLAGS_DISALLOW_INSTANTIATION |
    Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC | Py_TPFLAGS_BASETYPE,
    __pyx_CyFunctionType_slots
};
static int __pyx_CyFunction_init(PyObject *module) {
    __pyx_mstatetype *mstate = __Pyx_PyModule_GetState(module);
    mstate->__pyx_CyFunctionType = __Pyx_FetchCommonTypeFromSpec(
        mstate->__pyx_CommonTypesMetaclassType, module, &__pyx_CyFunctionType_spec, NULL);
    if (unlikely(mstate->__pyx_CyFunctionType == NULL)) {
        return -1;
    }
    return 0;
}
static CYTHON_INLINE PyObject *__Pyx_CyFunction_InitDefaults(PyObject *func, PyTypeObject *defaults_type) {
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    m->defaults = PyObject_CallObject((PyObject*)defaults_type, NULL); // _PyObject_New(defaults_type);
    if (unlikely(!m->defaults))
        return NULL;
    return m->defaults;
}
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *func, PyObject *tuple) {
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    m->defaults_tuple = tuple;
    Py_INCREF(tuple);
}
static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *func, PyObject *dict) {
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    m->defaults_kwdict = dict;
    Py_INCREF(dict);
}
static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, PyObject *dict) {
    __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func;
    m->func_annotations = dict;
    Py_INCREF(dict);
}

/* CythonFunction */
static PyObject *__Pyx_CyFunction_New(PyMethodDef *ml, int flags, PyObject* qualname,
                                      PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) {
    PyObject *op = __Pyx_CyFunction_Init(
        PyObject_GC_New(__pyx_CyFunctionObject, __pyx_mstate_global->__pyx_CyFunctionType),
        ml, flags, qualname, closure, module, globals, code
    );
    if (likely(op)) {
        PyObject_GC_Track(op);
    }
    return op;
}

/* CLineInTraceback (used by AddTraceback) */
#if CYTHON_CLINE_IN_TRACEBACK && CYTHON_CLINE_IN_TRACEBACK_RUNTIME
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030A0000
#define __Pyx_PyProbablyModule_GetDict(o) __Pyx_XNewRef(PyModule_GetDict(o))
#elif !CYTHON_COMPILING_IN_CPYTHON || CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
#define __Pyx_PyProbablyModule_GetDict(o) PyObject_GenericGetDict(o, NULL);
#else
PyObject* __Pyx_PyProbablyModule_GetDict(PyObject *o) {
    PyObject **dict_ptr = _PyObject_GetDictPtr(o);
    return dict_ptr ? __Pyx_XNewRef(*dict_ptr) : NULL;
}
#endif
static int __Pyx_CLineForTraceback(PyThreadState *tstate, int c_line) {
    PyObject *use_cline = NULL;
    PyObject *ptype, *pvalue, *ptraceback;
    PyObject *cython_runtime_dict;
    CYTHON_MAYBE_UNUSED_VAR(tstate);
    if (unlikely(!__pyx_mstate_global->__pyx_cython_runtime)) {
        return c_line;
    }
    __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
    cython_runtime_dict = __Pyx_PyProbablyModule_GetDict(__pyx_mstate_global->__pyx_cython_runtime);
    if (likely(cython_runtime_dict)) {
        __PYX_PY_DICT_LOOKUP_IF_MODIFIED(
            use_cline, cython_runtime_dict,
            __Pyx_PyDict_SetDefault(cython_runtime_dict, __pyx_mstate_global->__pyx_n_u_cline_in_traceback, Py_False))
    }
    if (use_cline == NULL || use_cline == Py_False || (use_cline != Py_True && PyObject_Not(use_cline) != 0)) {
        c_line = 0;
    }
    Py_XDECREF(use_cline);
    Py_XDECREF(cython_runtime_dict);
    __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
    return c_line;
}
#endif

/* CodeObjectCache (used by AddTraceback) */
static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) {
    int start = 0, mid = 0, end = count - 1;
    if (end >= 0 && code_line > entries[end].code_line) {
        return count;
    }
    while (start < end) {
        mid = start + (end - start) / 2;
        if (code_line < entries[mid].code_line) {
            end = mid;
        } else if (code_line > entries[mid].code_line) {
             start = mid + 1;
        } else {
            return mid;
        }
    }
    if (code_line <= entries[mid].code_line) {
        return mid;
    } else {
        return mid + 1;
    }
}
static __Pyx_CachedCodeObjectType *__pyx__find_code_object(struct __Pyx_CodeObjectCache *code_cache, int code_line) {
    __Pyx_CachedCodeObjectType* code_object;
    int pos;
    if (unlikely(!code_line) || unlikely(!code_cache->entries)) {
        return NULL;
    }
    pos = __pyx_bisect_code_objects(code_cache->entries, code_cache->count, code_line);
    if (unlikely(pos >= code_cache->count) || unlikely(code_cache->entries[pos].code_line != code_line)) {
        return NULL;
    }
    code_object = code_cache->entries[pos].code_object;
    Py_INCREF(code_object);
    return code_object;
}
static __Pyx_CachedCodeObjectType *__pyx_find_code_object(int code_line) {
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && !CYTHON_ATOMICS
    (void)__pyx__find_code_object;
    return NULL; // Most implementation should have atomics. But otherwise, don't make it thread-safe, just miss.
#else
    struct __Pyx_CodeObjectCache *code_cache = &__pyx_mstate_global->__pyx_code_cache;
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_nonatomic_int_type old_count = __pyx_atomic_incr_acq_rel(&code_cache->accessor_count);
    if (old_count < 0) {
        __pyx_atomic_decr_acq_rel(&code_cache->accessor_count);
        return NULL;
    }
#endif
    __Pyx_CachedCodeObjectType *result = __pyx__find_code_object(code_cache, code_line);
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_atomic_decr_acq_rel(&code_cache->accessor_count);
#endif
    return result;
#endif
}
static void __pyx__insert_code_object(struct __Pyx_CodeObjectCache *code_cache, int code_line, __Pyx_CachedCodeObjectType* code_object)
{
    int pos, i;
    __Pyx_CodeObjectCacheEntry* entries = code_cache->entries;
    if (unlikely(!code_line)) {
        return;
    }
    if (unlikely(!entries)) {
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry));
        if (likely(entries)) {
            code_cache->entries = entries;
            code_cache->max_count = 64;
            code_cache->count = 1;
            entries[0].code_line = code_line;
            entries[0].code_object = code_object;
            Py_INCREF(code_object);
        }
        return;
    }
    pos = __pyx_bisect_code_objects(code_cache->entries, code_cache->count, code_line);
    if ((pos < code_cache->count) && unlikely(code_cache->entries[pos].code_line == code_line)) {
        __Pyx_CachedCodeObjectType* tmp = entries[pos].code_object;
        entries[pos].code_object = code_object;
        Py_INCREF(code_object);
        Py_DECREF(tmp);
        return;
    }
    if (code_cache->count == code_cache->max_count) {
        int new_max = code_cache->max_count + 64;
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc(
            code_cache->entries, ((size_t)new_max) * sizeof(__Pyx_CodeObjectCacheEntry));
        if (unlikely(!entries)) {
            return;
        }
        code_cache->entries = entries;
        code_cache->max_count = new_max;
    }
    for (i=code_cache->count; i>pos; i--) {
        entries[i] = entries[i-1];
    }
    entries[pos].code_line = code_line;
    entries[pos].code_object = code_object;
    code_cache->count++;
    Py_INCREF(code_object);
}
static void __pyx_insert_code_object(int code_line, __Pyx_CachedCodeObjectType* code_object) {
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING && !CYTHON_ATOMICS
    (void)__pyx__insert_code_object;
    return; // Most implementation should have atomics. But otherwise, don't make it thread-safe, just fail.
#else
    struct __Pyx_CodeObjectCache *code_cache = &__pyx_mstate_global->__pyx_code_cache;
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_nonatomic_int_type expected = 0;
    if (!__pyx_atomic_int_cmp_exchange(&code_cache->accessor_count, &expected, INT_MIN)) {
        return;
    }
#endif
    __pyx__insert_code_object(code_cache, code_line, code_object);
#if CYTHON_COMPILING_IN_CPYTHON_FREETHREADING
    __pyx_atomic_sub(&code_cache->accessor_count, INT_MIN);
#endif
#endif
}

/* AddTraceback */
#include "compile.h"
#include "frameobject.h"
#include "traceback.h"
#if PY_VERSION_HEX >= 0x030b00a6 && !CYTHON_COMPILING_IN_LIMITED_API && !defined(PYPY_VERSION)
  #ifndef Py_BUILD_CORE
    #define Py_BUILD_CORE 1
  #endif
  #include "internal/pycore_frame.h"
#endif
#if CYTHON_COMPILING_IN_LIMITED_API
static PyObject *__Pyx_PyCode_Replace_For_AddTraceback(PyObject *code, PyObject *scratch_dict,
                                                       PyObject *firstlineno, PyObject *name) {
    PyObject *replace = NULL;
    if (unlikely(PyDict_SetItemString(scratch_dict, "co_firstlineno", firstlineno))) return NULL;
    if (unlikely(PyDict_SetItemString(scratch_dict, "co_name", name))) return NULL;
    replace = PyObject_GetAttrString(code, "replace");
    if (likely(replace)) {
        PyObject *result = PyObject_Call(replace, __pyx_mstate_global->__pyx_empty_tuple, scratch_dict);
        Py_DECREF(replace);
        return result;
    }
    PyErr_Clear();
    return NULL;
}
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename) {
    PyObject *code_object = NULL, *py_py_line = NULL, *py_funcname = NULL, *dict = NULL;
    PyObject *replace = NULL, *getframe = NULL, *frame = NULL;
    PyObject *exc_type, *exc_value, *exc_traceback;
    int success = 0;
    if (c_line) {
        c_line = __Pyx_CLineForTraceback(__Pyx_PyThreadState_Current, c_line);
    }
    PyErr_Fetch(&exc_type, &exc_value, &exc_traceback);
    code_object = __pyx_find_code_object(c_line ? -c_line : py_line);
    if (!code_object) {
        code_object = Py_CompileString("_getframe()", filename, Py_eval_input);
        if (unlikely(!code_object)) goto bad;
        py_py_line = PyLong_FromLong(py_line);
        if (unlikely(!py_py_line)) goto bad;
        if (c_line) {
            py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        } else {
            py_funcname = PyUnicode_FromString(funcname);
        }
        if (unlikely(!py_funcname)) goto bad;
        dict = PyDict_New();
        if (unlikely(!dict)) goto bad;
        {
            PyObject *old_code_object = code_object;
            code_object = __Pyx_PyCode_Replace_For_AddTraceback(code_object, dict, py_py_line, py_funcname);
            Py_DECREF(old_code_object);
        }
        if (unlikely(!code_object)) goto bad;
        __pyx_insert_code_object(c_line ? -c_line : py_line, code_object);
    } else {
        dict = PyDict_New();
    }
    getframe = PySys_GetObject("_getframe");
    if (unlikely(!getframe)) goto bad;
    if (unlikely(PyDict_SetItemString(dict, "_getframe", getframe))) goto bad;
    frame = PyEval_EvalCode(code_object, dict, dict);
    if (unlikely(!frame) || frame == Py_None) goto bad;
    success = 1;
  bad:
    PyErr_Restore(exc_type, exc_value, exc_traceback);
    Py_XDECREF(code_object);
    Py_XDECREF(py_py_line);
    Py_XDECREF(py_funcname);
    Py_XDECREF(dict);
    Py_XDECREF(replace);
    if (success) {
        PyTraceBack_Here(
            (struct _frame*)frame);
    }
    Py_XDECREF(frame);
}
#else
static PyCodeObject* __Pyx_CreateCodeObjectForTraceback(
            const char *funcname, int c_line,
            int py_line, const char *filename) {
    PyCodeObject *py_code = NULL;
    PyObject *py_funcname = NULL;
    if (c_line) {
        py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        if (!py_funcname) goto bad;
        funcname = PyUnicode_AsUTF8(py_funcname);
        if (!funcname) goto bad;
    }
    py_code = PyCode_NewEmpty(filename, funcname, py_line);
    Py_XDECREF(py_funcname);
    return py_code;
bad:
    Py_XDECREF(py_funcname);
    return NULL;
}
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename) {
    PyCodeObject *py_code = 0;
    PyFrameObject *py_frame = 0;
    PyThreadState *tstate = __Pyx_PyThreadState_Current;
    PyObject *ptype, *pvalue, *ptraceback;
    if (c_line) {
        c_line = __Pyx_CLineForTraceback(tstate, c_line);
    }
    py_code = __pyx_find_code_object(c_line ? -c_line : py_line);
    if (!py_code) {
        __Pyx_ErrFetchInState(tstate, &ptype, &pvalue, &ptraceback);
        py_code = __Pyx_CreateCodeObjectForTraceback(
            funcname, c_line, py_line, filename);
        if (!py_code) {
            /* If the code object creation fails, then we should clear the
               fetched exception references and propagate the new exception */
            Py_XDECREF(ptype);
            Py_XDECREF(pvalue);
            Py_XDECREF(ptraceback);
            goto bad;
        }
        __Pyx_ErrRestoreInState(tstate, ptype, pvalue, ptraceback);
        __pyx_insert_code_object(c_line ? -c_line : py_line, py_code);
    }
    py_frame = PyFrame_New(
        tstate,            /*PyThreadState *tstate,*/
        py_code,           /*PyCodeObject *code,*/
        __pyx_mstate_global->__pyx_d,    /*PyObject *globals,*/
        0                  /*PyObject *locals*/
    );
    if (!py_frame) goto bad;
    __Pyx_PyFrame_SetLineNumber(py_frame, py_line);
    PyTraceBack_Here(py_frame);
bad:
    Py_XDECREF(py_code);
    Py_XDECREF(py_frame);
}
#endif

/* PyObjectVectorCallKwBuilder (used by CIntToPy) */
#if CYTHON_VECTORCALL
static int __Pyx_VectorcallBuilder_AddArg(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n) {
    (void)__Pyx_PyObject_FastCallDict;
    if (__Pyx_PyTuple_SET_ITEM(builder, n, key) != (0)) return -1;
    Py_INCREF(key);
    args[n] = value;
    return 0;
}
CYTHON_UNUSED static int __Pyx_VectorcallBuilder_AddArg_Check(PyObject *key, PyObject *value, PyObject *builder, PyObject **args, int n) {
    (void)__Pyx_VectorcallBuilder_AddArgStr;
    if (unlikely(!PyUnicode_Check(key))) {
        PyErr_SetString(PyExc_TypeError, "keywords must be strings");
        return -1;
    }
    return __Pyx_VectorcallBuilder_AddArg(key, value, builder, args, n);
}
static int __Pyx_VectorcallBuilder_AddArgStr(const char *key, PyObject *value, PyObject *builder, PyObject **args, int n) {
    PyObject *pyKey = PyUnicode_FromString(key);
    if (!pyKey) return -1;
    return __Pyx_VectorcallBuilder_AddArg(pyKey, value, builder, args, n);
}
#else // CYTHON_VECTORCALL
CYTHON_UNUSED static int __Pyx_VectorcallBuilder_AddArg_Check(PyObject *key, PyObject *value, PyObject *builder, CYTHON_UNUSED PyObject **args, CYTHON_UNUSED int n) {
    if (unlikely(!PyUnicode_Check(key))) {
        PyErr_SetString(PyExc_TypeError, "keywords must be strings");
        return -1;
    }
    return PyDict_SetItem(builder, key, value);
}
#endif

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_GLenum(GLenum value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const GLenum neg_one = (GLenum) -1, const_zero = (GLenum) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(GLenum) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(GLenum) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(GLenum) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(GLenum) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(GLenum) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(GLenum),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(GLenum));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_GLuint(GLuint value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const GLuint neg_one = (GLuint) -1, const_zero = (GLuint) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(GLuint) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(GLuint) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(GLuint) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(GLuint) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(GLuint) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(GLuint),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(GLuint));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_PY_LONG_LONG(PY_LONG_LONG value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const PY_LONG_LONG neg_one = (PY_LONG_LONG) -1, const_zero = (PY_LONG_LONG) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(PY_LONG_LONG) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(PY_LONG_LONG) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(PY_LONG_LONG) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(PY_LONG_LONG) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(PY_LONG_LONG) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(PY_LONG_LONG),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(PY_LONG_LONG));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_GLsizeiptr(GLsizeiptr value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const GLsizeiptr neg_one = (GLsizeiptr) -1, const_zero = (GLsizeiptr) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(GLsizeiptr) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(GLsizeiptr) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(GLsizeiptr) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(GLsizeiptr) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(GLsizeiptr) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(GLsizeiptr),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(GLsizeiptr));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_GLintptr(GLintptr value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const GLintptr neg_one = (GLintptr) -1, const_zero = (GLintptr) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(GLintptr) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(GLintptr) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(GLintptr) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(GLintptr) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(GLintptr) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(GLintptr),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(GLintptr));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_GLbitfield(GLbitfield value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const GLbitfield neg_one = (GLbitfield) -1, const_zero = (GLbitfield) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(GLbitfield) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(GLbitfield) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(GLbitfield) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(GLbitfield) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(GLbitfield) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(GLbitfield),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(GLbitfield));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_GLint(GLint value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const GLint neg_one = (GLint) -1, const_zero = (GLint) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(GLint) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(GLint) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(GLint) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(GLint) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(GLint) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(GLint),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(GLint));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_GLboolean(GLboolean value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const GLboolean neg_one = (GLboolean) -1, const_zero = (GLboolean) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(GLboolean) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(GLboolean) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(GLboolean) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(GLboolean) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(GLboolean) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(GLboolean),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(GLboolean));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_GLsizei(GLsizei value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const GLsizei neg_one = (GLsizei) -1, const_zero = (GLsizei) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(GLsizei) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(GLsizei) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(GLsizei) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(GLsizei) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(GLsizei) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(GLsizei),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(GLsizei));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* FormatTypeName */
#if CYTHON_COMPILING_IN_LIMITED_API && __PYX_LIMITED_VERSION_HEX < 0x030d0000
static __Pyx_TypeName
__Pyx_PyType_GetFullyQualifiedName(PyTypeObject* tp)
{
    PyObject *module = NULL, *name = NULL, *result = NULL;
    #if __PYX_LIMITED_VERSION_HEX < 0x030b0000
    name = __Pyx_PyObject_GetAttrStr((PyObject *)tp,
                                               __pyx_mstate_global->__pyx_n_u_qualname);
    #else
    name = PyType_GetQualName(tp);
    #endif
    if (unlikely(name == NULL) || unlikely(!PyUnicode_Check(name))) goto bad;
    module = __Pyx_PyObject_GetAttrStr((PyObject *)tp,
                                               __pyx_mstate_global->__pyx_n_u_module);
    if (unlikely(module == NULL) || unlikely(!PyUnicode_Check(module))) goto bad;
    if (PyUnicode_CompareWithASCIIString(module, "builtins") == 0) {
        result = name;
        name = NULL;
        goto done;
    }
    result = PyUnicode_FromFormat("%U.%U", module, name);
    if (unlikely(result == NULL)) goto bad;
  done:
    Py_XDECREF(name);
    Py_XDECREF(module);
    return result;
  bad:
    PyErr_Clear();
    if (name) {
        result = name;
        name = NULL;
    } else {
        result = __Pyx_NewRef(__pyx_mstate_global->__pyx_kp_u__5);
    }
    goto done;
}
#endif

/* CIntToPy */
static CYTHON_INLINE PyObject* __Pyx_PyLong_From_long(long value) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const long neg_one = (long) -1, const_zero = (long) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(long) < sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(long) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
#if !CYTHON_COMPILING_IN_PYPY
        } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
#endif
        }
    } else {
        if (sizeof(long) <= sizeof(long)) {
            return PyLong_FromLong((long) value);
        } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        unsigned char *bytes = (unsigned char *)&value;
#if !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d00A4
        if (is_unsigned) {
            return PyLong_FromUnsignedNativeBytes(bytes, sizeof(value), -1);
        } else {
            return PyLong_FromNativeBytes(bytes, sizeof(value), -1);
        }
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX < 0x030d0000
        int one = 1; int little = (int)*(unsigned char *)&one;
        return _PyLong_FromByteArray(bytes, sizeof(long),
                                     little, !is_unsigned);
#else
        int one = 1; int little = (int)*(unsigned char *)&one;
        PyObject *from_bytes, *result = NULL, *kwds = NULL;
        PyObject *py_bytes = NULL, *order_str = NULL;
        from_bytes = PyObject_GetAttrString((PyObject*)&PyLong_Type, "from_bytes");
        if (!from_bytes) return NULL;
        py_bytes = PyBytes_FromStringAndSize((char*)bytes, sizeof(long));
        if (!py_bytes) goto limited_bad;
        order_str = PyUnicode_FromString(little ? "little" : "big");
        if (!order_str) goto limited_bad;
        {
            PyObject *args[3+(CYTHON_VECTORCALL ? 1 : 0)] = { NULL, py_bytes, order_str };
            if (!is_unsigned) {
                kwds = __Pyx_MakeVectorcallBuilderKwds(1);
                if (!kwds) goto limited_bad;
                if (__Pyx_VectorcallBuilder_AddArgStr("signed", __Pyx_NewRef(Py_True), kwds, args+3, 0) < 0) goto limited_bad;
            }
            result = __Pyx_Object_Vectorcall_CallFromBuilder(from_bytes, args+1, 2 | __Pyx_PY_VECTORCALL_ARGUMENTS_OFFSET, kwds);
        }
        limited_bad:
        Py_XDECREF(kwds);
        Py_XDECREF(order_str);
        Py_XDECREF(py_bytes);
        Py_XDECREF(from_bytes);
        return result;
#endif
    }
}

/* CIntFromPyVerify (used by CIntFromPy) */
#define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\
    __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
#define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\
    __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1)
#define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\
    {\
        func_type value = func_value;\
        if (sizeof(target_type) < sizeof(func_type)) {\
            if (unlikely(value != (func_type) (target_type) value)) {\
                func_type zero = 0;\
                if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\
                    return (target_type) -1;\
                if (is_unsigned && unlikely(value < zero))\
                    goto raise_neg_overflow;\
                else\
                    goto raise_overflow;\
            }\
        }\
        return (target_type) value;\
    }

/* CIntFromPy */
static CYTHON_INLINE long __Pyx_PyLong_As_long(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const long neg_one = (long) -1, const_zero = (long) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        long val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (long) -1;
        val = __Pyx_PyLong_As_long(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(long) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) >= 2 * PyLong_SHIFT)) {
                            return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) >= 3 * PyLong_SHIFT)) {
                            return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) >= 4 * PyLong_SHIFT)) {
                            return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        if (unlikely(Py_SIZE(x) < 0)) {
            goto raise_neg_overflow;
        }
#else
        {
            int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
            if (unlikely(result < 0))
                return (long) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(long) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(long) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(long, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(long) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
                            return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(long) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
                            return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(long) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
                            return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(long) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
                            return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(long) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) {
                            return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(long) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(long) - 1 > 4 * PyLong_SHIFT)) {
                            return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(long) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x))
        } else if ((sizeof(long) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        long val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (long) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (long) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (long) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (long) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(long) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((long) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(long) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((long) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((long) 1) << (sizeof(long) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (long) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to long");
    return (long) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to long");
    return (long) -1;
}

/* CIntFromPy */
static CYTHON_INLINE int __Pyx_PyLong_As_int(PyObject *x) {
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wconversion"
#endif
    const int neg_one = (int) -1, const_zero = (int) 0;
#ifdef __Pyx_HAS_GCC_DIAGNOSTIC
#pragma GCC diagnostic pop
#endif
    const int is_unsigned = neg_one > const_zero;
    if (unlikely(!PyLong_Check(x))) {
        int val;
        PyObject *tmp = __Pyx_PyNumber_Long(x);
        if (!tmp) return (int) -1;
        val = __Pyx_PyLong_As_int(tmp);
        Py_DECREF(tmp);
        return val;
    }
    if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
        if (unlikely(__Pyx_PyLong_IsNeg(x))) {
            goto raise_neg_overflow;
        } else if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_upylong, __Pyx_PyLong_CompactValueUnsigned(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_DigitCount(x)) {
                case 2:
                    if ((8 * sizeof(int) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) >= 2 * PyLong_SHIFT)) {
                            return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(int) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) >= 3 * PyLong_SHIFT)) {
                            return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(int) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) >= 4 * PyLong_SHIFT)) {
                            return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
            }
        }
#endif
#if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX < 0x030C00A7
        if (unlikely(Py_SIZE(x) < 0)) {
            goto raise_neg_overflow;
        }
#else
        {
            int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
            if (unlikely(result < 0))
                return (int) -1;
            if (unlikely(result == 1))
                goto raise_neg_overflow;
        }
#endif
        if ((sizeof(int) <= sizeof(unsigned long))) {
            __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x))
        } else if ((sizeof(int) <= sizeof(unsigned PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
        }
    } else {
#if CYTHON_USE_PYLONG_INTERNALS
        if (__Pyx_PyLong_IsCompact(x)) {
            __PYX_VERIFY_RETURN_INT(int, __Pyx_compact_pylong, __Pyx_PyLong_CompactValue(x))
        } else {
            const digit* digits = __Pyx_PyLong_Digits(x);
            assert(__Pyx_PyLong_DigitCount(x) > 1);
            switch (__Pyx_PyLong_SignedDigitCount(x)) {
                case -2:
                    if ((8 * sizeof(int) - 1 > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
                            return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if ((8 * sizeof(int) > 1 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 2 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
                            return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if ((8 * sizeof(int) - 1 > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
                            return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if ((8 * sizeof(int) > 2 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 3 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
                            return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if ((8 * sizeof(int) - 1 > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) {
                            return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if ((8 * sizeof(int) > 3 * PyLong_SHIFT)) {
                        if ((8 * sizeof(unsigned long) > 4 * PyLong_SHIFT)) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if ((8 * sizeof(int) - 1 > 4 * PyLong_SHIFT)) {
                            return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
            }
        }
#endif
        if ((sizeof(int) <= sizeof(long))) {
            __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x))
        } else if ((sizeof(int) <= sizeof(PY_LONG_LONG))) {
            __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x))
        }
    }
    {
        int val;
        int ret = -1;
#if PY_VERSION_HEX >= 0x030d00A6 && !CYTHON_COMPILING_IN_LIMITED_API
        Py_ssize_t bytes_copied = PyLong_AsNativeBytes(
            x, &val, sizeof(val), Py_ASNATIVEBYTES_NATIVE_ENDIAN | (is_unsigned ? Py_ASNATIVEBYTES_UNSIGNED_BUFFER | Py_ASNATIVEBYTES_REJECT_NEGATIVE : 0));
        if (unlikely(bytes_copied == -1)) {
        } else if (unlikely(bytes_copied > (Py_ssize_t) sizeof(val))) {
            goto raise_overflow;
        } else {
            ret = 0;
        }
#elif PY_VERSION_HEX < 0x030d0000 && !(CYTHON_COMPILING_IN_PYPY || CYTHON_COMPILING_IN_LIMITED_API) || defined(_PyLong_AsByteArray)
        int one = 1; int is_little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&val;
        ret = _PyLong_AsByteArray((PyLongObject *)x,
                                    bytes, sizeof(val),
                                    is_little, !is_unsigned);
#else
        PyObject *v;
        PyObject *stepval = NULL, *mask = NULL, *shift = NULL;
        int bits, remaining_bits, is_negative = 0;
        int chunk_size = (sizeof(long) < 8) ? 30 : 62;
        if (likely(PyLong_CheckExact(x))) {
            v = __Pyx_NewRef(x);
        } else {
            v = PyNumber_Long(x);
            if (unlikely(!v)) return (int) -1;
            assert(PyLong_CheckExact(v));
        }
        {
            int result = PyObject_RichCompareBool(v, Py_False, Py_LT);
            if (unlikely(result < 0)) {
                Py_DECREF(v);
                return (int) -1;
            }
            is_negative = result == 1;
        }
        if (is_unsigned && unlikely(is_negative)) {
            Py_DECREF(v);
            goto raise_neg_overflow;
        } else if (is_negative) {
            stepval = PyNumber_Invert(v);
            Py_DECREF(v);
            if (unlikely(!stepval))
                return (int) -1;
        } else {
            stepval = v;
        }
        v = NULL;
        val = (int) 0;
        mask = PyLong_FromLong((1L << chunk_size) - 1); if (unlikely(!mask)) goto done;
        shift = PyLong_FromLong(chunk_size); if (unlikely(!shift)) goto done;
        for (bits = 0; bits < (int) sizeof(int) * 8 - chunk_size; bits += chunk_size) {
            PyObject *tmp, *digit;
            long idigit;
            digit = PyNumber_And(stepval, mask);
            if (unlikely(!digit)) goto done;
            idigit = PyLong_AsLong(digit);
            Py_DECREF(digit);
            if (unlikely(idigit < 0)) goto done;
            val |= ((int) idigit) << bits;
            tmp = PyNumber_Rshift(stepval, shift);
            if (unlikely(!tmp)) goto done;
            Py_DECREF(stepval); stepval = tmp;
        }
        Py_DECREF(shift); shift = NULL;
        Py_DECREF(mask); mask = NULL;
        {
            long idigit = PyLong_AsLong(stepval);
            if (unlikely(idigit < 0)) goto done;
            remaining_bits = ((int) sizeof(int) * 8) - bits - (is_unsigned ? 0 : 1);
            if (unlikely(idigit >= (1L << remaining_bits)))
                goto raise_overflow;
            val |= ((int) idigit) << bits;
        }
        if (!is_unsigned) {
            if (unlikely(val & (((int) 1) << (sizeof(int) * 8 - 1))))
                goto raise_overflow;
            if (is_negative)
                val = ~val;
        }
        ret = 0;
    done:
        Py_XDECREF(shift);
        Py_XDECREF(mask);
        Py_XDECREF(stepval);
#endif
        if (unlikely(ret))
            return (int) -1;
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to int");
    return (int) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to int");
    return (int) -1;
}

/* FastTypeChecks */
#if CYTHON_COMPILING_IN_CPYTHON
static int __Pyx_InBases(PyTypeObject *a, PyTypeObject *b) {
    while (a) {
        a = __Pyx_PyType_GetSlot(a, tp_base, PyTypeObject*);
        if (a == b)
            return 1;
    }
    return b == &PyBaseObject_Type;
}
static CYTHON_INLINE int __Pyx_IsSubtype(PyTypeObject *a, PyTypeObject *b) {
    PyObject *mro;
    if (a == b) return 1;
    mro = a->tp_mro;
    if (likely(mro)) {
        Py_ssize_t i, n;
        n = PyTuple_GET_SIZE(mro);
        for (i = 0; i < n; i++) {
            if (PyTuple_GET_ITEM(mro, i) == (PyObject *)b)
                return 1;
        }
        return 0;
    }
    return __Pyx_InBases(a, b);
}
static CYTHON_INLINE int __Pyx_IsAnySubtype2(PyTypeObject *cls, PyTypeObject *a, PyTypeObject *b) {
    PyObject *mro;
    if (cls == a || cls == b) return 1;
    mro = cls->tp_mro;
    if (likely(mro)) {
        Py_ssize_t i, n;
        n = PyTuple_GET_SIZE(mro);
        for (i = 0; i < n; i++) {
            PyObject *base = PyTuple_GET_ITEM(mro, i);
            if (base == (PyObject *)a || base == (PyObject *)b)
                return 1;
        }
        return 0;
    }
    return __Pyx_InBases(cls, a) || __Pyx_InBases(cls, b);
}
static CYTHON_INLINE int __Pyx_inner_PyErr_GivenExceptionMatches2(PyObject *err, PyObject* exc_type1, PyObject *exc_type2) {
    if (exc_type1) {
        return __Pyx_IsAnySubtype2((PyTypeObject*)err, (PyTypeObject*)exc_type1, (PyTypeObject*)exc_type2);
    } else {
        return __Pyx_IsSubtype((PyTypeObject*)err, (PyTypeObject*)exc_type2);
    }
}
static int __Pyx_PyErr_GivenExceptionMatchesTuple(PyObject *exc_type, PyObject *tuple) {
    Py_ssize_t i, n;
    assert(PyExceptionClass_Check(exc_type));
    n = PyTuple_GET_SIZE(tuple);
    for (i=0; i<n; i++) {
        if (exc_type == PyTuple_GET_ITEM(tuple, i)) return 1;
    }
    for (i=0; i<n; i++) {
        PyObject *t = PyTuple_GET_ITEM(tuple, i);
        if (likely(PyExceptionClass_Check(t))) {
            if (__Pyx_inner_PyErr_GivenExceptionMatches2(exc_type, NULL, t)) return 1;
        } else {
        }
    }
    return 0;
}
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches(PyObject *err, PyObject* exc_type) {
    if (likely(err == exc_type)) return 1;
    if (likely(PyExceptionClass_Check(err))) {
        if (likely(PyExceptionClass_Check(exc_type))) {
            return __Pyx_inner_PyErr_GivenExceptionMatches2(err, NULL, exc_type);
        } else if (likely(PyTuple_Check(exc_type))) {
            return __Pyx_PyErr_GivenExceptionMatchesTuple(err, exc_type);
        } else {
        }
    }
    return PyErr_GivenExceptionMatches(err, exc_type);
}
static CYTHON_INLINE int __Pyx_PyErr_GivenExceptionMatches2(PyObject *err, PyObject *exc_type1, PyObject *exc_type2) {
    assert(PyExceptionClass_Check(exc_type1));
    assert(PyExceptionClass_Check(exc_type2));
    if (likely(err == exc_type1 || err == exc_type2)) return 1;
    if (likely(PyExceptionClass_Check(err))) {
        return __Pyx_inner_PyErr_GivenExceptionMatches2(err, exc_type1, exc_type2);
    }
    return (PyErr_GivenExceptionMatches(err, exc_type1) || PyErr_GivenExceptionMatches(err, exc_type2));
}
#endif

/* GetRuntimeVersion */
#if __PYX_LIMITED_VERSION_HEX < 0x030b0000
void __Pyx_init_runtime_version(void) {
    if (__Pyx_cached_runtime_version == 0) {
        const char* rt_version = Py_GetVersion();
        unsigned long version = 0;
        unsigned long factor = 0x01000000UL;
        unsigned int digit = 0;
        int i = 0;
        while (factor) {
            while ('0' <= rt_version[i] && rt_version[i] <= '9') {
                digit = digit * 10 + (unsigned int) (rt_version[i] - '0');
                ++i;
            }
            version += factor * digit;
            if (rt_version[i] != '.')
                break;
            digit = 0;
            factor >>= 8;
            ++i;
        }
        __Pyx_cached_runtime_version = version;
    }
}
#endif
static unsigned long __Pyx_get_runtime_version(void) {
#if __PYX_LIMITED_VERSION_HEX >= 0x030b0000
    return Py_Version & ~0xFFUL;
#else
    return __Pyx_cached_runtime_version;
#endif
}

/* CheckBinaryVersion */
static int __Pyx_check_binary_version(unsigned long ct_version, unsigned long rt_version, int allow_newer) {
    const unsigned long MAJOR_MINOR = 0xFFFF0000UL;
    if ((rt_version & MAJOR_MINOR) == (ct_version & MAJOR_MINOR))
        return 0;
    if (likely(allow_newer && (rt_version & MAJOR_MINOR) > (ct_version & MAJOR_MINOR)))
        return 1;
    {
        char message[200];
        PyOS_snprintf(message, sizeof(message),
                      "compile time Python version %d.%d "
                      "of module '%.100s' "
                      "%s "
                      "runtime version %d.%d",
                       (int) (ct_version >> 24), (int) ((ct_version >> 16) & 0xFF),
                       __Pyx_MODULE_NAME,
                       (allow_newer) ? "was newer than" : "does not match",
                       (int) (rt_version >> 24), (int) ((rt_version >> 16) & 0xFF)
       );
        return PyErr_WarnEx(NULL, message, 1);
    }
}

/* NewCodeObj */
#if CYTHON_COMPILING_IN_LIMITED_API
    static PyObject* __Pyx__PyCode_New(int a, int p, int k, int l, int s, int f,
                                       PyObject *code, PyObject *c, PyObject* n, PyObject *v,
                                       PyObject *fv, PyObject *cell, PyObject* fn,
                                       PyObject *name, int fline, PyObject *lnos) {
        PyObject *exception_table = NULL;
        PyObject *types_module=NULL, *code_type=NULL, *result=NULL;
        #if __PYX_LIMITED_VERSION_HEX < 0x030b0000
        PyObject *version_info;
        PyObject *py_minor_version = NULL;
        #endif
        long minor_version = 0;
        PyObject *type, *value, *traceback;
        PyErr_Fetch(&type, &value, &traceback);
        #if __PYX_LIMITED_VERSION_HEX >= 0x030b0000
        minor_version = 11;
        #else
        if (!(version_info = PySys_GetObject("version_info"))) goto end;
        if (!(py_minor_version = PySequence_GetItem(version_info, 1))) goto end;
        minor_version = PyLong_AsLong(py_minor_version);
        Py_DECREF(py_minor_version);
        if (minor_version == -1 && PyErr_Occurred()) goto end;
        #endif
        if (!(types_module = PyImport_ImportModule("types"))) goto end;
        if (!(code_type = PyObject_GetAttrString(types_module, "CodeType"))) goto end;
        if (minor_version <= 7) {
            (void)p;
            result = PyObject_CallFunction(code_type, "iiiiiOOOOOOiOOO", a, k, l, s, f, code,
                          c, n, v, fn, name, fline, lnos, fv, cell);
        } else if (minor_version <= 10) {
            result = PyObject_CallFunction(code_type, "iiiiiiOOOOOOiOOO", a,p, k, l, s, f, code,
                          c, n, v, fn, name, fline, lnos, fv, cell);
        } else {
            if (!(exception_table = PyBytes_FromStringAndSize(NULL, 0))) goto end;
            result = PyObject_CallFunction(code_type, "iiiiiiOOOOOOOiOOOO", a,p, k, l, s, f, code,
                          c, n, v, fn, name, name, fline, lnos, exception_table, fv, cell);
        }
    end:
        Py_XDECREF(code_type);
        Py_XDECREF(exception_table);
        Py_XDECREF(types_module);
        if (type) {
            PyErr_Restore(type, value, traceback);
        }
        return result;
    }
#elif PY_VERSION_HEX >= 0x030B0000
  static PyCodeObject* __Pyx__PyCode_New(int a, int p, int k, int l, int s, int f,
                                         PyObject *code, PyObject *c, PyObject* n, PyObject *v,
                                         PyObject *fv, PyObject *cell, PyObject* fn,
                                         PyObject *name, int fline, PyObject *lnos) {
    PyCodeObject *result;
    result =
      #if PY_VERSION_HEX >= 0x030C0000
        PyUnstable_Code_NewWithPosOnlyArgs
      #else
        PyCode_NewWithPosOnlyArgs
      #endif
        (a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, name, fline, lnos, __pyx_mstate_global->__pyx_empty_bytes);
    #if CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x030c00A1
    if (likely(result))
        result->_co_firsttraceable = 0;
    #endif
    return result;
  }
#elif !CYTHON_COMPILING_IN_PYPY
  #define __Pyx__PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_NewWithPosOnlyArgs(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
#else
  #define __Pyx__PyCode_New(a, p, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
#endif
static PyObject* __Pyx_PyCode_New(
        const __Pyx_PyCode_New_function_description descr,
        PyObject * const *varnames,
        PyObject *filename,
        PyObject *funcname,
        PyObject *line_table,
        PyObject *tuple_dedup_map
) {
    PyObject *code_obj = NULL, *varnames_tuple_dedup = NULL, *code_bytes = NULL;
    Py_ssize_t var_count = (Py_ssize_t) descr.nlocals;
    PyObject *varnames_tuple = PyTuple_New(var_count);
    if (unlikely(!varnames_tuple)) return NULL;
    for (Py_ssize_t i=0; i < var_count; i++) {
        Py_INCREF(varnames[i]);
        if (__Pyx_PyTuple_SET_ITEM(varnames_tuple, i, varnames[i]) != (0)) goto done;
    }
    #if CYTHON_COMPILING_IN_LIMITED_API
    varnames_tuple_dedup = PyDict_GetItem(tuple_dedup_map, varnames_tuple);
    if (!varnames_tuple_dedup) {
        if (unlikely(PyDict_SetItem(tuple_dedup_map, varnames_tuple, varnames_tuple) < 0)) goto done;
        varnames_tuple_dedup = varnames_tuple;
    }
    #else
    varnames_tuple_dedup = PyDict_SetDefault(tuple_dedup_map, varnames_tuple, varnames_tuple);
    if (unlikely(!varnames_tuple_dedup)) goto done;
    #endif
    #if CYTHON_AVOID_BORROWED_REFS
    Py_INCREF(varnames_tuple_dedup);
    #endif
    if (__PYX_LIMITED_VERSION_HEX >= (0x030b0000) && line_table != NULL && !CYTHON_COMPILING_IN_GRAAL) {
        Py_ssize_t line_table_length = __Pyx_PyBytes_GET_SIZE(line_table);
        #if !CYTHON_ASSUME_SAFE_SIZE
        if (unlikely(line_table_length == -1)) goto done;
        #endif
        Py_ssize_t code_len = (line_table_length * 2 + 4) & ~3LL;
        code_bytes = PyBytes_FromStringAndSize(NULL, code_len);
        if (unlikely(!code_bytes)) goto done;
        char* c_code_bytes = PyBytes_AsString(code_bytes);
        if (unlikely(!c_code_bytes)) goto done;
        memset(c_code_bytes, 0, (size_t) code_len);
    }
    code_obj = (PyObject*) __Pyx__PyCode_New(
        (int) descr.argcount,
        (int) descr.num_posonly_args,
        (int) descr.num_kwonly_args,
        (int) descr.nlocals,
        0,
        (int) descr.flags,
        code_bytes ? code_bytes : __pyx_mstate_global->__pyx_empty_bytes,
        __pyx_mstate_global->__pyx_empty_tuple,
        __pyx_mstate_global->__pyx_empty_tuple,
        varnames_tuple_dedup,
        __pyx_mstate_global->__pyx_empty_tuple,
        __pyx_mstate_global->__pyx_empty_tuple,
        filename,
        funcname,
        (int) descr.first_line,
        (__PYX_LIMITED_VERSION_HEX >= (0x030b0000) && line_table) ? line_table : __pyx_mstate_global->__pyx_empty_bytes
    );
done:
    Py_XDECREF(code_bytes);
    #if CYTHON_AVOID_BORROWED_REFS
    Py_XDECREF(varnames_tuple_dedup);
    #endif
    Py_DECREF(varnames_tuple);
    return code_obj;
}

/* DecompressString */
static PyObject *__Pyx_DecompressString(const char *s, Py_ssize_t length, int algo) {
    PyObject *module, *decompress, *compressed_bytes, *decompressed;
    const char* module_name = algo == 3 ? "compression.zstd" : algo == 2 ? "bz2" : "zlib";
    PyObject *methodname = PyUnicode_FromString("decompress");
    if (unlikely(!methodname)) return NULL;
    #if __PYX_LIMITED_VERSION_HEX >= 0x030e0000
    if (algo == 3) {
        PyObject *fromlist = Py_BuildValue("[O]", methodname);
        if (unlikely(!fromlist)) return NULL;
        module = PyImport_ImportModuleLevel("compression.zstd", NULL, NULL, fromlist, 0);
        Py_DECREF(fromlist);
    } else
    #endif
        module = PyImport_ImportModule(module_name);
    if (unlikely(!module)) goto import_failed;
    decompress = PyObject_GetAttr(module, methodname);
    if (unlikely(!decompress)) goto import_failed;
    {
        #ifdef __cplusplus
            char *memview_bytes = const_cast<char*>(s);
        #else
            #if defined(__clang__)
              #pragma clang diagnostic push
              #pragma clang diagnostic ignored "-Wcast-qual"
            #elif !defined(__INTEL_COMPILER) && defined(__GNUC__)
              #pragma GCC diagnostic push
              #pragma GCC diagnostic ignored "-Wcast-qual"
            #endif
            char *memview_bytes = (char*) s;
            #if defined(__clang__)
              #pragma clang diagnostic pop
            #elif !defined(__INTEL_COMPILER) && defined(__GNUC__)
              #pragma GCC diagnostic pop
            #endif
        #endif
        #if CYTHON_COMPILING_IN_LIMITED_API && !defined(PyBUF_READ)
        int memview_flags = 0x100;
        #else
        int memview_flags = PyBUF_READ;
        #endif
        compressed_bytes = PyMemoryView_FromMemory(memview_bytes, length, memview_flags);
    }
    if (unlikely(!compressed_bytes)) {
        Py_DECREF(decompress);
        goto bad;
    }
    decompressed = PyObject_CallFunctionObjArgs(decompress, compressed_bytes, NULL);
    Py_DECREF(compressed_bytes);
    Py_DECREF(decompress);
    Py_DECREF(module);
    Py_DECREF(methodname);
    return decompressed;
import_failed:
    PyErr_Format(PyExc_ImportError,
        "Failed to import '%.20s.decompress' - cannot initialise module strings. "
        "String compression was configured with the C macro 'CYTHON_COMPRESS_STRINGS=%d'.",
        module_name, algo);
bad:
    Py_XDECREF(module);
    Py_DECREF(methodname);
    return NULL;
}

#include <string.h>
static CYTHON_INLINE Py_ssize_t __Pyx_ssize_strlen(const char *s) {
    size_t len = strlen(s);
    if (unlikely(len > (size_t) PY_SSIZE_T_MAX)) {
        PyErr_SetString(PyExc_OverflowError, "byte string is too long");
        return -1;
    }
    return (Py_ssize_t) len;
}
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) {
    Py_ssize_t len = __Pyx_ssize_strlen(c_str);
    if (unlikely(len < 0)) return NULL;
    return __Pyx_PyUnicode_FromStringAndSize(c_str, len);
}
static CYTHON_INLINE PyObject* __Pyx_PyByteArray_FromString(const char* c_str) {
    Py_ssize_t len = __Pyx_ssize_strlen(c_str);
    if (unlikely(len < 0)) return NULL;
    return PyByteArray_FromStringAndSize(c_str, len);
}
static CYTHON_INLINE const char* __Pyx_PyObject_AsString(PyObject* o) {
    Py_ssize_t ignore;
    return __Pyx_PyObject_AsStringAndSize(o, &ignore);
}
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_UTF8
static CYTHON_INLINE const char* __Pyx_PyUnicode_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
    if (unlikely(__Pyx_PyUnicode_READY(o) == -1)) return NULL;
#if CYTHON_COMPILING_IN_LIMITED_API
    {
        const char* result;
        Py_ssize_t unicode_length;
        CYTHON_MAYBE_UNUSED_VAR(unicode_length); // only for __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
        #if __PYX_LIMITED_VERSION_HEX < 0x030A0000
        if (unlikely(PyArg_Parse(o, "s#", &result, length) < 0)) return NULL;
        #else
        result = PyUnicode_AsUTF8AndSize(o, length);
        #endif
        #if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
        unicode_length = PyUnicode_GetLength(o);
        if (unlikely(unicode_length < 0)) return NULL;
        if (unlikely(unicode_length != *length)) {
            PyUnicode_AsASCIIString(o);
            return NULL;
        }
        #endif
        return result;
    }
#else
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
    if (likely(PyUnicode_IS_ASCII(o))) {
        *length = PyUnicode_GET_LENGTH(o);
        return PyUnicode_AsUTF8(o);
    } else {
        PyUnicode_AsASCIIString(o);
        return NULL;
    }
#else
    return PyUnicode_AsUTF8AndSize(o, length);
#endif
#endif
}
#endif
static CYTHON_INLINE const char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_UTF8
    if (PyUnicode_Check(o)) {
        return __Pyx_PyUnicode_AsStringAndSize(o, length);
    } else
#endif
    if (PyByteArray_Check(o)) {
#if (CYTHON_ASSUME_SAFE_SIZE && CYTHON_ASSUME_SAFE_MACROS) || (CYTHON_COMPILING_IN_PYPY && (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE)))
        *length = PyByteArray_GET_SIZE(o);
        return PyByteArray_AS_STRING(o);
#else
        *length = PyByteArray_Size(o);
        if (*length == -1) return NULL;
        return PyByteArray_AsString(o);
#endif
    } else
    {
        char* result;
        int r = PyBytes_AsStringAndSize(o, &result, length);
        if (unlikely(r < 0)) {
            return NULL;
        } else {
            return result;
        }
    }
}
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) {
   int is_true = x == Py_True;
   if (is_true | (x == Py_False) | (x == Py_None)) return is_true;
   else return PyObject_IsTrue(x);
}
static CYTHON_INLINE int __Pyx_PyObject_IsTrueAndDecref(PyObject* x) {
    int retval;
    if (unlikely(!x)) return -1;
    retval = __Pyx_PyObject_IsTrue(x);
    Py_DECREF(x);
    return retval;
}
static PyObject* __Pyx_PyNumber_LongWrongResultType(PyObject* result) {
    __Pyx_TypeName result_type_name = __Pyx_PyType_GetFullyQualifiedName(Py_TYPE(result));
    if (PyLong_Check(result)) {
        if (PyErr_WarnFormat(PyExc_DeprecationWarning, 1,
                "__int__ returned non-int (type " __Pyx_FMT_TYPENAME ").  "
                "The ability to return an instance of a strict subclass of int is deprecated, "
                "and may be removed in a future version of Python.",
                result_type_name)) {
            __Pyx_DECREF_TypeName(result_type_name);
            Py_DECREF(result);
            return NULL;
        }
        __Pyx_DECREF_TypeName(result_type_name);
        return result;
    }
    PyErr_Format(PyExc_TypeError,
                 "__int__ returned non-int (type " __Pyx_FMT_TYPENAME ")",
                 result_type_name);
    __Pyx_DECREF_TypeName(result_type_name);
    Py_DECREF(result);
    return NULL;
}
static CYTHON_INLINE PyObject* __Pyx_PyNumber_Long(PyObject* x) {
#if CYTHON_USE_TYPE_SLOTS
  PyNumberMethods *m;
#endif
  PyObject *res = NULL;
  if (likely(PyLong_Check(x)))
      return __Pyx_NewRef(x);
#if CYTHON_USE_TYPE_SLOTS
  m = Py_TYPE(x)->tp_as_number;
  if (likely(m && m->nb_int)) {
      res = m->nb_int(x);
  }
#else
  if (!PyBytes_CheckExact(x) && !PyUnicode_CheckExact(x)) {
      res = PyNumber_Long(x);
  }
#endif
  if (likely(res)) {
      if (unlikely(!PyLong_CheckExact(res))) {
          return __Pyx_PyNumber_LongWrongResultType(res);
      }
  }
  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;
  if (likely(PyLong_CheckExact(b))) {
    #if CYTHON_USE_PYLONG_INTERNALS
    if (likely(__Pyx_PyLong_IsCompact(b))) {
        return __Pyx_PyLong_CompactValue(b);
    } else {
      const digit* digits = __Pyx_PyLong_Digits(b);
      const Py_ssize_t size = __Pyx_PyLong_SignedDigitCount(b);
      switch (size) {
         case 2:
           if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -2:
           if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case 3:
           if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -3:
           if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case 4:
           if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -4:
           if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
      }
    }
    #endif
    return PyLong_AsSsize_t(b);
  }
  x = PyNumber_Index(b);
  if (!x) return -1;
  ival = PyLong_AsSsize_t(x);
  Py_DECREF(x);
  return ival;
}
static CYTHON_INLINE Py_hash_t __Pyx_PyIndex_AsHash_t(PyObject* o) {
  if (sizeof(Py_hash_t) == sizeof(Py_ssize_t)) {
    return (Py_hash_t) __Pyx_PyIndex_AsSsize_t(o);
  } else {
    Py_ssize_t ival;
    PyObject *x;
    x = PyNumber_Index(o);
    if (!x) return -1;
    ival = PyLong_AsLong(x);
    Py_DECREF(x);
    return ival;
  }
}
static CYTHON_INLINE PyObject *__Pyx_Owned_Py_None(int b) {
    CYTHON_UNUSED_VAR(b);
    return __Pyx_NewRef(Py_None);
}
static CYTHON_INLINE PyObject * __Pyx_PyBool_FromLong(long b) {
  return __Pyx_NewRef(b ? Py_True: Py_False);
}
static CYTHON_INLINE PyObject * __Pyx_PyLong_FromSize_t(size_t ival) {
    return PyLong_FromSize_t(ival);
}


/* MultiPhaseInitModuleState */
#if CYTHON_PEP489_MULTI_PHASE_INIT && CYTHON_USE_MODULE_STATE
#ifndef CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
#if (CYTHON_COMPILING_IN_LIMITED_API || PY_VERSION_HEX >= 0x030C0000)
  #define CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE 1
#else
  #define CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE 0
#endif
#endif
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE && !CYTHON_ATOMICS
#error "Module state with PEP489 requires atomics. Currently that's one of\
 C11, C++11, gcc atomic intrinsics or MSVC atomic intrinsics"
#endif
#if !CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
#define __Pyx_ModuleStateLookup_Lock()
#define __Pyx_ModuleStateLookup_Unlock()
#elif !CYTHON_COMPILING_IN_LIMITED_API && PY_VERSION_HEX >= 0x030d0000
static PyMutex __Pyx_ModuleStateLookup_mutex = {0};
#define __Pyx_ModuleStateLookup_Lock() PyMutex_Lock(&__Pyx_ModuleStateLookup_mutex)
#define __Pyx_ModuleStateLookup_Unlock() PyMutex_Unlock(&__Pyx_ModuleStateLookup_mutex)
#elif defined(__cplusplus) && __cplusplus >= 201103L
#include <mutex>
static std::mutex __Pyx_ModuleStateLookup_mutex;
#define __Pyx_ModuleStateLookup_Lock() __Pyx_ModuleStateLookup_mutex.lock()
#define __Pyx_ModuleStateLookup_Unlock() __Pyx_ModuleStateLookup_mutex.unlock()
#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ > 201112L) && !defined(__STDC_NO_THREADS__)
#include <threads.h>
static mtx_t __Pyx_ModuleStateLookup_mutex;
static once_flag __Pyx_ModuleStateLookup_mutex_once_flag = ONCE_FLAG_INIT;
static void __Pyx_ModuleStateLookup_initialize_mutex(void) {
    mtx_init(&__Pyx_ModuleStateLookup_mutex, mtx_plain);
}
#define __Pyx_ModuleStateLookup_Lock()\
  call_once(&__Pyx_ModuleStateLookup_mutex_once_flag, __Pyx_ModuleStateLookup_initialize_mutex);\
  mtx_lock(&__Pyx_ModuleStateLookup_mutex)
#define __Pyx_ModuleStateLookup_Unlock() mtx_unlock(&__Pyx_ModuleStateLookup_mutex)
#elif defined(HAVE_PTHREAD_H)
#include <pthread.h>
static pthread_mutex_t __Pyx_ModuleStateLookup_mutex = PTHREAD_MUTEX_INITIALIZER;
#define __Pyx_ModuleStateLookup_Lock() pthread_mutex_lock(&__Pyx_ModuleStateLookup_mutex)
#define __Pyx_ModuleStateLookup_Unlock() pthread_mutex_unlock(&__Pyx_ModuleStateLookup_mutex)
#elif defined(_WIN32)
#include <Windows.h>  // synchapi.h on its own doesn't work
static SRWLOCK __Pyx_ModuleStateLookup_mutex = SRWLOCK_INIT;
#define __Pyx_ModuleStateLookup_Lock() AcquireSRWLockExclusive(&__Pyx_ModuleStateLookup_mutex)
#define __Pyx_ModuleStateLookup_Unlock() ReleaseSRWLockExclusive(&__Pyx_ModuleStateLookup_mutex)
#else
#error "No suitable lock available for CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE.\
 Requires C standard >= C11, or C++ standard >= C++11,\
 or pthreads, or the Windows 32 API, or Python >= 3.13."
#endif
typedef struct {
    int64_t id;
    PyObject *module;
} __Pyx_InterpreterIdAndModule;
typedef struct {
    char interpreter_id_as_index;
    Py_ssize_t count;
    Py_ssize_t allocated;
    __Pyx_InterpreterIdAndModule table[1];
} __Pyx_ModuleStateLookupData;
#define __PYX_MODULE_STATE_LOOKUP_SMALL_SIZE 32
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
static __pyx_atomic_int_type __Pyx_ModuleStateLookup_read_counter = 0;
#endif
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
static __pyx_atomic_ptr_type __Pyx_ModuleStateLookup_data = 0;
#else
static __Pyx_ModuleStateLookupData* __Pyx_ModuleStateLookup_data = NULL;
#endif
static __Pyx_InterpreterIdAndModule* __Pyx_State_FindModuleStateLookupTableLowerBound(
        __Pyx_InterpreterIdAndModule* table,
        Py_ssize_t count,
        int64_t interpreterId) {
    __Pyx_InterpreterIdAndModule* begin = table;
    __Pyx_InterpreterIdAndModule* end = begin + count;
    if (begin->id == interpreterId) {
        return begin;
    }
    while ((end - begin) > __PYX_MODULE_STATE_LOOKUP_SMALL_SIZE) {
        __Pyx_InterpreterIdAndModule* halfway = begin + (end - begin)/2;
        if (halfway->id == interpreterId) {
            return halfway;
        }
        if (halfway->id < interpreterId) {
            begin = halfway;
        } else {
            end = halfway;
        }
    }
    for (; begin < end; ++begin) {
        if (begin->id >= interpreterId) return begin;
    }
    return begin;
}
static PyObject *__Pyx_State_FindModule(CYTHON_UNUSED void* dummy) {
    int64_t interpreter_id = PyInterpreterState_GetID(__Pyx_PyInterpreterState_Get());
    if (interpreter_id == -1) return NULL;
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __Pyx_ModuleStateLookupData* data = (__Pyx_ModuleStateLookupData*)__pyx_atomic_pointer_load_relaxed(&__Pyx_ModuleStateLookup_data);
    {
        __pyx_atomic_incr_acq_rel(&__Pyx_ModuleStateLookup_read_counter);
        if (likely(data)) {
            __Pyx_ModuleStateLookupData* new_data = (__Pyx_ModuleStateLookupData*)__pyx_atomic_pointer_load_acquire(&__Pyx_ModuleStateLookup_data);
            if (likely(data == new_data)) {
                goto read_finished;
            }
        }
        __pyx_atomic_decr_acq_rel(&__Pyx_ModuleStateLookup_read_counter);
        __Pyx_ModuleStateLookup_Lock();
        __pyx_atomic_incr_relaxed(&__Pyx_ModuleStateLookup_read_counter);
        data = (__Pyx_ModuleStateLookupData*)__pyx_atomic_pointer_load_relaxed(&__Pyx_ModuleStateLookup_data);
        __Pyx_ModuleStateLookup_Unlock();
    }
  read_finished:;
#else
    __Pyx_ModuleStateLookupData* data = __Pyx_ModuleStateLookup_data;
#endif
    __Pyx_InterpreterIdAndModule* found = NULL;
    if (unlikely(!data)) goto end;
    if (data->interpreter_id_as_index) {
        if (interpreter_id < data->count) {
            found = data->table+interpreter_id;
        }
    } else {
        found = __Pyx_State_FindModuleStateLookupTableLowerBound(
            data->table, data->count, interpreter_id);
    }
  end:
    {
        PyObject *result=NULL;
        if (found && found->id == interpreter_id) {
            result = found->module;
        }
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
        __pyx_atomic_decr_acq_rel(&__Pyx_ModuleStateLookup_read_counter);
#endif
        return result;
    }
}
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
static void __Pyx_ModuleStateLookup_wait_until_no_readers(void) {
    while (__pyx_atomic_load(&__Pyx_ModuleStateLookup_read_counter) != 0);
}
#else
#define __Pyx_ModuleStateLookup_wait_until_no_readers()
#endif
static int __Pyx_State_AddModuleInterpIdAsIndex(__Pyx_ModuleStateLookupData **old_data, PyObject* module, int64_t interpreter_id) {
    Py_ssize_t to_allocate = (*old_data)->allocated;
    while (to_allocate <= interpreter_id) {
        if (to_allocate == 0) to_allocate = 1;
        else to_allocate *= 2;
    }
    __Pyx_ModuleStateLookupData *new_data = *old_data;
    if (to_allocate != (*old_data)->allocated) {
         new_data = (__Pyx_ModuleStateLookupData *)realloc(
            *old_data,
            sizeof(__Pyx_ModuleStateLookupData)+(to_allocate-1)*sizeof(__Pyx_InterpreterIdAndModule));
        if (!new_data) {
            PyErr_NoMemory();
            return -1;
        }
        for (Py_ssize_t i = new_data->allocated; i < to_allocate; ++i) {
            new_data->table[i].id = i;
            new_data->table[i].module = NULL;
        }
        new_data->allocated = to_allocate;
    }
    new_data->table[interpreter_id].module = module;
    if (new_data->count < interpreter_id+1) {
        new_data->count = interpreter_id+1;
    }
    *old_data = new_data;
    return 0;
}
static void __Pyx_State_ConvertFromInterpIdAsIndex(__Pyx_ModuleStateLookupData *data) {
    __Pyx_InterpreterIdAndModule *read = data->table;
    __Pyx_InterpreterIdAndModule *write = data->table;
    __Pyx_InterpreterIdAndModule *end = read + data->count;
    for (; read<end; ++read) {
        if (read->module) {
            write->id = read->id;
            write->module = read->module;
            ++write;
        }
    }
    data->count = write - data->table;
    for (; write<end; ++write) {
        write->id = 0;
        write->module = NULL;
    }
    data->interpreter_id_as_index = 0;
}
static int __Pyx_State_AddModule(PyObject* module, CYTHON_UNUSED void* dummy) {
    int64_t interpreter_id = PyInterpreterState_GetID(__Pyx_PyInterpreterState_Get());
    if (interpreter_id == -1) return -1;
    int result = 0;
    __Pyx_ModuleStateLookup_Lock();
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __Pyx_ModuleStateLookupData *old_data = (__Pyx_ModuleStateLookupData *)
            __pyx_atomic_pointer_exchange(&__Pyx_ModuleStateLookup_data, 0);
#else
    __Pyx_ModuleStateLookupData *old_data = __Pyx_ModuleStateLookup_data;
#endif
    __Pyx_ModuleStateLookupData *new_data = old_data;
    if (!new_data) {
        new_data = (__Pyx_ModuleStateLookupData *)calloc(1, sizeof(__Pyx_ModuleStateLookupData));
        if (!new_data) {
            result = -1;
            PyErr_NoMemory();
            goto end;
        }
        new_data->allocated = 1;
        new_data->interpreter_id_as_index = 1;
    }
    __Pyx_ModuleStateLookup_wait_until_no_readers();
    if (new_data->interpreter_id_as_index) {
        if (interpreter_id < __PYX_MODULE_STATE_LOOKUP_SMALL_SIZE) {
            result = __Pyx_State_AddModuleInterpIdAsIndex(&new_data, module, interpreter_id);
            goto end;
        }
        __Pyx_State_ConvertFromInterpIdAsIndex(new_data);
    }
    {
        Py_ssize_t insert_at = 0;
        {
            __Pyx_InterpreterIdAndModule* lower_bound = __Pyx_State_FindModuleStateLookupTableLowerBound(
                new_data->table, new_data->count, interpreter_id);
            assert(lower_bound);
            insert_at = lower_bound - new_data->table;
            if (unlikely(insert_at < new_data->count && lower_bound->id == interpreter_id)) {
                lower_bound->module = module;
                goto end;  // already in table, nothing more to do
            }
        }
        if (new_data->count+1 >= new_data->allocated) {
            Py_ssize_t to_allocate = (new_data->count+1)*2;
            new_data =
                (__Pyx_ModuleStateLookupData*)realloc(
                    new_data,
                    sizeof(__Pyx_ModuleStateLookupData) +
                    (to_allocate-1)*sizeof(__Pyx_InterpreterIdAndModule));
            if (!new_data) {
                result = -1;
                new_data = old_data;
                PyErr_NoMemory();
                goto end;
            }
            new_data->allocated = to_allocate;
        }
        ++new_data->count;
        int64_t last_id = interpreter_id;
        PyObject *last_module = module;
        for (Py_ssize_t i=insert_at; i<new_data->count; ++i) {
            int64_t current_id = new_data->table[i].id;
            new_data->table[i].id = last_id;
            last_id = current_id;
            PyObject *current_module = new_data->table[i].module;
            new_data->table[i].module = last_module;
            last_module = current_module;
        }
    }
  end:
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __pyx_atomic_pointer_exchange(&__Pyx_ModuleStateLookup_data, new_data);
#else
    __Pyx_ModuleStateLookup_data = new_data;
#endif
    __Pyx_ModuleStateLookup_Unlock();
    return result;
}
static int __Pyx_State_RemoveModule(CYTHON_UNUSED void* dummy) {
    int64_t interpreter_id = PyInterpreterState_GetID(__Pyx_PyInterpreterState_Get());
    if (interpreter_id == -1) return -1;
    __Pyx_ModuleStateLookup_Lock();
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __Pyx_ModuleStateLookupData *data = (__Pyx_ModuleStateLookupData *)
            __pyx_atomic_pointer_exchange(&__Pyx_ModuleStateLookup_data, 0);
#else
    __Pyx_ModuleStateLookupData *data = __Pyx_ModuleStateLookup_data;
#endif
    if (data->interpreter_id_as_index) {
        if (interpreter_id < data->count) {
            data->table[interpreter_id].module = NULL;
        }
        goto done;
    }
    {
        __Pyx_ModuleStateLookup_wait_until_no_readers();
        __Pyx_InterpreterIdAndModule* lower_bound = __Pyx_State_FindModuleStateLookupTableLowerBound(
            data->table, data->count, interpreter_id);
        if (!lower_bound) goto done;
        if (lower_bound->id != interpreter_id) goto done;
        __Pyx_InterpreterIdAndModule *end = data->table+data->count;
        for (;lower_bound<end-1; ++lower_bound) {
            lower_bound->id = (lower_bound+1)->id;
            lower_bound->module = (lower_bound+1)->module;
        }
    }
    --data->count;
    if (data->count == 0) {
        free(data);
        data = NULL;
    }
  done:
#if CYTHON_MODULE_STATE_LOOKUP_THREAD_SAFE
    __pyx_atomic_pointer_exchange(&__Pyx_ModuleStateLookup_data, data);
#else
    __Pyx_ModuleStateLookup_data = data;
#endif
    __Pyx_ModuleStateLookup_Unlock();
    return 0;
}
#endif

/* #### Code section: utility_code_pragmas_end ### */
#ifdef _MSC_VER
#pragma warning( pop )
#endif



/* #### Code section: end ### */
#endif /* Py_PYTHON_H */
