diff --git a/src/main/cpp/egl/loader.c b/src/main/cpp/egl/loader.c index 621ca76..709af34 100644 --- a/src/main/cpp/egl/loader.c +++ b/src/main/cpp/egl/loader.c @@ -10,6 +10,8 @@ #include "../gl/envvars.h" #include "../gles/loader.h" +#define DEBUG 0 + void init_target_egl() { LOG_V("Initializing %s @ %s", RENDERERNAME, __FUNCTION__); EGLDisplay eglDisplay = EGL_NO_DISPLAY; diff --git a/src/main/cpp/gl/glsl/glsl_for_es.cpp b/src/main/cpp/gl/glsl/glsl_for_es.cpp index 1ff27bf..fb3e700 100644 --- a/src/main/cpp/gl/glsl/glsl_for_es.cpp +++ b/src/main/cpp/gl/glsl/glsl_for_es.cpp @@ -12,6 +12,8 @@ #include #include +#define DEBUG 0 + char* (*MesaConvertShader)(const char *src, unsigned int type, unsigned int glsl, unsigned int essl); typedef std::vector Spirv; diff --git a/src/main/cpp/gl/mg.h b/src/main/cpp/gl/mg.h index c8dfae8..34f611b 100644 --- a/src/main/cpp/gl/mg.h +++ b/src/main/cpp/gl/mg.h @@ -27,6 +27,12 @@ static inline void set_gl_state_##name (GLenum value) { \ gl_state->name=value; \ LOG_D(" -> gl_state: %s is %d",#name,value); \ } +#define FUNC_GL_STATE_SIZEI_DECLARATION(name) static inline void set_gl_state_##name (GLsizei value); +#define FUNC_GL_STATE_ENUM_DECLARATION(name) static inline void set_gl_state_##name (GLenum value); + +FUNC_GL_STATE_SIZEI_DECLARATION(proxy_width) +FUNC_GL_STATE_SIZEI_DECLARATION(proxy_height) +FUNC_GL_STATE_ENUM_DECLARATION(proxy_intformat) struct hard_ext_s { GLint maxsize;