fixed glDisable -> glDepthMask

This commit is contained in:
Zeno Rogue committed 2019-09-12 22:50:00 +02:00
1 parent d2c20fee22
commit 6e2cf3d2e7
1 file changed
+1 -1
+1 -1
View File
@@ -789,7 +789,7 @@ void set_depthwrite(bool b) {
if(b != current_depthwrite) {
current_depthwrite = b;
if(b) glDepthMask(GL_TRUE);
else glDisable(GL_FALSE);
else glDepthMask(GL_FALSE);
}
}