Skip to content

Commit

Permalink
Merge pull request #4618 from Helios747/bounding_box_check
Browse files Browse the repository at this point in the history
[Video] Warn when booting a bounding box game on an unsupported GPU
  • Loading branch information
degasus committed Feb 6, 2017
2 parents d244597 + 4c22e63 commit eb3c172
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions Source/Core/VideoCommon/MainBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ u32 VideoBackendBase::Video_GetQueryResult(PerfQueryType type)

u16 VideoBackendBase::Video_GetBoundingBox(int index)
{
if (!g_ActiveConfig.backend_info.bSupportsBBox)
return 0;

if (!g_ActiveConfig.bBBoxEnable)
{
static bool warn_once = true;
Expand All @@ -133,6 +130,17 @@ u16 VideoBackendBase::Video_GetBoundingBox(int index)
return 0;
}

if (!g_ActiveConfig.backend_info.bSupportsBBox)
{
static bool warn_once = true;
if (warn_once)
PanicAlertT("This game requires bounding box emulation to run properly but your graphics "
"card or its drivers do not support it. As a result you will experience bugs or "
"freezes while running this game.");
warn_once = false;
return 0;
}

Fifo::SyncGPU(Fifo::SyncGPUReason::BBox);

AsyncRequests::Event e;
Expand Down

0 comments on commit eb3c172

Please sign in to comment.