render/texture: add width and height fields

Instead of requiring compositors to call wlr_texture_get_size each time
they want to access the texture's size, expose this information as
wlr_texture fields.
This commit is contained in:
Simon Ser 2020-04-27 12:45:21 +02:00 committed by Drew DeVault
parent 21397e2b4a
commit 06f4c3945d
5 changed files with 32 additions and 31 deletions

View file

@ -82,7 +82,6 @@ struct wlr_gles2_texture {
EGLImageKHR image;
int width, height;
bool inverted_y;
bool has_alpha;