mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 01:00:25 +00:00
GLERR now uses hlog
This commit is contained in:
parent
d560dd1283
commit
d24971fef0
3
glhr.cpp
3
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
|
||||
|
Loading…
Reference in New Issue
Block a user