E Comp (wayland): Make E's composite module compile again against
recent wayland changes. SVN revision: 70017
This commit is contained in:
parent
be22edaa3f
commit
1cf089ed8d
|
@ -43,26 +43,7 @@ e_mod_comp_wl_buffer_attach(struct wl_buffer *buffer, struct wl_surface *surface
|
|||
/* glBindTexture(GL_TEXTURE_2D, ws->texture); */
|
||||
|
||||
if (wl_buffer_is_shm(buffer))
|
||||
{
|
||||
struct wl_list *attached;
|
||||
|
||||
ws->pitch = wl_shm_buffer_get_stride(buffer) / 4;
|
||||
glTexImage2D(GL_TEXTURE_2D, 0, GL_BGRA_EXT, ws->pitch, buffer->height,
|
||||
0, GL_BGRA_EXT, GL_UNSIGNED_BYTE,
|
||||
wl_shm_buffer_get_data(buffer));
|
||||
switch (wl_shm_buffer_get_format(buffer))
|
||||
{
|
||||
case WL_SHM_FORMAT_ARGB8888:
|
||||
ws->visual = WAYLAND_ARGB_VISUAL;
|
||||
break;
|
||||
case WL_SHM_FORMAT_XRGB8888:
|
||||
ws->visual = WAYLAND_RGB_VISUAL;
|
||||
break;
|
||||
}
|
||||
attached = buffer->user_data;
|
||||
wl_list_remove(&ws->buffer_link);
|
||||
wl_list_insert(attached, &ws->buffer_link);
|
||||
}
|
||||
ws->pitch = wl_shm_buffer_get_stride(buffer) / 4;
|
||||
else
|
||||
{
|
||||
Wayland_Compositor *comp;
|
||||
|
|
Loading…
Reference in New Issue