plugins/qpa: Fix a warning about unused variable

wilder/Plasma/6.2
Vlad Zahorodnii 2 years ago
parent 01818f683c
commit 575ff68e5b
  1. 2
      src/plugins/qpa/eglplatformcontext.cpp

@ -162,7 +162,7 @@ void EGLPlatformContext::swapBuffers(QPlatformSurface *surface)
GLuint EGLPlatformContext::defaultFramebufferObject(QPlatformSurface *surface) const
{
if (Window *window = dynamic_cast<Window *>(surface)) {
if (surface->surface()->surfaceClass() == QSurface::Window) {
if (m_current) {
return m_current->fbo->handle();
}

Loading…
Cancel
Save