mirror of https://github.com/yshui/picom.git
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:
parent
2a23c24585
commit
e09679c7cf
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue