forked from AuroraMiddleware/gtk
gl: Set stride properly in fallback
This commit is contained in:
parent
27b5dc1452
commit
caddea4624
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user