#include <GL/glx.h>Go to the source code of this file.
Defines | |
| #define | GLGETPROC(a) glXGetProcAddress((const unsigned char *)(a)) |
| #define | GLCHECKERROR |
| #define GLCHECKERROR |
Value:
GLenum errCode = glGetError(); \
if (errCode != GL_NO_ERROR) \
{ \
static unsigned glErrCounter = 0; \
static GLenum lastGlErrCode; \
if (errCode == lastGlErrCode) \
{ \
if (glErrCounter++ == 5) \
LOG(wxT("Stopping redundant OpenGL error logging")); \
} \
else \
{ \
lastGlErrCode = errCode; \
glErrCounter = 0; \
} \
if (glErrCounter < 5) \
{ \
wxString wxglErrStr((const char *)gluErrorString(errCode), wxConvUTF8); \
LOGWARNING(wxT("OpenGL error: ") + wxglErrStr); \
} \
}
Definition at line 24 of file glgetproc.h.
| #define GLGETPROC | ( | a | ) | glXGetProcAddress((const unsigned char *)(a)) |
Definition at line 20 of file glgetproc.h.
1.5.5