projects
/
laserbrain_demo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0429831
)
handle failure to get an sRGB framebuffer correctly
author
John Tsiombikas
<nuclear@mutantstargoat.com>
Thu, 9 Nov 2017 20:26:55 +0000
(22:26 +0200)
committer
John Tsiombikas
<nuclear@mutantstargoat.com>
Thu, 9 Nov 2017 20:26:55 +0000
(22:26 +0200)
src/app.cc
patch
|
blob
|
history
diff --git
a/src/app.cc
b/src/app.cc
index
95f7a05
..
ac6edd9
100644
(file)
--- a/
src/app.cc
+++ b/
src/app.cc
@@
-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;
}
}