plugins/qpa: Fix a warning about unused variable

This commit is contained in:
Vlad Zahorodnii 2024-01-22 15:19:37 +02:00
parent 01818f683c
commit 575ff68e5b

View file

@ -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();
}