Some buildfixes for GL_DEBUG

This commit is contained in:
twinaphex 2016-05-12 02:58:09 +02:00
parent 2321ee829f
commit 21438fc0af
2 changed files with 4 additions and 7 deletions

View File

@ -2494,7 +2494,7 @@ static void DEBUG_CALLBACK_TYPE gl_debug_cb(GLenum source, GLenum type,
const GLchar *message, void *userParam)
{
const char *src = NULL;
const char **typestr = NULL;
const char *typestr = NULL;
gl_t *gl = (gl_t*)userParam; /* Useful for debugger. */
(void)gl;

View File

@ -189,16 +189,13 @@ static EGLint *xegl_fill_attribs(xegl_ctx_data_t *xegl, EGLint *attr)
#ifdef EGL_KHR_create_context
case GFX_CTX_OPENGL_API:
{
bool debug = false;
unsigned version = xegl->egl.major * 1000 + xegl->egl.minor;
bool core = version >= 3001;
struct retro_hw_render_callback *hwr = NULL;
hwr = video_driver_get_hw_context();
#ifdef GL_DEBUG
debug = true;
bool debug = true;
#else
debug = hwr->debug_context;
struct retro_hw_render_callback *hwr = video_driver_get_hw_context();
bool debug = hwr->debug_context;
#endif
if (core)