From 40a1cb5dfed6d5b255d1f330af2cdc14446e0b53 Mon Sep 17 00:00:00 2001 From: degasus Date: Tue, 27 Aug 2013 13:24:23 +0200 Subject: ogl: warn on osd if not supported features are enabled --- Source/Plugins/Plugin_VideoOGL/Src/FramebufferManager.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Source/Plugins/Plugin_VideoOGL/Src/FramebufferManager.cpp') diff --git a/Source/Plugins/Plugin_VideoOGL/Src/FramebufferManager.cpp b/Source/Plugins/Plugin_VideoOGL/Src/FramebufferManager.cpp index eeea9da38b..f3b8578b23 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/FramebufferManager.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/FramebufferManager.cpp @@ -5,6 +5,7 @@ #include "Globals.h" #include "FramebufferManager.h" #include "VertexShaderGen.h" +#include "OnScreenDisplay.h" #include "TextureConverter.h" #include "Render.h" @@ -366,6 +367,13 @@ void FramebufferManager::ReinterpretPixelData(unsigned int convtype) { if(g_ogl_config.eSupportedGLSLVersion == GLSL_120) { // This feature isn't supported by glsl120 + + // TODO: move this to InitBackendInfo + // We have to disable both the active and the stored config. Else we would either + // show this line per format change in one frame or once per frame. + OSD::AddMessage("Format Change Emulation isn't supported by your GPU.", 10000); + g_ActiveConfig.bEFBEmulateFormatChanges = false; + g_Config.bEFBEmulateFormatChanges = false; return; } -- cgit v1.2.3