diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2018-05-02 13:30:04 +0100 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2018-05-02 13:31:35 +0100 |
commit | 024a3b2dc8c600013b9b76c7f919594d533ba774 (patch) | |
tree | ff59bcbf12a1d6597c05d105e6a7135d6380df8e | |
parent | 1c1da6cb1854c9c1cb74206d179d9503496bbe02 (diff) | |
download | faqe-024a3b2dc8c600013b9b76c7f919594d533ba774.tar.gz faqe-024a3b2dc8c600013b9b76c7f919594d533ba774.tar.xz faqe-024a3b2dc8c600013b9b76c7f919594d533ba774.zip |
Enable SRGB framebuffer and backface culling.
-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); |