src/render/opengl/SDL_render_gl.c
changeset 10646 cc3e4b8f1a8d
parent 10531 f304bc5dd3b5
child 10650 b6ec7005ca15
equal deleted inserted replaced
10645:b3475b7afcbc 10646:cc3e4b8f1a8d
   491     }
   491     }
   492     if (data->debug_enabled && SDL_GL_ExtensionSupported("GL_ARB_debug_output")) {
   492     if (data->debug_enabled && SDL_GL_ExtensionSupported("GL_ARB_debug_output")) {
   493         PFNGLDEBUGMESSAGECALLBACKARBPROC glDebugMessageCallbackARBFunc = (PFNGLDEBUGMESSAGECALLBACKARBPROC) SDL_GL_GetProcAddress("glDebugMessageCallbackARB");
   493         PFNGLDEBUGMESSAGECALLBACKARBPROC glDebugMessageCallbackARBFunc = (PFNGLDEBUGMESSAGECALLBACKARBPROC) SDL_GL_GetProcAddress("glDebugMessageCallbackARB");
   494 
   494 
   495         data->GL_ARB_debug_output_supported = SDL_TRUE;
   495         data->GL_ARB_debug_output_supported = SDL_TRUE;
   496         data->glGetPointerv(GL_DEBUG_CALLBACK_FUNCTION_ARB, (GLvoid **)&data->next_error_callback);
   496         data->glGetPointerv(GL_DEBUG_CALLBACK_FUNCTION_ARB, (GLvoid **)(char *)&data->next_error_callback);
   497         data->glGetPointerv(GL_DEBUG_CALLBACK_USER_PARAM_ARB, &data->next_error_userparam);
   497         data->glGetPointerv(GL_DEBUG_CALLBACK_USER_PARAM_ARB, &data->next_error_userparam);
   498         glDebugMessageCallbackARBFunc(GL_HandleDebugMessage, renderer);
   498         glDebugMessageCallbackARBFunc(GL_HandleDebugMessage, renderer);
   499 
   499 
   500         /* Make sure our callback is called when errors actually happen */
   500         /* Make sure our callback is called when errors actually happen */
   501         data->glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB);
   501         data->glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB);