[Xfce4-commits] [xfce/xfwm4] 02/07: compositor: Draw to back buffer
noreply at xfce.org
noreply at xfce.org
Wed May 8 09:31:21 CEST 2019
This is an automated email from the git hooks/post-receive script.
o l i v i e r p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/xfwm4.
commit 97c051b865623cf7133d74d0281ed6ad1cf4c3d6
Author: Olivier Fourdan <fourdan at xfce.org>
Date: Tue May 7 20:25:01 2019 +0200
compositor: Draw to back buffer
Draw the texture to the back buffer instead of the front buffer and
`glXSwapBuffers()` will take care of swapping the back to front.
Signed-off-by: Olivier Fourdan <fourdan at xfce.org>
---
src/compositor.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/compositor.c b/src/compositor.c
index de15816..7ad9ef7 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -1429,7 +1429,7 @@ unbind_glx_texture (ScreenInfo *screen_info)
{
TRACE ("unbinding GLX drawable 0x%lx", screen_info->glx_drawable);
glXReleaseTexImageEXT (myScreenGetXDisplay (screen_info),
- screen_info->glx_drawable, GLX_FRONT_EXT);
+ screen_info->glx_drawable, GLX_BACK_EXT);
glXDestroyPixmap(myScreenGetXDisplay (screen_info), screen_info->glx_drawable);
screen_info->glx_drawable = None;
}
@@ -1497,7 +1497,7 @@ bind_glx_texture (ScreenInfo *screen_info, Pixmap pixmap)
screen_info->glx_drawable, screen_info->rootTexture);
enable_glx_texture (screen_info);
glXBindTexImageEXT (myScreenGetXDisplay (screen_info),
- screen_info->glx_drawable, GLX_FRONT_EXT, NULL);
+ screen_info->glx_drawable, GLX_BACK_EXT, NULL);
glTexParameteri(screen_info->texture_type,
GL_TEXTURE_MIN_FILTER,
screen_info->texture_filter);
@@ -1573,7 +1573,7 @@ redraw_glx_texture (ScreenInfo *screen_info)
TRACE ("releasing bind GLX pixmap 0x%lx to texture 0x%x",
screen_info->glx_drawable, screen_info->rootTexture);
glXReleaseTexImageEXT (myScreenGetXDisplay (screen_info),
- screen_info->glx_drawable, GLX_FRONT_EXT);
+ screen_info->glx_drawable, GLX_BACK_EXT);
glXWaitGL();
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list