[gtk+/wip/baedert/gl: 84/95] 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+/wip/baedert/gl: 84/95] gl renderer: Ignore render ops before we have a valid program
- Date: Sun, 10 Dec 2017 21:30:02 +0000 (UTC)
commit a3f15a7311881dfbf00fb919e6139883d12e3a8b
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]