using RGB565 instead of RGBA8888 for render targets and renderbuffers to save memory.

This commit is contained in:
rachytski 2011-02-17 23:18:01 +02:00 committed by Alex Zolotarev
parent 93d8cda981
commit 2d04c73071

View file

@ -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);
}
};