summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2021-10-09 04:36:20 +0200
committerBenjamin Otte <otte@redhat.com>2021-10-09 04:44:30 +0200
commitcaddea4624431d72e06d523497af7cfcc09608b1 (patch)
tree19de4a41cc6d0b91578ebc41825c721b27142c4f /gdk
parent27b5dc14526f1dcb2d806aa2ae022fddbc43af55 (diff)
downloadgtk+-caddea4624431d72e06d523497af7cfcc09608b1.tar.gz
gl: Set stride properly in fallback
Diffstat (limited to 'gdk')
-rw-r--r--gdk/gdkglcontext.c1
1 files changed, 1 insertions, 0 deletions
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,