gl: Fix RGB uploads

I don't really know what to say, other than:
OpenGL is terrible

Fixes: #3194
This commit is contained in:
Matthias Clasen 2020-09-25 13:15:54 -04:00
parent c9f6a9f7c5
commit 12f05e80aa

View File

@ -291,6 +291,8 @@ gdk_gl_context_upload_texture (GdkGLContext *context,
*/
if (stride == width * bpp)
{
glPixelStorei (GL_UNPACK_ALIGNMENT, 1);
glTexImage2D (texture_target, 0, GL_RGBA, width, height, 0, gl_format, gl_type, data);
}
else if ((!priv->use_es ||