[PATCH weston 05/11] gl-renderer: Make texture_used a bool instead of an int
Derek Foreman
derekf at osg.samsung.com
Wed Nov 18 14:32:28 PST 2015
Signed-off-by: Derek Foreman <derekf at osg.samsung.com>
---
src/gl-renderer.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/gl-renderer.c b/src/gl-renderer.c
index 4c231d1..2c51a83 100644
--- a/src/gl-renderer.c
+++ b/src/gl-renderer.c
@@ -1173,7 +1173,7 @@ gl_renderer_flush_damage(struct weston_surface *surface)
struct gl_surface_state *gs = get_surface_state(surface);
struct weston_buffer *buffer = gs->buffer_ref.buffer;
struct weston_view *view;
- int texture_used;
+ bool texture_used;
#ifdef GL_EXT_unpack_subimage
pixman_box32_t *rectangles;
@@ -1192,10 +1192,10 @@ gl_renderer_flush_damage(struct weston_surface *surface)
* hold the reference to the buffer, in case the surface
* migrates back to the primary plane.
*/
- texture_used = 0;
+ texture_used = false;
wl_list_for_each(view, &surface->views, surface_link) {
if (view->plane == &surface->compositor->primary_plane) {
- texture_used = 1;
+ texture_used = true;
break;
}
}
--
2.6.2
More information about the wayland-devel
mailing list