diff options
author | Phil Jones <philj56@gmail.com> | 2021-11-04 17:44:13 +0000 |
---|---|---|
committer | Phil Jones <philj56@gmail.com> | 2021-11-04 17:44:13 +0000 |
commit | ac1e4143756fb06e9e2c12280b28c979fde34c78 (patch) | |
tree | d7b8044f79b41091fbf0a375074c1b0c6d74661c /src/gl.c | |
parent | 2eb3e98cc31bb8358e89784f967900827a5face3 (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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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) |