diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2014-05-25 15:00:56 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-05-26 10:57:18 +0200 |
commit | 0c789184c7c7a7130346206e4abbcffc0858dfd7 (patch) | |
tree | 117a85deb3059d1c6121e1e9eaa26d6ae06ba414 /src/android/jar | |
parent | 739fc9f24ea35bf55f853a970fe5ec27ef7a82ef (diff) |
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>
Diffstat (limited to 'src/android/jar')
0 files changed, 0 insertions, 0 deletions