kwin: Remove some left over support for GLX < 1.3
We require GLX_EXT_texture_from_pixmap which in turn requires GLX 1.3.
This commit is contained in:
parent
e393cc9069
commit
8446912502
1 changed files with 2 additions and 5 deletions
|
@ -61,7 +61,7 @@ GlxBackend::~GlxBackend()
|
||||||
if (ctx)
|
if (ctx)
|
||||||
glXDestroyContext(display(), ctx);
|
glXDestroyContext(display(), ctx);
|
||||||
if (overlayWindow()->window()) {
|
if (overlayWindow()->window()) {
|
||||||
if (hasGLXVersion(1, 3) && glxDrawable)
|
if (glxDrawable)
|
||||||
glXDestroyWindow(display(), glxDrawable);
|
glXDestroyWindow(display(), glxDrawable);
|
||||||
if (drawable)
|
if (drawable)
|
||||||
XDestroyWindow(display(), drawable);
|
XDestroyWindow(display(), drawable);
|
||||||
|
@ -181,10 +181,7 @@ bool GlxBackend::initBuffer()
|
||||||
attrs.colormap = XCreateColormap(display(), rootWindow(), visual->visual, AllocNone);
|
attrs.colormap = XCreateColormap(display(), rootWindow(), visual->visual, AllocNone);
|
||||||
drawable = XCreateWindow(display(), overlayWindow()->window(), 0, 0, displayWidth(), displayHeight(),
|
drawable = XCreateWindow(display(), overlayWindow()->window(), 0, 0, displayWidth(), displayHeight(),
|
||||||
0, visual->depth, InputOutput, visual->visual, CWColormap, &attrs);
|
0, visual->depth, InputOutput, visual->visual, CWColormap, &attrs);
|
||||||
if (hasGLXVersion(1, 3))
|
glxDrawable = glXCreateWindow(display(), fbconfig, drawable, NULL);
|
||||||
glxDrawable = glXCreateWindow(display(), fbconfig, drawable, NULL);
|
|
||||||
else
|
|
||||||
glxDrawable = drawable;
|
|
||||||
overlayWindow()->setup(drawable);
|
overlayWindow()->setup(drawable);
|
||||||
setDoubleBuffer(true);
|
setDoubleBuffer(true);
|
||||||
XFree(visual);
|
XFree(visual);
|
||||||
|
|
Loading…
Reference in a new issue