From: Matthias Clasen Date: Wed, 31 May 2023 02:36:41 +0000 (-0400) Subject: testsuite: Use proper alignment when uploading to GL X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~199^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8d2047c824dce43b3f658cd01bf835c4b34a4b32;p=gtk4.git testsuite: Use proper alignment when uploading to GL --- diff --git a/testsuite/gdk/memorytexture.c b/testsuite/gdk/memorytexture.c index c98668d3c1..a675fff59d 100644 --- a/testsuite/gdk/memorytexture.c +++ b/testsuite/gdk/memorytexture.c @@ -890,6 +890,7 @@ upload_to_gl_native (GdkTexture *texture) glGenTextures (1, &id); glActiveTexture (GL_TEXTURE0); glBindTexture (GL_TEXTURE_2D, id); + glPixelStorei (GL_UNPACK_ALIGNMENT, 1); glTexImage2D (GL_TEXTURE_2D, 0, formats[i].gl_internalformat, width, height, 0, formats[i].gl_format, formats[i].gl_type, data); glTexParameteriv (GL_TEXTURE_2D, GL_TEXTURE_SWIZZLE_RGBA, formats[i].swizzle);