plugins/qpa: Fix a warning about unused variable
This commit is contained in:
parent
01818f683c
commit
575ff68e5b
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue