From 448decd4cb4baedc7975263a09cb065c25711547 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 8 May 2014 21:00:26 +0300 Subject: [PATCH] Pass the sRGB flag when loading a Texture2D from an image file --- source/resources.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.45.2