summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/OGLPerfQuery.cpp
diff options
context:
space:
mode:
authorScott Mansell <phiren@gmail.com>2023-01-28 14:53:19 +1300
committerScott Mansell <phiren@gmail.com>2023-01-31 19:41:23 +1300
commit58b70b2fb2abac12dddd947a69f7fa5b41b1a8b7 (patch)
treef053add433fb414fd60cf74f24641d001c0bf664 /Source/Core/VideoBackends/OGL/OGLPerfQuery.cpp
parentd37f83ffeba218c6ef94b78532aed50b1ebbc4a4 (diff)
Don't set common globals from Video Backends
Diffstat (limited to 'Source/Core/VideoBackends/OGL/OGLPerfQuery.cpp')
-rw-r--r--Source/Core/VideoBackends/OGL/OGLPerfQuery.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/OGL/OGLPerfQuery.cpp b/Source/Core/VideoBackends/OGL/OGLPerfQuery.cpp
index 00816b679d..cae5f71297 100644
--- a/Source/Core/VideoBackends/OGL/OGLPerfQuery.cpp
+++ b/Source/Core/VideoBackends/OGL/OGLPerfQuery.cpp
@@ -15,9 +15,8 @@
namespace OGL
{
-std::unique_ptr<PerfQueryBase> GetPerfQuery()
+std::unique_ptr<PerfQueryBase> GetPerfQuery(bool is_gles)
{
- const bool is_gles = static_cast<OGLGfx*>(g_gfx.get())->IsGLES();
if (is_gles && GLExtensions::Supports("GL_NV_occlusion_query_samples"))
return std::make_unique<PerfQueryGLESNV>();
else if (is_gles)