Merge branch 'KDE/4.10'
This commit is contained in:
commit
f7de24fbb6
1 changed files with 7 additions and 2 deletions
|
@ -118,8 +118,13 @@ bool EglOnXBackend::initRenderingContext()
|
||||||
eglSurfaceAttrib(dpy, surface, EGL_SWAP_BEHAVIOR, EGL_BUFFER_PRESERVED);
|
eglSurfaceAttrib(dpy, surface, EGL_SWAP_BEHAVIOR, EGL_BUFFER_PRESERVED);
|
||||||
|
|
||||||
if (eglQuerySurface(dpy, surface, EGL_POST_SUB_BUFFER_SUPPORTED_NV, &surfaceHasSubPost) == EGL_FALSE) {
|
if (eglQuerySurface(dpy, surface, EGL_POST_SUB_BUFFER_SUPPORTED_NV, &surfaceHasSubPost) == EGL_FALSE) {
|
||||||
|
EGLint error = eglGetError();
|
||||||
|
if (error != EGL_SUCCESS && error != EGL_BAD_ATTRIBUTE) {
|
||||||
kError(1212) << "query surface failed";
|
kError(1212) << "query surface failed";
|
||||||
return false;
|
return false;
|
||||||
|
} else {
|
||||||
|
surfaceHasSubPost = EGL_FALSE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const EGLint context_attribs[] = {
|
const EGLint context_attribs[] = {
|
||||||
|
|
Loading…
Reference in a new issue