From 2d04c7307166f67b84b1fcb3a6229eb76deb07dc Mon Sep 17 00:00:00 2001 From: rachytski Date: Thu, 17 Feb 2011 23:18:01 +0200 Subject: [PATCH] using RGB565 instead of RGBA8888 for render targets and renderbuffers to save memory. --- yg/data_formats.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yg/data_formats.hpp b/yg/data_formats.hpp index 8c945f11b7..1f19325007 100644 --- a/yg/data_formats.hpp +++ b/yg/data_formats.hpp @@ -88,7 +88,7 @@ namespace yg static pixel_t const createPixel(yg::Color const & c) { return pixel_t((c.r / 255.0f) * maxChannelVal, - (c.g / 255.0f) * maxChannelVal, + (c.g / 255.0f) * maxChannelVal, //< fix this channel (c.b / 255.0f) * maxChannelVal); } };