diff --git a/Core/Config.cpp b/Core/Config.cpp index fd22d7b7df..af73c258c5 100644 --- a/Core/Config.cpp +++ b/Core/Config.cpp @@ -78,6 +78,7 @@ void CConfig::Load(const char *iniFileName) graphics->Get("VertexCache", &bVertexCache, true); graphics->Get("FullScreen", &bFullScreen, false); graphics->Get("StretchToDisplay", &bStretchToDisplay, false); + graphics->Get("TrueColor", &bTrueColor, true); IniFile::Section *sound = iniFile.GetOrCreateSection("Sound"); sound->Get("Enable", &bEnableSound, true); @@ -138,6 +139,7 @@ void CConfig::Save() graphics->Set("VertexCache", bVertexCache); graphics->Set("FullScreen", bFullScreen); graphics->Set("StretchToDisplay", bStretchToDisplay); + graphics->Set("TrueColor", bTrueColor); IniFile::Section *sound = iniFile.GetOrCreateSection("Sound"); sound->Set("Enable", bEnableSound); diff --git a/Core/Config.h b/Core/Config.h index d39325cc4e..842a93b10c 100644 --- a/Core/Config.h +++ b/Core/Config.h @@ -67,6 +67,7 @@ public: bool bVertexCache; bool bFullScreen; int iAnisotropyLevel; + bool bTrueColor; // Sound bool bEnableSound; diff --git a/GPU/GLES/Framebuffer.cpp b/GPU/GLES/Framebuffer.cpp index de4517bb6b..54783dcde3 100644 --- a/GPU/GLES/Framebuffer.cpp +++ b/GPU/GLES/Framebuffer.cpp @@ -333,6 +333,10 @@ void FramebufferManager::SetRenderFrameBuffer() { case GE_FORMAT_8888: vfb->colorDepth = FBO_8888; break; default: vfb->colorDepth = FBO_8888; break; } + + if (g_Config.bTrueColor) + vfb->colorDepth = FBO_8888; + //#ifdef ANDROID // vfb->colorDepth = FBO_8888; //#endif