projects
/
laserbrain_demo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
handle failure to get an sRGB framebuffer correctly
[laserbrain_demo]
/
src
/
app.cc
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);
printf("Framebuffer %s sRGB-capable\n", srgb_capable ? "is" : "is not");
if(srgb_capable) {
glEnable(GL_FRAMEBUFFER_SRGB);
+ } else {
+ fb_srgb = 0;
}
}
}
}