Track QPlatformGLContext API changes
This commit is contained in:
parent
3745e1bd79
commit
86f20c89af
@ -97,8 +97,6 @@ QWaylandReadbackEglContext::~QWaylandReadbackEglContext()
|
||||
|
||||
void QWaylandReadbackEglContext::makeCurrent()
|
||||
{
|
||||
QPlatformGLContext::makeCurrent();
|
||||
|
||||
mWindow->waitForFrameSync();
|
||||
|
||||
eglMakeCurrent(mEglIntegration->eglDisplay(),mPixmapSurface,mPixmapSurface,mContext);
|
||||
@ -114,7 +112,7 @@ void QWaylandReadbackEglContext::swapBuffers()
|
||||
{
|
||||
eglSwapBuffers(mEglIntegration->eglDisplay(),mPixmapSurface);
|
||||
|
||||
if (QPlatformGLContext::currentContext() != this) {
|
||||
if (QWindowContext::currentContext().handle() != this) {
|
||||
makeCurrent();
|
||||
}
|
||||
|
||||
|
@ -85,8 +85,6 @@ QWaylandReadbackGlxContext::QWaylandReadbackGlxContext(QWaylandReadbackGlxIntegr
|
||||
|
||||
void QWaylandReadbackGlxContext::makeCurrent()
|
||||
{
|
||||
QPlatformGLContext::makeCurrent();
|
||||
|
||||
glXMakeCurrent(mGlxIntegration->xDisplay(),mGlxPixmap,mContext);
|
||||
}
|
||||
|
||||
@ -97,7 +95,7 @@ void QWaylandReadbackGlxContext::doneCurrent()
|
||||
|
||||
void QWaylandReadbackGlxContext::swapBuffers()
|
||||
{
|
||||
if (QPlatformGLContext::currentContext() != this) {
|
||||
if (QWindowContext::currentContext().handle() != this) {
|
||||
makeCurrent();
|
||||
}
|
||||
|
||||
|
@ -90,7 +90,6 @@ QWaylandGLContext::~QWaylandGLContext()
|
||||
|
||||
void QWaylandGLContext::makeCurrent()
|
||||
{
|
||||
QPlatformGLContext::makeCurrent();
|
||||
if (mSurface == EGL_NO_SURFACE) {
|
||||
qWarning("makeCurrent with EGL_NO_SURFACE");
|
||||
}
|
||||
|
@ -75,8 +75,6 @@ QWaylandXCompositeEGLContext::QWaylandXCompositeEGLContext(QWaylandXCompositeEGL
|
||||
|
||||
void QWaylandXCompositeEGLContext::makeCurrent()
|
||||
{
|
||||
QPlatformGLContext::makeCurrent();
|
||||
|
||||
eglMakeCurrent(mEglIntegration->eglDisplay(),mEglWindowSurface,mEglWindowSurface,mContext);
|
||||
}
|
||||
|
||||
|
@ -67,7 +67,6 @@ QWaylandXCompositeGLXContext::QWaylandXCompositeGLXContext(QWaylandXCompositeGLX
|
||||
|
||||
void QWaylandXCompositeGLXContext::makeCurrent()
|
||||
{
|
||||
QPlatformGLContext::makeCurrent();
|
||||
glXMakeCurrent(mGlxIntegration->xDisplay(),mXWindow,mContext);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user