diff options
author | liamwhite <liamwhite@users.noreply.github.com> | 2022-12-15 18:05:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-15 18:05:01 +0100 |
commit | 3ff7a5de1a54c9f478b23de1a0bd6c6188ea80a6 (patch) | |
tree | 0d014da28cf6a8a1045cd2a7d7df8301522ea47c /src/video_core/renderer_opengl/gl_device.h | |
parent | Merge pull request #9441 from yuzu-emu/revert-9232-audio-default-thread (diff) | |
parent | gl_device: Use a more robust way to use strict context mode (diff) | |
download | yuzu-3ff7a5de1a54c9f478b23de1a0bd6c6188ea80a6.tar yuzu-3ff7a5de1a54c9f478b23de1a0bd6c6188ea80a6.tar.gz yuzu-3ff7a5de1a54c9f478b23de1a0bd6c6188ea80a6.tar.bz2 yuzu-3ff7a5de1a54c9f478b23de1a0bd6c6188ea80a6.tar.lz yuzu-3ff7a5de1a54c9f478b23de1a0bd6c6188ea80a6.tar.xz yuzu-3ff7a5de1a54c9f478b23de1a0bd6c6188ea80a6.tar.zst yuzu-3ff7a5de1a54c9f478b23de1a0bd6c6188ea80a6.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/gl_device.h')
-rw-r--r-- | src/video_core/renderer_opengl/gl_device.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_device.h b/src/video_core/renderer_opengl/gl_device.h index 5ef51ebcf..2a72d84be 100644 --- a/src/video_core/renderer_opengl/gl_device.h +++ b/src/video_core/renderer_opengl/gl_device.h @@ -5,6 +5,7 @@ #include <cstddef> #include "common/common_types.h" +#include "core/frontend/emu_window.h" #include "shader_recompiler/stage.h" namespace Settings { @@ -15,7 +16,7 @@ namespace OpenGL { class Device { public: - explicit Device(); + explicit Device(Core::Frontend::EmuWindow& emu_window); [[nodiscard]] std::string GetVendorName() const; @@ -173,6 +174,10 @@ public: return can_report_memory; } + bool StrictContextRequired() const { + return strict_context_required; + } + private: static bool TestVariableAoffi(); static bool TestPreciseBug(); @@ -216,6 +221,7 @@ private: bool has_cbuf_ftou_bug{}; bool has_bool_ref_bug{}; bool can_report_memory{}; + bool strict_context_required{}; std::string vendor_name; }; |