[gtk/wip/chergert/glproto: 821/920] fix missing texture source for blit
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto: 821/920] fix missing texture source for blit
- Date: Mon, 8 Feb 2021 19:15:44 +0000 (UTC)
commit 16fb99fd6e0120fe5534c60b2bd1db7188caad16
Author: Christian Hergert <chergert redhat com>
Date: Fri Jan 29 14:01:45 2021 -0800
fix missing texture source for blit
when rendering fallback nodes, we actually forgot to set the texture id
gsk/next/gskglrenderjob.c | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/gsk/next/gskglrenderjob.c b/gsk/next/gskglrenderjob.c
index 9aa46739c2..69fb8d7582 100644
--- a/gsk/next/gskglrenderjob.c
+++ b/gsk/next/gskglrenderjob.c
@@ -986,6 +986,11 @@ gsk_gl_render_job_visit_as_fallback (GskGLRenderJob *job,
gsk_gl_render_job_get_modelview_matrix (job),
gsk_gl_render_job_get_clip (job),
job->alpha);
+ gsk_gl_program_set_uniform_texture (job->driver->blit,
+ UNIFORM_SHARED_SOURCE,
+ GL_TEXTURE_2D,
+ GL_TEXTURE0,
+ texture_id);
gsk_gl_render_job_draw_offscreen_rect (job, &node->bounds);
gsk_gl_program_end_draw (job->driver->blit);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]