diff options
| author | 2020-03-14 17:39:29 -0400 | |
|---|---|---|
| committer | 2020-03-14 17:39:29 -0400 | |
| commit | 4373fa8042800d94d3b695ce706dd109207714a0 (patch) | |
| tree | 037b8b40d34470721e7bb5e0d7affc57f48aafc0 /src | |
| parent | Merge pull request #3500 from ReinUsesLisp/incompatible-types (diff) | |
| download | yuzu-4373fa8042800d94d3b695ce706dd109207714a0.tar.gz yuzu-4373fa8042800d94d3b695ce706dd109207714a0.tar.xz yuzu-4373fa8042800d94d3b695ce706dd109207714a0.zip | |
gl_device: Add option to check GL_EXT_debug_tool.
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_device.cpp | 1 | ||||
| -rw-r--r-- | src/video_core/renderer_opengl/gl_device.h | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_device.cpp b/src/video_core/renderer_opengl/gl_device.cpp index 1a2e2a9f7..e824e216d 100644 --- a/src/video_core/renderer_opengl/gl_device.cpp +++ b/src/video_core/renderer_opengl/gl_device.cpp | |||
| @@ -157,6 +157,7 @@ Device::Device() : base_bindings{BuildBaseBindings()} { | |||
| 157 | has_precise_bug = TestPreciseBug(); | 157 | has_precise_bug = TestPreciseBug(); |
| 158 | has_broken_compute = is_intel_proprietary; | 158 | has_broken_compute = is_intel_proprietary; |
| 159 | has_fast_buffer_sub_data = is_nvidia; | 159 | has_fast_buffer_sub_data = is_nvidia; |
| 160 | has_debug_tool = HasExtension(extensions, "GL_EXT_debug_tool"); | ||
| 160 | 161 | ||
| 161 | LOG_INFO(Render_OpenGL, "Renderer_VariableAOFFI: {}", has_variable_aoffi); | 162 | LOG_INFO(Render_OpenGL, "Renderer_VariableAOFFI: {}", has_variable_aoffi); |
| 162 | LOG_INFO(Render_OpenGL, "Renderer_ComponentIndexingBug: {}", has_component_indexing_bug); | 163 | LOG_INFO(Render_OpenGL, "Renderer_ComponentIndexingBug: {}", has_component_indexing_bug); |
diff --git a/src/video_core/renderer_opengl/gl_device.h b/src/video_core/renderer_opengl/gl_device.h index d73b099d0..7aaa3a077 100644 --- a/src/video_core/renderer_opengl/gl_device.h +++ b/src/video_core/renderer_opengl/gl_device.h | |||
| @@ -84,6 +84,10 @@ public: | |||
| 84 | return has_fast_buffer_sub_data; | 84 | return has_fast_buffer_sub_data; |
| 85 | } | 85 | } |
| 86 | 86 | ||
| 87 | bool HasDebugTool() const { | ||
| 88 | return has_debug_tool; | ||
| 89 | } | ||
| 90 | |||
| 87 | private: | 91 | private: |
| 88 | static bool TestVariableAoffi(); | 92 | static bool TestVariableAoffi(); |
| 89 | static bool TestPreciseBug(); | 93 | static bool TestPreciseBug(); |
| @@ -102,6 +106,7 @@ private: | |||
| 102 | bool has_precise_bug{}; | 106 | bool has_precise_bug{}; |
| 103 | bool has_broken_compute{}; | 107 | bool has_broken_compute{}; |
| 104 | bool has_fast_buffer_sub_data{}; | 108 | bool has_fast_buffer_sub_data{}; |
| 109 | bool has_debug_tool{}; | ||
| 105 | }; | 110 | }; |
| 106 | 111 | ||
| 107 | } // namespace OpenGL | 112 | } // namespace OpenGL |