summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-07-03 17:01:20 -0400
committerKristian Høgsberg <krh@bitplanet.net>2012-07-03 17:01:20 -0400
commitda471dea70c8af6d6314a0681338a8859135abda (patch)
tree6d714dbee93c623c41fd2ef6d9a1a42b52911071 /src
parent1248158e7d9a14cbed14b47c83bf83d4ca61ec91 (diff)
use wl_buffer format codes
Diffstat (limited to 'src')
-rw-r--r--src/compositor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compositor.c b/src/compositor.c
index 677b5c89..ad3f518b 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -755,7 +755,7 @@ weston_surface_attach(struct wl_surface *surface, struct wl_buffer *buffer)
glTexImage2D(GL_TEXTURE_2D, 0, GL_BGRA_EXT,
es->pitch, es->buffer->height, 0,
GL_BGRA_EXT, GL_UNSIGNED_BYTE, NULL);
- if (wl_shm_buffer_get_format(buffer) == WL_SHM_FORMAT_XRGB8888)
+ if (buffer->format == WL_BUFFER_FORMAT_XRGB8888)
es->blend = 0;
else
es->blend = 1;