mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
VideoCommon: Warn if bbox is disabled but used
This commit is contained in:
@ -152,9 +152,18 @@ u32 VideoBackendHardware::Video_GetQueryResult(PerfQueryType type)
|
|||||||
|
|
||||||
u16 VideoBackendHardware::Video_GetBoundingBox(int index)
|
u16 VideoBackendHardware::Video_GetBoundingBox(int index)
|
||||||
{
|
{
|
||||||
if (!g_ActiveConfig.backend_info.bSupportsBBox || !g_ActiveConfig.bBBoxEnable)
|
if (!g_ActiveConfig.backend_info.bSupportsBBox)
|
||||||
return 0;
|
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);
|
SyncGPU(SYNC_GPU_BBOX);
|
||||||
|
|
||||||
AsyncRequests::Event e;
|
AsyncRequests::Event e;
|
||||||
|
Reference in New Issue
Block a user