should be able to debug OpenGL failures #ifndef _DEBUG now

This commit is contained in:
unknown 2015-03-07 15:51:02 -05:00
parent 8814f429e0
commit a80fe0674f
2 changed files with 5 additions and 2 deletions

View File

@ -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;

View File

@ -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