renderer: drop pointless temp-variable

Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Signed-off-by: Jakob Bornecrantz <jakob@collabora.com>
macos/master
Erik Faye-Lund 6 years ago committed by Jakob Bornecrantz
parent a1ad3cef8e
commit 0aa272c21c
  1. 7
      src/vrend_renderer.c

@ -4135,7 +4135,7 @@ void vrend_launch_grid(struct vrend_context *ctx,
if (ctx->sub->cs_shader_dirty) {
struct vrend_linked_shader_program *prog;
bool same_prog, cs_dirty;
bool cs_dirty;
if (!ctx->sub->shaders[PIPE_SHADER_COMPUTE]) {
fprintf(stderr,"dropping rendering due to missing shaders: %s\n", ctx->debug_name);
return;
@ -4146,10 +4146,7 @@ void vrend_launch_grid(struct vrend_context *ctx,
fprintf(stderr, "failure to compile shader variants: %s\n", ctx->debug_name);
return;
}
same_prog = true;
if (ctx->sub->shaders[PIPE_SHADER_COMPUTE]->current->id != (GLuint)ctx->sub->prog_ids[PIPE_SHADER_COMPUTE])
same_prog = false;
if (!same_prog) {
if (ctx->sub->shaders[PIPE_SHADER_COMPUTE]->current->id != (GLuint)ctx->sub->prog_ids[PIPE_SHADER_COMPUTE]) {
prog = lookup_cs_shader_program(ctx, ctx->sub->shaders[PIPE_SHADER_COMPUTE]->current->id);
if (!prog) {
prog = add_cs_shader_program(ctx, ctx->sub->shaders[PIPE_SHADER_COMPUTE]->current);

Loading…
Cancel
Save