gl-renderer: Use a bool for needs_full_upload
Signed-off-by: Derek Foreman <derekf@osg.samsung.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
committed by
Pekka Paalanen
parent
060cf11f23
commit
4c11fe777a
+3
-3
@@ -111,7 +111,7 @@ struct gl_surface_state {
|
|||||||
|
|
||||||
GLuint textures[3];
|
GLuint textures[3];
|
||||||
int num_textures;
|
int num_textures;
|
||||||
int needs_full_upload;
|
bool needs_full_upload;
|
||||||
pixman_region32_t texture_damage;
|
pixman_region32_t texture_damage;
|
||||||
|
|
||||||
/* These are only used by SHM surfaces to detect when we need
|
/* 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:
|
done:
|
||||||
pixman_region32_fini(&gs->texture_damage);
|
pixman_region32_fini(&gs->texture_damage);
|
||||||
pixman_region32_init(&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);
|
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_format = gl_format;
|
||||||
gs->gl_pixel_type = gl_pixel_type;
|
gs->gl_pixel_type = gl_pixel_type;
|
||||||
gs->buffer_type = BUFFER_TYPE_SHM;
|
gs->buffer_type = BUFFER_TYPE_SHM;
|
||||||
gs->needs_full_upload = 1;
|
gs->needs_full_upload = true;
|
||||||
gs->y_inverted = 1;
|
gs->y_inverted = 1;
|
||||||
|
|
||||||
gs->surface = es;
|
gs->surface = es;
|
||||||
|
|||||||
Reference in New Issue
Block a user