vrend: Use glDepthRangefOES when on GLES

This fixes running Metro Redux 2033 on the GLES host.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
macos/master
Gert Wollny 6 years ago committed by Dave Airlie
parent 095bd118f9
commit b9a9c59ef7
  1. 5
      src/vrend_renderer.c

@ -2310,7 +2310,10 @@ void vrend_set_viewport_states(struct vrend_context *ctx,
} else
glDepthRangeIndexed(idx, ctx->sub->vps[idx].near_val, ctx->sub->vps[idx].far_val);
else
glDepthRange(ctx->sub->vps[idx].near_val, ctx->sub->vps[idx].far_val);
if (vrend_state.use_gles)
glDepthRangefOES(ctx->sub->vps[idx].near_val, ctx->sub->vps[idx].far_val);
else
glDepthRange(ctx->sub->vps[idx].near_val, ctx->sub->vps[idx].far_val);
}
}
}

Loading…
Cancel
Save