forked from AuroraMiddleware/gtk
gl: Fix RGB uploads
I don't really know what to say, other than: OpenGL is terrible Fixes: #3194
This commit is contained in:
parent
c9f6a9f7c5
commit
12f05e80aa
@ -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 ||
|
||||
|
Loading…
Reference in New Issue
Block a user