mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-22 11:28:56 +00:00
Remove non-functional OpenGL logging methods
This commit is contained in:
parent
fc2268d629
commit
1328a8c846
@ -91,10 +91,6 @@ static cmdLineArg d3ArgTable[] = {
|
||||
{"gllists", '\0', "Use OpenGL lists."},
|
||||
#endif
|
||||
|
||||
#ifdef __PERMIT_GL_LOGGING
|
||||
{"gllogging", '\0', "to be removed."},
|
||||
#endif
|
||||
|
||||
{"nomultitexture", 't', "Disable multitexturing."},
|
||||
{"nopackedpixels", 'x', "Disable packed pixels."},
|
||||
{"glfog", 'o', "Enable OpenGL fog."},
|
||||
|
@ -69,10 +69,6 @@
|
||||
#include "ddio.h"
|
||||
#include "pserror.h"
|
||||
|
||||
#ifdef __PERMIT_GL_LOGGING
|
||||
void DGL_EnableLogging(int enable);
|
||||
extern bool __glLog;
|
||||
#endif
|
||||
|
||||
extern bool ddio_mouseGrabbed;
|
||||
|
||||
@ -361,24 +357,6 @@ int sdlKeyFilter(const SDL_Event *event) {
|
||||
ddio_mouseGrabbed = !ddio_mouseGrabbed;
|
||||
SDL_SetRelativeMouseMode(ddio_mouseGrabbed ? SDL_TRUE : SDL_FALSE);
|
||||
return 0;
|
||||
|
||||
#ifdef __PERMIT_GL_LOGGING
|
||||
case KEY_INSERT:
|
||||
if (__glLog == false) {
|
||||
DGL_EnableLogging(1);
|
||||
__glLog = true;
|
||||
mprintf(0, "OpenGL: Logging enabled.");
|
||||
} // if
|
||||
return (0);
|
||||
|
||||
case KEY_DELETE:
|
||||
if (__glLog == true) {
|
||||
DGL_EnableLogging(0);
|
||||
__glLog = false;
|
||||
mprintf(0, "OpenGL: Logging disabled.");
|
||||
} // if
|
||||
return (0);
|
||||
#endif
|
||||
} // switch
|
||||
} // if
|
||||
|
||||
|
@ -466,26 +466,6 @@ int opengl_Setup(oeApplication *app, int *width, int *height) {
|
||||
} // if
|
||||
}
|
||||
|
||||
#ifdef __PERMIT_GL_LOGGING
|
||||
if (FindArg("-gllogging")) {
|
||||
printf("\n"
|
||||
"************************************************************\n"
|
||||
"************************************************************\n"
|
||||
"************************************************************\n"
|
||||
"************************************************************\n"
|
||||
"************************************************************\n"
|
||||
"******** GL LOGGING ENABLED. ***************************\n"
|
||||
"************************************************************\n"
|
||||
"************************************************************\n"
|
||||
"************************************************************\n"
|
||||
"************************************************************\n"
|
||||
"************************************************************\n"
|
||||
"\n");
|
||||
DGL_EnableLogging(1);
|
||||
__glLog = true;
|
||||
} // if
|
||||
#endif
|
||||
|
||||
SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8 );
|
||||
SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8);
|
||||
SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8);
|
||||
@ -1743,12 +1723,6 @@ void rend_Flip(void) {
|
||||
dglViewport(0, 0, GOpenGLFBOWidth, GOpenGLFBOHeight);
|
||||
dglScissor(0, 0, GOpenGLFBOWidth, GOpenGLFBOHeight);
|
||||
}
|
||||
|
||||
#ifdef __PERMIT_GL_LOGGING
|
||||
if (__glLog == true) {
|
||||
DGL_LogNewFrame();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
void rend_EndFrame(void) {}
|
||||
|
Loading…
Reference in New Issue
Block a user