backend: glx: Fix texture access in max-brightness calculation

Correctly unpack the inner `gl_texture` from the backend image.

related: 2a60836a9b
This commit is contained in:
Bernd Busse 2021-06-22 21:57:53 +02:00
parent 2a23c24585
commit e09679c7cf
No known key found for this signature in database
GPG Key ID: 6DD2A3C48E63A5AB
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@ _gl_average_texture_color(backend_t *base, GLuint source_texture, GLuint destina
*/
static GLuint gl_average_texture_color(backend_t *base, struct backend_image *img) {
auto gd = (struct gl_data *)base;
auto inner = (struct gl_texture *)img;
auto inner = (struct gl_texture *)img->inner;
// Prepare textures which will be used for destination and source of rendering
// during downscaling.