[gtk/wip/otte/gles] gl: Set stride properly in fallback
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/gles] gl: Set stride properly in fallback
- Date: Sat, 9 Oct 2021 02:36:50 +0000 (UTC)
commit cc13f4eb33d66a0204a7439d224abb6b5905a562
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]