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
parent
38da61fdc0
commit
0cd818aa7a
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -65,6 +65,8 @@ public:
|
|||
|
||||
EGLContext eglContext() const;
|
||||
|
||||
GLuint defaultFramebufferObject(QPlatformSurface *surface) const;
|
||||
|
||||
private:
|
||||
|
||||
QKmsDevice *m_device;
|
||||
|
|
|
|||
Loading…
Reference in New Issue