1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-24 22:23:18 +00:00

rug:: fixed depthwrite

This commit is contained in:
Zeno Rogue 2019-06-06 19:53:37 +02:00
parent 06301d73fc
commit 688ad336ae

View File

@ -1341,6 +1341,7 @@ void drawRugScene() {
glDisable(GL_BLEND);
glhr::switch_mode(glhr::gmLightFog, glhr::shader_projection::standard);
glhr::set_depthtest(true);
glhr::set_depthwrite(true);
glDepthFunc(invert_depth ? GL_GREATER : GL_LESS);
for(int ed=current_display->stereo_active() && vid.stereo_mode != sODS ? -1 : 0; ed < 2; ed += 2) {