[gtk/wip/chergert/glproto] begin draw before changing uniforms
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto] begin draw before changing uniforms
- Date: Wed, 27 Jan 2021 01:49:10 +0000 (UTC)
commit 61727fd16c82fdab12d82e1431ea4fd8891530f0
Author: Christian Hergert <chergert redhat com>
Date: Tue Jan 26 17:47:16 2021 -0800
begin draw before changing uniforms
this doesn't really matter, but it keeps all the uniform stuff happening
after the begin draw call which can be easier to debug.
gsk/next/gskglprogram.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gsk/next/gskglprogram.c b/gsk/next/gskglprogram.c
index ff5e434d1a..454dc643fd 100644
--- a/gsk/next/gskglprogram.c
+++ b/gsk/next/gskglprogram.c
@@ -179,6 +179,8 @@ gsk_gl_program_begin_draw (GskGLProgram *self,
g_assert (modelview != NULL);
g_assert (clip != NULL);
+ gsk_gl_command_queue_begin_draw (self->driver->command_queue, self->id, viewport);
+
if (self->viewport_location > -1)
gsk_gl_command_queue_set_uniform4f (self->driver->command_queue,
self->id,
@@ -222,8 +224,6 @@ gsk_gl_program_begin_draw (GskGLProgram *self,
self->id,
self->alpha_location,
alpha);
-
- gsk_gl_command_queue_begin_draw (self->driver->command_queue, self->id, viewport);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]