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>
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
EGLContext eglContext() const;
+ GLuint defaultFramebufferObject(QPlatformSurface *surface) const;
+
private:
QKmsDevice *m_device;