Go to file
Giuseppe D'Angelo 0c789184c7 Fix support for depth/stencil textures in QOpenGLTexture
When allocating (mutable) storage for a texture, OpenGL mandates that
the client-side format and pixel type "match" the internal format.
That needs to happen even if we are not actually uploading anything
(because we're passing NULL as the data parameter and no PBO is bound).

This means that we need to pick a compatible format/type and not just
pass GL_RGBA / GL_UNSIGNED_INT. In turn, it implies adding new
enum values to the various format/type enums.

Change-Id: If40c63b1d44764b3be131dd1b41d13983a19ae45
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
2014-05-26 10:57:18 +02:00
bin
config.tests
dist
doc
examples
lib
mkspecs
qmake
src Fix support for depth/stencil textures in QOpenGLTexture 2014-05-26 10:57:18 +02:00
tests
tools
util
.gitattributes
.gitignore
.qmake.conf
.tag
configure
configure.bat
header.BSD
header.FDL
header.LGPL
header.LGPL-ONLY
INSTALL
LGPL_EXCEPTION.txt
LICENSE.FDL
LICENSE.GPL
LICENSE.LGPL
LICENSE.PREVIEW.COMMERCIAL
qtbase.pro
sync.profile