mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
fix osx build: looks like it doesn't have the GL debugging functions
git-svn-id: https://svn.eduke32.com/eduke32@2073 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
9d04c42219
commit
9196bdbd81
3 changed files with 8 additions and 0 deletions
|
@ -284,8 +284,10 @@ extern void (APIENTRY * bglGetActiveAttribARB)(GLhandleARB, GLuint, GLsizei, GLs
|
|||
extern GLint (APIENTRY * bglGetAttribLocationARB)(GLhandleARB, const GLcharARB *);
|
||||
|
||||
// Debug Output
|
||||
#ifndef __APPLE__
|
||||
extern void (APIENTRY * bglDebugMessageControlARB)(GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
|
||||
extern void (APIENTRY * bglDebugMessageCallbackARB)(GLDEBUGPROCARB callback, const GLvoid *userParam);
|
||||
#endif
|
||||
|
||||
// GLU
|
||||
extern void (APIENTRY * bgluTessBeginContour) (GLUtesselator* tess);
|
||||
|
|
|
@ -251,8 +251,10 @@ void (APIENTRY *bglGetActiveAttribARB)(GLhandleARB, GLuint, GLsizei, GLsizei *,
|
|||
GLint(APIENTRY *bglGetAttribLocationARB)(GLhandleARB, const GLcharARB *);
|
||||
|
||||
// Debug Output
|
||||
#ifndef __APPLE__
|
||||
void (APIENTRY * bglDebugMessageControlARB)(GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
|
||||
void (APIENTRY * bglDebugMessageCallbackARB)(GLDEBUGPROCARB callback, const GLvoid *userParam);
|
||||
#endif
|
||||
|
||||
// GLU
|
||||
void (APIENTRY *bgluTessBeginContour)(GLUtesselator *tess);
|
||||
|
@ -621,8 +623,10 @@ int32_t loadglextensions(void)
|
|||
bglGetAttribLocationARB = GETPROCEXTSOFT("glGetAttribLocationARB");
|
||||
|
||||
// Debug Output
|
||||
#ifndef __APPLE__
|
||||
bglDebugMessageControlARB = GETPROCEXTSOFT("glDebugMessageControlARB");
|
||||
bglDebugMessageCallbackARB = GETPROCEXTSOFT("glDebugMessageCallbackARB");
|
||||
#endif
|
||||
|
||||
#ifdef RENDERTYPEWIN
|
||||
bwglSwapIntervalEXT = GETPROCEXTSOFT("wglSwapIntervalEXT");
|
||||
|
|
|
@ -730,11 +730,13 @@ int32_t polymer_init(void)
|
|||
i++;
|
||||
}
|
||||
|
||||
#ifndef __APPLE__
|
||||
if (glinfo.debugoutput) {
|
||||
// Enable everything.
|
||||
bglDebugMessageControlARB(GL_DONT_CARE, GL_DONT_CARE, GL_DONT_CARE, 0, NULL, GL_TRUE);
|
||||
bglDebugMessageCallbackARB(polymer_debugoutputcallback, NULL);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (pr_verbosity >= 1) OSD_Printf("PR : Initialization complete in %d ms.\n", getticks()-t);
|
||||
|
||||
|
|
Loading…
Reference in a new issue