Fix GL_DEBUG compilation

This commit is contained in:
twinaphex 2014-11-04 18:59:25 +01:00
parent 4cd4ce9772
commit cf7d975b19
2 changed files with 5 additions and 1 deletions

View File

@ -352,7 +352,7 @@ static bool gfx_ctx_glx_init(void *data)
glx_create_context_attribs = (glXCreateContextAttribsARBProc)glXGetProcAddress((const GLubyte*)"glXCreateContextAttribsARB");
#ifdef GL_DEBUG
g_debug = true;
glx->g_debug = true;
#else
glx->g_debug = g_extern.system.hw_render_callback.debug_context;
#endif

View File

@ -44,6 +44,10 @@
#include "shader/shader_glsl.h"
#endif
#ifdef GL_DEBUG
#include <string/string_list.h>
#endif
#include "shader/shader_context.h"
/* Used for the last pass when rendering to the back buffer. */