rpi: Don't assign planes for surfaces with transformed buffers

Reported-by: Pekka Paalanen <ppaalanen@gmail.com>
This commit is contained in:
Ander Conselvan de Oliveira
2012-11-27 17:34:52 +02:00
committed by Kristian Høgsberg
parent 409eebf34f
commit 3050d8fa94
+6
View File
@@ -752,6 +752,12 @@ rpi_assign_plane(struct weston_surface *surface, struct rpi_output *output)
return NULL;
}
if (surface->buffer_transform != WL_OUTPUT_TRANSFORM_NORMAL) {
DBG("surface %p rejected: unsupported buffer transform\n",
surface);
return NULL;
}
/* check if this surface previously belonged to an element */
element = find_rpi_element_from_surface(surface);