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