diff options
| author | Scott Mansell <phiren@gmail.com> | 2023-01-27 13:21:09 +1300 |
|---|---|---|
| committer | Scott Mansell <phiren@gmail.com> | 2023-01-31 18:46:04 +1300 |
| commit | f0336a3129ea431862e6e3bf1ccf51a384cf3f57 (patch) | |
| tree | cb768f2b19285d5966636e5e80c01c5553977632 /Source/Core/VideoBackends/OGL/OGLPerfQuery.cpp | |
| parent | 8a236293455e9a71aa6fb400a6253c27540e403b (diff) | |
Implement AbstractGfx for OpenGL
Mostly involves moving contents of OGLRender
to OGLGfx and OGLConfig
Diffstat (limited to 'Source/Core/VideoBackends/OGL/OGLPerfQuery.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/OGLPerfQuery.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/OGL/OGLPerfQuery.cpp b/Source/Core/VideoBackends/OGL/OGLPerfQuery.cpp index 550b837de8..00816b679d 100644 --- a/Source/Core/VideoBackends/OGL/OGLPerfQuery.cpp +++ b/Source/Core/VideoBackends/OGL/OGLPerfQuery.cpp @@ -8,7 +8,8 @@ #include "Common/CommonTypes.h" #include "Common/GL/GLExtensions/GLExtensions.h" -#include "VideoBackends/OGL/OGLRender.h" +#include "VideoBackends/OGL/OGLGfx.h" +#include "VideoCommon/RenderBase.h" #include "VideoCommon/VideoCommon.h" #include "VideoCommon/VideoConfig.h" @@ -16,7 +17,7 @@ namespace OGL { std::unique_ptr<PerfQueryBase> GetPerfQuery() { - const bool is_gles = static_cast<Renderer*>(g_renderer.get())->IsGLES(); + 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) |
