should be able to debug OpenGL failures #ifndef _DEBUG now
This commit is contained in:
parent
8814f429e0
commit
a80fe0674f
|
@ -1045,6 +1045,11 @@ int grDisplayGLError(const char* message)
|
|||
GLenum status;
|
||||
unsigned int error_index;
|
||||
int failure;
|
||||
const short debug_setting = FindSystemSettingId("Debugger");
|
||||
const unsigned int Project64_debugging = GetSystemSetting(debug_setting);
|
||||
|
||||
if (Project64_debugging == 0)
|
||||
return (failure = -1); /* error checking for errors: pj64 debug off */
|
||||
|
||||
status = glGetError();
|
||||
failure = 1;
|
||||
|
|
|
@ -1890,9 +1890,7 @@ void CALL UpdateScreen (void)
|
|||
if (fullscreen && (*gfx.VI_ORIGIN_REG > width))
|
||||
update_screen_count++;
|
||||
|
||||
#if defined(_DEBUG) || 0
|
||||
grDisplayGLError("UpdateScreen");
|
||||
#endif
|
||||
|
||||
#ifdef FPS
|
||||
// vertical interrupt has occurred, increment counter
|
||||
|
|
Loading…
Reference in New Issue