Use correct framebuffer object.

KMS plugin deals with FBO IDs not equal to zero (the default FBO),
so return the correct ID.

Change-Id: I904fc0b8d732f856b4526bd7f73cc48c358c8441
Reviewed-by: Andy Nichols <andy.nichols@nokia.com>
bb10
Hannu Lyytinen 2012-04-10 20:29:33 +03:00 committed by Qt by Nokia
parent 38da61fdc0
commit 0cd818aa7a
2 changed files with 9 additions and 0 deletions

View File

@ -110,4 +110,11 @@ QSurfaceFormat QKmsContext::format() const
return QSurfaceFormat();
}
GLuint QKmsContext::defaultFramebufferObject(QPlatformSurface *surface) const
{
QPlatformWindow *window = static_cast<QPlatformWindow *>(surface);
QKmsScreen *screen = static_cast<QKmsScreen *> (QPlatformScreen::platformScreenForWindow(window->window()));
return screen->framebufferObject();
}
QT_END_NAMESPACE

View File

@ -65,6 +65,8 @@ public:
EGLContext eglContext() const;
GLuint defaultFramebufferObject(QPlatformSurface *surface) const;
private:
QKmsDevice *m_device;