Move OpenGL functions around

Also remove some debug function calls (there are better tools for opengl
debugging now). Also remove copysubbuffermesa

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2018-09-29 19:24:33 +01:00
parent 90b6aa16ad
commit c01ad5bf04
4 changed files with 168 additions and 217 deletions

View File

@@ -1941,10 +1941,7 @@ paint_all(session_t *ps, XserverRegion region, XserverRegion region_real, win *t
region_real, NULL, NULL);
// falls through
case BKEND_GLX:
if (ps->o.glx_use_copysubbuffermesa)
glx_swap_copysubbuffermesa(ps, region_real);
else
glXSwapBuffers(ps->dpy, get_tgt_window(ps));
glXSwapBuffers(ps->dpy, get_tgt_window(ps));
break;
#endif
default: