[virglrenderer-devel] [PATCH] vrend: fix geometry shader dirty check.

Dave Airlie airlied at gmail.com
Tue Feb 13 05:43:21 UTC 2018


From: Dave Airlie <airlied at redhat.com>

This was cut-n-pasted incorrectly.

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 src/vrend_renderer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c
index 36ded80..565e017 100644
--- a/src/vrend_renderer.c
+++ b/src/vrend_renderer.c
@@ -2885,7 +2885,7 @@ void vrend_draw_vbo(struct vrend_context *ctx,
          same_prog = false;
       if (ctx->sub->shaders[PIPE_SHADER_FRAGMENT]->current->id != ctx->sub->prog_ids[PIPE_SHADER_FRAGMENT])
          same_prog = false;
-      if (ctx->sub->shaders[PIPE_SHADER_GEOMETRY] && ctx->sub->shaders[PIPE_SHADER_FRAGMENT]->current->id != ctx->sub->prog_ids[PIPE_SHADER_FRAGMENT])
+      if (ctx->sub->shaders[PIPE_SHADER_GEOMETRY] && ctx->sub->shaders[PIPE_SHADER_GEOMETRY]->current->id != ctx->sub->prog_ids[PIPE_SHADER_GEOMETRY])
          same_prog = false;
 
       if (!same_prog) {
-- 
2.9.5



More information about the virglrenderer-devel mailing list