mirror of
https://github.com/libretro/RetroArch
synced 2025-03-10 16:14:03 +00:00
Some buildfixes for GL_DEBUG
This commit is contained in:
parent
2321ee829f
commit
21438fc0af
@ -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;
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user