Enable tranparency in the context

This commit is contained in:
Riyyi
2021-01-12 02:17:59 +01:00
parent 2d54a8372f
commit 8dabc2d1a0
+4
View File
@@ -50,6 +50,10 @@ namespace Inferno {
// Enable z-buffer / depth buffer
glEnable(GL_DEPTH_TEST);
// Enable transparency
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glEnable(GL_BLEND);
}
void Context::update()