diff options
-rw-r--r-- | faqe.c | 2 | ||||
-rw-r--r-- | gl.h | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -89,6 +89,8 @@ int main(int argc, char **argv) viewport(uni.proj, WIDTH, HEIGHT); gl_enable(GL_DEPTH_TEST); + gl_enable(GL_FRAMEBUFFER_SRGB); + gl_enable(GL_CULL_FACE); while (running) { mat4x4 model; @@ -50,6 +50,7 @@ enum { GL_OUT_OF_MEMORY, GL_INVALID_FRAMEBUFFER_OPERATION, GL_CONTEXT_LOST, + GL_CULL_FACE = 0x0b44, GL_DEPTH_TEST = 0x0b71, GL_UNSIGNED_INT = 0x1405, GL_FLOAT = 0x1406, @@ -63,6 +64,7 @@ enum { GL_VERTEX_SHADER = 0x8b31, GL_COMPILE_STATUS = 0x8b81, GL_LINK_STATUS = 0x8b82, + GL_FRAMEBUFFER_SRGB = 0x8db9, }; typedef void *gl_loadfunc(const char *name); |