1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +00:00

GLERR now uses hlog

This commit is contained in:
Zeno Rogue 2019-10-26 17:02:54 +02:00
parent d560dd1283
commit d24971fef0

View File

@ -20,7 +20,7 @@ namespace hr {
EX void glError(const char* GLcall, const char* file, const int line) { EX void glError(const char* GLcall, const char* file, const int line) {
GLenum errCode = glGetError(); GLenum errCode = glGetError();
if(errCode!=GL_NO_ERROR) { if(errCode!=GL_NO_ERROR) {
fprintf(stderr, "OPENGL ERROR #%i: in file %s on line %i :: %s\n",errCode,file, line, GLcall); println(hlog, format("OPENGL ERROR #%i: in file %s on line %i :: %s\n",errCode,file, line, GLcall));
} }
} }
@ -604,6 +604,7 @@ void init() {
projection = id; projection = id;
WITHSHADER(glEnableVertexAttribArray(aPosition);, glEnableClientState(GL_VERTEX_ARRAY);) WITHSHADER(glEnableVertexAttribArray(aPosition);, glEnableClientState(GL_VERTEX_ARRAY);)
GLERR("aPosition");
// #endif // #endif
#if CAP_VERTEXBUFFER #if CAP_VERTEXBUFFER