GLERR now uses hlog

This commit is contained in:
Zeno Rogue 2019-10-26 17:02:54 +02:00
parent d560dd1283
commit d24971fef0
1 changed files with 2 additions and 1 deletions

View File

@ -20,7 +20,7 @@ namespace hr {
EX void glError(const char* GLcall, const char* file, const int line) {
GLenum errCode = glGetError();
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;
WITHSHADER(glEnableVertexAttribArray(aPosition);, glEnableClientState(GL_VERTEX_ARRAY);)
GLERR("aPosition");
// #endif
#if CAP_VERTEXBUFFER