handle failure to get an sRGB framebuffer correctly
authorJohn Tsiombikas <nuclear@mutantstargoat.com>
Thu, 9 Nov 2017 20:26:55 +0000 (22:26 +0200)
committerJohn Tsiombikas <nuclear@mutantstargoat.com>
Thu, 9 Nov 2017 20:26:55 +0000 (22:26 +0200)
src/app.cc

index 95f7a05..ac6edd9 100644 (file)
@@ -101,6 +101,8 @@ bool app_init(int argc, char **argv)
                printf("Framebuffer %s sRGB-capable\n", srgb_capable ? "is" : "is not");
                if(srgb_capable) {
                        glEnable(GL_FRAMEBUFFER_SRGB);
+               } else {
+                       fb_srgb = 0;
                }
        }