1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-18 06:50:27 +00:00

added set_depthwrite when clearing depth in spherical

This commit is contained in:
Zeno Rogue 2019-05-15 14:21:36 +02:00
parent 5330491876
commit 0c82bb64f0

View File

@ -1511,6 +1511,7 @@ void draw_main() {
if(sphere && DIM == 3 && pmodel == mdPerspective) {
for(int p: {1, 0, 2, 3}) {
if(elliptic && p < 2) continue;
glhr::set_depthwrite(true);
if(p == 0 || p == 3) {
#ifdef GL_ES
glClearDepthf(1.0f);