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. 3
      src/vrend_renderer.c

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

Loading…
Cancel
Save