]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texturecube.cpp
Do not use the srgb flag for textures that explicitly define storage
[libs/gl.git] / source / texturecube.cpp
index 03e65167d73fee7a1d89ba9ea3cea7ef2c68d81d..8306324153747078300a9b593d392d78f91cd5a6 100644 (file)
@@ -285,8 +285,6 @@ void TextureCube::Loader::raw_data(TextureCubeFace face, const string &data)
 
 void TextureCube::Loader::storage(PixelFormat fmt, unsigned s)
 {
-       if(srgb)
-               fmt = get_srgb_pixelformat(fmt);
        obj.storage(fmt, s);
 }