mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +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 *);
|
extern GLint (APIENTRY * bglGetAttribLocationARB)(GLhandleARB, const GLcharARB *);
|
||||||
|
|
||||||
// Debug Output
|
// Debug Output
|
||||||
|
#ifndef __APPLE__
|
||||||
extern void (APIENTRY * bglDebugMessageControlARB)(GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
|
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);
|
extern void (APIENTRY * bglDebugMessageCallbackARB)(GLDEBUGPROCARB callback, const GLvoid *userParam);
|
||||||
|
#endif
|
||||||
|
|
||||||
// GLU
|
// GLU
|
||||||
extern void (APIENTRY * bgluTessBeginContour) (GLUtesselator* tess);
|
extern void (APIENTRY * bgluTessBeginContour) (GLUtesselator* tess);
|
||||||
|
|
|
@ -251,8 +251,10 @@ void (APIENTRY *bglGetActiveAttribARB)(GLhandleARB, GLuint, GLsizei, GLsizei *,
|
||||||
GLint(APIENTRY *bglGetAttribLocationARB)(GLhandleARB, const GLcharARB *);
|
GLint(APIENTRY *bglGetAttribLocationARB)(GLhandleARB, const GLcharARB *);
|
||||||
|
|
||||||
// Debug Output
|
// Debug Output
|
||||||
|
#ifndef __APPLE__
|
||||||
void (APIENTRY * bglDebugMessageControlARB)(GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
|
void (APIENTRY * bglDebugMessageControlARB)(GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint *ids, GLboolean enabled);
|
||||||
void (APIENTRY * bglDebugMessageCallbackARB)(GLDEBUGPROCARB callback, const GLvoid *userParam);
|
void (APIENTRY * bglDebugMessageCallbackARB)(GLDEBUGPROCARB callback, const GLvoid *userParam);
|
||||||
|
#endif
|
||||||
|
|
||||||
// GLU
|
// GLU
|
||||||
void (APIENTRY *bgluTessBeginContour)(GLUtesselator *tess);
|
void (APIENTRY *bgluTessBeginContour)(GLUtesselator *tess);
|
||||||
|
@ -621,8 +623,10 @@ int32_t loadglextensions(void)
|
||||||
bglGetAttribLocationARB = GETPROCEXTSOFT("glGetAttribLocationARB");
|
bglGetAttribLocationARB = GETPROCEXTSOFT("glGetAttribLocationARB");
|
||||||
|
|
||||||
// Debug Output
|
// Debug Output
|
||||||
|
#ifndef __APPLE__
|
||||||
bglDebugMessageControlARB = GETPROCEXTSOFT("glDebugMessageControlARB");
|
bglDebugMessageControlARB = GETPROCEXTSOFT("glDebugMessageControlARB");
|
||||||
bglDebugMessageCallbackARB = GETPROCEXTSOFT("glDebugMessageCallbackARB");
|
bglDebugMessageCallbackARB = GETPROCEXTSOFT("glDebugMessageCallbackARB");
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef RENDERTYPEWIN
|
#ifdef RENDERTYPEWIN
|
||||||
bwglSwapIntervalEXT = GETPROCEXTSOFT("wglSwapIntervalEXT");
|
bwglSwapIntervalEXT = GETPROCEXTSOFT("wglSwapIntervalEXT");
|
||||||
|
|
|
@ -730,11 +730,13 @@ int32_t polymer_init(void)
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef __APPLE__
|
||||||
if (glinfo.debugoutput) {
|
if (glinfo.debugoutput) {
|
||||||
// Enable everything.
|
// Enable everything.
|
||||||
bglDebugMessageControlARB(GL_DONT_CARE, GL_DONT_CARE, GL_DONT_CARE, 0, NULL, GL_TRUE);
|
bglDebugMessageControlARB(GL_DONT_CARE, GL_DONT_CARE, GL_DONT_CARE, 0, NULL, GL_TRUE);
|
||||||
bglDebugMessageCallbackARB(polymer_debugoutputcallback, NULL);
|
bglDebugMessageCallbackARB(polymer_debugoutputcallback, NULL);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (pr_verbosity >= 1) OSD_Printf("PR : Initialization complete in %d ms.\n", getticks()-t);
|
if (pr_verbosity >= 1) OSD_Printf("PR : Initialization complete in %d ms.\n", getticks()-t);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue