summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/MainBase.cpp
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2015-05-23 16:08:49 +0200
committerdegasus <wickmarkus@web.de>2015-05-25 09:33:34 +0200
commit7e127da791cd8b81626fa2d196f874365cf4fab2 (patch)
tree107f0b2b7409acf63ad7c821fc210739ce8a8c91 /Source/Core/VideoCommon/MainBase.cpp
parent029912681e1f6a17ad68f8593c78d514b863724c (diff)
VideoCommon: Warn if bbox is disabled but used
Diffstat (limited to 'Source/Core/VideoCommon/MainBase.cpp')
-rw-r--r--Source/Core/VideoCommon/MainBase.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/MainBase.cpp b/Source/Core/VideoCommon/MainBase.cpp
index e06ce3c84e..17ead5265e 100644
--- a/Source/Core/VideoCommon/MainBase.cpp
+++ b/Source/Core/VideoCommon/MainBase.cpp
@@ -152,9 +152,18 @@ u32 VideoBackendHardware::Video_GetQueryResult(PerfQueryType type)
u16 VideoBackendHardware::Video_GetBoundingBox(int index)
{
- if (!g_ActiveConfig.backend_info.bSupportsBBox || !g_ActiveConfig.bBBoxEnable)
+ if (!g_ActiveConfig.backend_info.bSupportsBBox)
return 0;
+ if (!g_ActiveConfig.bBBoxEnable)
+ {
+ static bool warn_once = true;
+ if (warn_once)
+ ERROR_LOG(VIDEO, "BBox shall be used but it is disabled. Please use a gameini to enable it for this game.");
+ warn_once = false;
+ return 0;
+ }
+
SyncGPU(SYNC_GPU_BBOX);
AsyncRequests::Event e;