[gtk/wip/chergert/glproto: 375/526] make sure we have a non-zero render target
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto: 375/526] make sure we have a non-zero render target
- Date: Tue, 16 Feb 2021 01:14:35 +0000 (UTC)
commit 63a057f647a619761364fc544cef654751cfa5e2
Author: Christian Hergert <chergert redhat com>
Date: Fri Jan 29 14:51:50 2021 -0800
make sure we have a non-zero render target
gsk/next/gskglrenderjob.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gsk/next/gskglrenderjob.c b/gsk/next/gskglrenderjob.c
index bec0683214..6097edd28d 100644
--- a/gsk/next/gskglrenderjob.c
+++ b/gsk/next/gskglrenderjob.c
@@ -3642,8 +3642,8 @@ gsk_gl_render_job_render_flipped (GskGLRenderJob *job,
graphene_matrix_scale (&proj, 1, -1, 1);
if (!gsk_gl_command_queue_create_render_target (job->command_queue,
- job->viewport.size.width,
- job->viewport.size.height,
+ MAX (1, job->viewport.size.width),
+ MAX (1, job->viewport.size.height),
GL_NEAREST, GL_NEAREST,
&framebuffer_id, &texture_id))
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]