mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-02 09:01:39 -05:00
Both internalFormat and format should be GL_BGRA_EXT
This commit is contained in:
parent
a941022372
commit
1101b63d49
1 changed files with 1 additions and 2 deletions
|
|
@ -63,8 +63,7 @@ shm_buffer_attach(struct wl_buffer *buffer_base, struct wl_surface *surface)
|
|||
* overwrite it.*/
|
||||
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA,
|
||||
0, 0, 0, GL_BGRA_EXT, GL_UNSIGNED_BYTE, NULL);
|
||||
|
||||
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA,
|
||||
glTexImage2D(GL_TEXTURE_2D, 0, GL_BGRA_EXT,
|
||||
buffer->buffer.width, buffer->buffer.height, 0,
|
||||
GL_BGRA_EXT, GL_UNSIGNED_BYTE, buffer->data);
|
||||
es->visual = buffer->buffer.visual;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue