Fixing blend functions for Framebuffer-based rendering

This commit is contained in:
Alexander Bock
2015-04-28 22:10:56 +02:00
parent 11b0e98ec6
commit df5daa3021
2 changed files with 9 additions and 5 deletions
+5 -5
View File
@@ -459,11 +459,11 @@ namespace openspace {
glDisable(GL_BLEND);
#else
glEnable(GL_DEPTH_TEST);
glDisable(GL_DEPTH_TEST);
glDisable(GL_CULL_FACE);
glDisable(GL_BLEND);
// glEnable(GL_BLEND);
// glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
// glDisable(GL_CULL_FACE);
glEnable(GL_CULL_FACE);
// glDisable(GL_BLEND);
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
#endif
// setup the camera for the current frame