diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-04-12 22:35:18 +0000 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-04-12 22:35:18 +0000 |
commit | 02f7b01c888f2ad9ee106acaee30e226bff04532 (patch) | |
tree | 5e2570dccb5514fdc3567a11f45af0dc5806a5b7 /src/window_texture.c | |
parent | e6e1d14c01150872fea9198328d862127b4896b6 (diff) | |
download | vr-video-player-02f7b01c888f2ad9ee106acaee30e226bff04532.tar.gz vr-video-player-02f7b01c888f2ad9ee106acaee30e226bff04532.tar.bz2 vr-video-player-02f7b01c888f2ad9ee106acaee30e226bff04532.zip |
Fix flickering issue caused by visibility change spam
Diffstat (limited to 'src/window_texture.c')
-rw-r--r-- | src/window_texture.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/window_texture.c b/src/window_texture.c index e162a25..0479254 100644 --- a/src/window_texture.c +++ b/src/window_texture.c @@ -167,9 +167,9 @@ int window_texture_on_resize(WindowTexture *self) { cleanup: if(texture_id != 0) glDeleteTextures(1, &texture_id); - if(glx_pixmap) glXDestroyPixmap(self->display, self->glx_pixmap); - if(glx_pixmap_bound) glXReleaseTexImageEXT(self->display, self->glx_pixmap, GLX_FRONT_EXT); - if(pixmap) XFreePixmap(self->display, self->pixmap); + if(glx_pixmap) glXDestroyPixmap(self->display, glx_pixmap); + if(glx_pixmap_bound) glXReleaseTexImageEXT(self->display, glx_pixmap, GLX_FRONT_EXT); + if(pixmap) XFreePixmap(self->display, pixmap); if(configs) XFree(configs); return result; } |