diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2014-07-01 20:57:42 +0200 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2014-07-01 23:26:37 +0200 |
commit | 9e5765fba0c2986d4fb4f7103f2f9c72f4c0d20d (patch) | |
tree | 09c2973cdf73e51f29bcc47abbf654243e455daf /examples/widgets/itemviews | |
parent | 9ee27005ee3cfa295c681a5ac04ac1c282b396ca (diff) |
QOpenGLTexture: fix the feature test for Buffer Textures
1a4ff6f122f575aca21f6a0b9d9c14cac4a5ea66 modified the features test
by checking extensions as well as the GL version. The problem was that
the GL version was wrong in the first place -- buffer textures are
natively supported since OpenGL 3.0, not 4.3.
4.3 introduced support for buffer texture ranges, i.e.
ARB_texture_buffer_range; however it's pointless to take the highest
requirement, especially considering that so far QOpenGLTexture doesn't
wrap glTexBuffer(Range) in any way. In the future, if QOpenGLTexture
will also wrap glTexBuffer, then we will also be able to introduce
a different feature flag for testing buffer texture ranges.
Change-Id: I6becbd49ac26d44ce01d088cbb7831b5cc127bdb
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'examples/widgets/itemviews')
0 files changed, 0 insertions, 0 deletions