From ac1e4143756fb06e9e2c12280b28c979fde34c78 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Thu, 4 Nov 2021 17:44:13 +0000 Subject: Print both real and cpu time in debug logs. Also various minor cleanup. --- src/gl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gl.c') 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) -- cgit v1.2.3