summaryrefslogtreecommitdiff
path: root/src/gl.c
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2021-11-04 17:44:13 +0000
committerPhil Jones <philj56@gmail.com>2021-11-04 17:44:13 +0000
commitac1e4143756fb06e9e2c12280b28c979fde34c78 (patch)
treed7b8044f79b41091fbf0a375074c1b0c6d74661c /src/gl.c
parent2eb3e98cc31bb8358e89784f967900827a5face3 (diff)
Print both real and cpu time in debug logs.
Also various minor cleanup.
Diffstat (limited to 'src/gl.c')
-rw-r--r--src/gl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gl.c b/src/gl.c
index 8937d41..d387364 100644
--- a/src/gl.c
+++ b/src/gl.c
@@ -168,12 +168,11 @@ void gl_draw_texture(
texture->swizzle ? GL_BGRA : GL_RGBA,
GL_UNSIGNED_BYTE,
(GLvoid *)texture->buffer);
- glGetError();
texture->redraw = false;
}
glViewport(x, y, width, height);
- glDrawElements(GL_TRIANGLES, 6, GL_UNSIGNED_BYTE, 0);
+ glDrawElements(GL_TRIANGLES, 6, GL_UNSIGNED_BYTE, NULL);
}
void load_shader(GLuint shader, const char *filename)