[gtk+: 75/97] gl renderer: Ignore render ops before we have a valid program
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+: 75/97] gl renderer: Ignore render ops before we have a valid program
- Date: Thu, 21 Dec 2017 18:14:31 +0000 (UTC)
commit 703c4cf003d31ddf6a777761c24cf67c699b6951
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]