From 3a04ee4a164820261bb68f1636a9b55b7fe8ad79 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 2 Mar 2015 17:09:40 +1000 Subject: [PATCH] renderer: drop pointless emit depth range --- src/vrend_renderer.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index 9e6f6a6..bc0b16f 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -1327,11 +1327,6 @@ void vrend_set_framebuffer_state(struct vrend_context *ctx, } } -static void vrend_hw_emit_depth_range(struct vrend_context *ctx) -{ - glDepthRange(ctx->sub->view_near_val, ctx->sub->view_far_val); -} - /* * if the viewport Y scale factor is > 0 then we are rendering to * an FBO already so don't need to invert rendering? @@ -1375,7 +1370,7 @@ void vrend_set_viewport_state(struct vrend_context *ctx, ctx->sub->view_far_val != far_val) { ctx->sub->view_near_val = near_val; ctx->sub->view_far_val = far_val; - vrend_hw_emit_depth_range(ctx); + glDepthRange(ctx->sub->view_near_val, ctx->sub->view_far_val); } }