]> git.tdb.fi Git - libs/gl.git/commitdiff
Pass the sRGB flag when loading a Texture2D from an image file
authorMikko Rasa <tdb@tdb.fi>
Thu, 8 May 2014 18:00:26 +0000 (21:00 +0300)
committerMikko Rasa <tdb@tdb.fi>
Thu, 8 May 2014 18:00:47 +0000 (21:00 +0300)
source/resources.cpp

index 10d76148860c0e43d3464429e534502b08a966f3..9583994710f5acab1d6b8517e9277ae223b082be 100644 (file)
@@ -69,7 +69,7 @@ Texture2D *Resources::create_texture2d(const string &name)
                        tex->set_mag_filter(default_tex_filter);
                tex->set_min_filter(default_tex_filter);
 
-               tex->image(image);
+               tex->image(image, srgb_conversion);
                return tex.release();
        }