summaryrefslogtreecommitdiffstats
path: root/src/render/lights
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2018-12-18 07:58:34 +0100
committerPaul Lemire <paul.lemire@kdab.com>2018-12-19 16:40:58 +0000
commitaaedd1f71b7a7e4410966041baba0f392644e482 (patch)
tree8248235681408de5d60a0cb57053237eec37296d /src/render/lights
parentd85eede12eeab74ae446a2db4b12e23a846d0502 (diff)
Texture: initialize internal format to NoFormat
Format was initialized to RGBA8_UNorm on TextureProperties. This had the side effect that if you created a TextureLoader entry with no source yet set, the backend would try to load and return early since no texture data had yet been generated. Yet it would still send a notification change with the format (which was RGBA8_UNorm instead of NoFormat) back to the frontend QTextureLoader. This would prevent the QTextureLoader from later being loaded correctly with the format actually read from the image file. Also updated QTextureData/QTextureImageData/QTextureFromSourceLoader for consistency. Change-Id: I23e2287fac297b9b8901476715b1bc1e78c6342b Task-number: QTBUG-72651 Reviewed-by: Sean Harmer <sean.harmer@kdab.com> Reviewed-by: Kevin Ottens <kevin.ottens@kdab.com>
Diffstat (limited to 'src/render/lights')
0 files changed, 0 insertions, 0 deletions