We are currently experiencing downtime impacting viewing & cloning the Mesa repo, and some GitLab pages returning 503. Please see #freedesktop on IRC for more updates.

Commit 4c11fe77 authored by Derek Foreman's avatar Derek Foreman Committed by Pekka Paalanen

gl-renderer: Use a bool for needs_full_upload

Signed-off-by: default avatarDerek Foreman <derekf@osg.samsung.com>
Reviewed-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
parent 060cf11f
......@@ -111,7 +111,7 @@ struct gl_surface_state {
GLuint textures[3];
int num_textures;
int needs_full_upload;
bool needs_full_upload;
pixman_region32_t texture_damage;
/* These are only used by SHM surfaces to detect when we need
......@@ -1253,7 +1253,7 @@ gl_renderer_flush_damage(struct weston_surface *surface)
done:
pixman_region32_fini(&gs->texture_damage);
pixman_region32_init(&gs->texture_damage);
gs->needs_full_upload = 0;
gs->needs_full_upload = false;
weston_buffer_reference(&gs->buffer_ref, NULL);
}
......@@ -1331,7 +1331,7 @@ gl_renderer_attach_shm(struct weston_surface *es, struct weston_buffer *buffer,
gs->gl_format = gl_format;
gs->gl_pixel_type = gl_pixel_type;
gs->buffer_type = BUFFER_TYPE_SHM;
gs->needs_full_upload = 1;
gs->needs_full_upload = true;
gs->y_inverted = 1;
gs->surface = es;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment