From d24971fef01367bd6e272c12b543f7a19b253b1c Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 26 Oct 2019 17:02:54 +0200 Subject: [PATCH] GLERR now uses hlog --- glhr.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/glhr.cpp b/glhr.cpp index fbcdfb8a..19a38fe3 100644 --- a/glhr.cpp +++ b/glhr.cpp @@ -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