[gtk+/wip/baedert/gl: 89/111] gl renderer: Ignore render ops before we have a valid program



commit 158b9cc46d53c1b6f13f5931115c7ea0a52a6cb7
Author: Timm Bäder <mail baedert org>
Date:   Fri Dec 8 20:43:47 2017 +0100

    gl renderer: Ignore render ops before we have a valid program

 gsk/gl/gskglrenderer.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index 5da50f6..40020de 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -1629,6 +1629,10 @@ gsk_gl_renderer_render_ops (GskGLRenderer *self,
           op->op == OP_CHANGE_VAO)
         continue;
 
+      if (op->op != OP_CHANGE_PROGRAM &&
+          program == NULL)
+        continue;
+
       OP_PRINT ("Op %u: %u", i, op->op);
 
       switch (op->op)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]