[gtk+/wip/baedert/gl: 65/66] gl renderer: Fix debugging output
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/gl: 65/66] gl renderer: Fix debugging output
- Date: Sat, 2 Dec 2017 08:50:04 +0000 (UTC)
commit 5e68b9a63a3fa8df9a8121c26e0d82bcdf2ade3e
Author: Timm Bäder <mail baedert org>
Date: Fri Dec 1 12:29:27 2017 +0100
gl renderer: Fix debugging output
gsk/gl/gskglrenderer.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index c689572..9cd7346 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -1529,7 +1529,7 @@ gsk_gl_renderer_render_ops (GskGLRenderer *self,
case OP_CHANGE_PROGRAM:
program = op->program;
glUseProgram (op->program->id);
- OP_PRINT (" -> Program: %d(%s)", op->program->index, op->program->name);
+ OP_PRINT (" -> Program: %d", op->program->index);
break;
case OP_CHANGE_RENDER_TARGET:
@@ -1627,12 +1627,14 @@ gsk_gl_renderer_render_ops (GskGLRenderer *self,
break;
case OP_CHANGE_BLUR:
+ OP_PRINT (" -> Blur");
g_assert (program == &self->blur_program);
glUniform1f (program->blur.blur_radius_location, op->blur.radius);
glUniform2f (program->blur.blur_size_location, op->blur.size.width, op->blur.size.height);
break;
case OP_CHANGE_INSET_SHADOW:
+ OP_PRINT (" -> inset shadow");
g_assert (program == &self->inset_shadow_program);
glUniform4fv (program->inset_shadow.color_location, 1, op->inset_shadow.color);
glUniform2fv (program->inset_shadow.offset_location, 1, op->inset_shadow.offset);
@@ -1643,6 +1645,7 @@ gsk_gl_renderer_render_ops (GskGLRenderer *self,
break;
case OP_CHANGE_OUTSET_SHADOW:
+ OP_PRINT (" -> outset shadow");
g_assert (program == &self->outset_shadow_program);
glUniform4fv (program->outset_shadow.color_location, 1, op->outset_shadow.color);
glUniform2fv (program->outset_shadow.offset_location, 1, op->outset_shadow.offset);
@@ -1653,13 +1656,14 @@ gsk_gl_renderer_render_ops (GskGLRenderer *self,
break;
case OP_CHANGE_BORDER:
+ OP_PRINT (" -> Border");
g_assert (program == &self->border_program);
glUniform4fv (program->border.widths_location, 1, op->border.widths);
break;
case OP_DRAW:
- OP_PRINT (" -> draw %ld, size %ld and program %s\n",
- op->draw.vao_offset, op->draw.vao_size, program->name);
+ OP_PRINT (" -> draw %ld, size %ld and program %d\n",
+ op->draw.vao_offset, op->draw.vao_size, program->index);
glDrawArrays (GL_TRIANGLES, op->draw.vao_offset, op->draw.vao_size);
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]