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