From: Mikko Rasa Date: Thu, 8 May 2014 18:00:26 +0000 (+0300) Subject: Pass the sRGB flag when loading a Texture2D from an image file X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=448decd4cb4baedc7975263a09cb065c25711547;p=libs%2Fgl.git Pass the sRGB flag when loading a Texture2D from an image file --- diff --git a/source/resources.cpp b/source/resources.cpp index 10d76148..95839947 100644 --- a/source/resources.cpp +++ b/source/resources.cpp @@ -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(); }