Fix framebuffer init. Why was it like that?

This commit is contained in:
Sacha 2013-02-18 23:55:41 +10:00
parent f3936e3dfa
commit 7f2e13c82a

View File

@ -326,12 +326,12 @@ void FramebufferManager::SetRenderFrameBuffer() {
vfb->renderHeight = (u16)(drawing_height * renderHeightFactor);
vfb->format = fmt;
vfb->colorDepth = FBO_8888;
switch (fmt) {
case GE_FORMAT_4444: vfb->colorDepth = FBO_4444;
case GE_FORMAT_5551: vfb->colorDepth = FBO_5551;
case GE_FORMAT_565: vfb->colorDepth = FBO_565;
case GE_FORMAT_8888: vfb->colorDepth = FBO_8888;
case GE_FORMAT_4444: vfb->colorDepth = FBO_4444; break;
case GE_FORMAT_5551: vfb->colorDepth = FBO_5551; break;
case GE_FORMAT_565: vfb->colorDepth = FBO_565; break;
case GE_FORMAT_8888: vfb->colorDepth = FBO_8888; break;
default: vfb->colorDepth = FBO_8888; break;
}
//#ifdef ANDROID
// vfb->colorDepth = FBO_8888;