QOpenGLTexture: test for extensions when checking features
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Sun, 25 May 2014 13:30:30 +0000 (15:30 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sun, 25 May 2014 13:51:07 +0000 (15:51 +0200)
commit1a4ff6f122f575aca21f6a0b9d9c14cac4a5ea66
tree5e80ea5487276450bb2a24eceec8b24565347f85
parent9b27240e4a30dd8b0d504f696f45c6c25caaa259
QOpenGLTexture: test for extensions when checking features

Don't use only the GL version, as vendors expose many many extensions
on viable hardware.

For instance, I have a NVIDIA G210 which supports up to GL3.3, but
which features immutable storage, immutable multisampled storage,
texture buffers and ranges, stencil texturing, and cubemap arrays.

Change-Id: Ie6023ee854b679737fca982578cb2093e10d083f
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
src/gui/opengl/qopengltexture.cpp