[gtk/wip/otte/gles: 4/5] gl: Set stride properly in fallback




commit caddea4624431d72e06d523497af7cfcc09608b1
Author: Benjamin Otte <otte redhat com>
Date:   Sat Oct 9 04:36:20 2021 +0200

    gl: Set stride properly in fallback

 gdk/gdkglcontext.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gdk/gdkglcontext.c b/gdk/gdkglcontext.c
index ecd9ed7615..b1984d57b8 100644
--- a/gdk/gdkglcontext.c
+++ b/gdk/gdkglcontext.c
@@ -281,6 +281,7 @@ gdk_gl_context_upload_texture (GdkGLContext    *context,
                           width, height);
       data = copy;
       data_format = GDK_MEMORY_R8G8B8A8_PREMULTIPLIED;
+      stride = width * 4;
       if (!gdk_memory_format_gl_format (data_format,
                                         gdk_gl_context_get_use_es (context),
                                         &gl_internalformat,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]