aboutsummaryrefslogtreecommitdiffstats
path: root/compositor
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-01-22 17:49:48 +0100
committerKristian Høgsberg <krh@bitplanet.net>2011-01-23 13:55:45 -0500
commit2a332dd62ec67b5feb6a282118b132c39c36d39f (patch)
treecdfc308f5468f86cedf5cb72874d75e5ee1ff2c1 /compositor
parentEnable all compositors by default (diff)
downloadwayland-2a332dd62ec67b5feb6a282118b132c39c36d39f.tar
wayland-2a332dd62ec67b5feb6a282118b132c39c36d39f.tar.gz
wayland-2a332dd62ec67b5feb6a282118b132c39c36d39f.tar.bz2
wayland-2a332dd62ec67b5feb6a282118b132c39c36d39f.tar.lz
wayland-2a332dd62ec67b5feb6a282118b132c39c36d39f.tar.xz
wayland-2a332dd62ec67b5feb6a282118b132c39c36d39f.tar.zst
wayland-2a332dd62ec67b5feb6a282118b132c39c36d39f.zip
compositor/shm: use internalFormat=GL_BGRA_EXT in TexImage2D
Diffstat (limited to 'compositor')
-rw-r--r--compositor/shm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/compositor/shm.c b/compositor/shm.c
index 6b96a5b..913833e 100644
--- a/compositor/shm.c
+++ b/compositor/shm.c
@@ -61,7 +61,7 @@ shm_buffer_attach(struct wl_buffer *buffer_base, struct wl_surface *surface)
/* Unbind any EGLImage texture that may be bound, so we don't
* overwrite it.*/
- glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA,
+ glTexImage2D(GL_TEXTURE_2D, 0, GL_BGRA_EXT,
0, 0, 0, GL_BGRA_EXT, GL_UNSIGNED_BYTE, NULL);
glTexImage2D(GL_TEXTURE_2D, 0, GL_BGRA_EXT,
buffer->buffer.width, buffer->buffer.height, 0,
@@ -79,7 +79,7 @@ shm_buffer_damage(struct wl_buffer *buffer_base,
(struct wlsc_shm_buffer *) buffer_base;
glBindTexture(GL_TEXTURE_2D, es->texture);
- 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);