diff options
author | Sérgio Martins <sergio.martins@kdab.com> | 2016-08-05 10:51:49 +0100 |
---|---|---|
committer | Sérgio Martins <sergio.martins@kdab.com> | 2016-08-11 08:28:36 +0000 |
commit | 0681e603803634f89f72b37b216b91cab2e085d1 (patch) | |
tree | 8506eea608b9dfe56ad2ddbbe0709c7c270082e8 /mkspecs | |
parent | fbc9edb5e7bf1417959e9c9fb5f70979ff176483 (diff) |
Cache the current QOpenGLFramebufferObject
This doesn't cover FBOs bound directly with glBindFramebuffer(),
but it's perfect to create a fast path for code we know uses QOGLFBO,
thus avoiding expensive glGetIntegerv() driver calls.
The use case is to use this in QSG24BitTextMaskShader::activate(), where
we need to check if the current FBO is sRGB capable.
Change-Id: I434eeeb7e6a3d16be9327315536ad7280245085d
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'mkspecs')
0 files changed, 0 insertions, 0 deletions