diff options
| author | Helios747 <aserna3@gmail.com> | 2017-01-05 14:18:36 -0800 |
|---|---|---|
| committer | Helios747 <aserna3@gmail.com> | 2017-02-04 10:08:52 -0800 |
| commit | 4c22e6387d251a4c4e315edcf9f50b5780238edb (patch) | |
| tree | b1ebc09073e37ce06c498f40e2766353239ffbb0 /Source/Core/VideoCommon/MainBase.cpp | |
| parent | 495580637ffd8b847d7df43f60bf0d8ccc65b3ba (diff) | |
[Video] Warn when booting a bounding box game on an unsupported GPU
Diffstat (limited to 'Source/Core/VideoCommon/MainBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/MainBase.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/MainBase.cpp b/Source/Core/VideoCommon/MainBase.cpp index 659eec31b3..d39b8c6fa9 100644 --- a/Source/Core/VideoCommon/MainBase.cpp +++ b/Source/Core/VideoCommon/MainBase.cpp @@ -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; @@ -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; |
