]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texture2d.cpp
Do not use the srgb flag for textures that explicitly define storage
[libs/gl.git] / source / texture2d.cpp
index 45c2e665d056973ee4ecdb41eb6033dd831c2b5b..806e4a179bded9f8a71264ecce78bccafc529870 100644 (file)
@@ -218,8 +218,6 @@ void Texture2D::Loader::raw_data(const string &data)
 
 void Texture2D::Loader::storage(PixelFormat fmt, unsigned w, unsigned h)
 {
-       if(srgb)
-               fmt = get_srgb_pixelformat(fmt);
        obj.storage(fmt, w, h);
 }