Do not use the srgb flag for textures that explicitly define storage
authorMikko Rasa <tdb@tdb.fi>
Tue, 4 Jun 2019 07:23:39 +0000 (10:23 +0300)
committerMikko Rasa <tdb@tdb.fi>
Tue, 4 Jun 2019 07:23:39 +0000 (10:23 +0300)
commit8ed377139d48a6fc39eeed9f3494bbe41aed4107
treedd86f908e147256f4e7d49c454831670dd6aee84
parentabb4e50bdbb6d62d7e6ee249d52353ccf22762a4
Do not use the srgb flag for textures that explicitly define storage

Presumably the texture author knows which colorspace the texture uses.
In particular this made it impossible to load non-color textures such
as normal maps which require a linear colorspace if the srgb flag was
set in the containing resource collection.
source/texture1d.cpp
source/texture2d.cpp
source/texture3d.cpp
source/texturecube.cpp