1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-06-06 04:42:10 +00:00

fixed glDepthMask and thus shadows

This commit is contained in:
Zeno Rogue
2019-05-15 10:49:54 +02:00
parent 32c43f7dd9
commit 6aeba2d906
2 changed files with 5 additions and 2 deletions
+2 -2
View File
@@ -788,11 +788,11 @@ void set_depthtest(bool b) {
void set_depthwrite(bool b) {
/*if(b != current_depthwrite) { <- this does not work ask intended for some reason...
if(b != current_depthwrite) { // <- this does not work ask intended for some reason...
current_depthwrite = b;
if(b) glDepthMask(GL_TRUE);
else glDepthMask(GL_FALSE);
} */
}
}
}