diff options
author | lat9nq <22451773+lat9nq@users.noreply.github.com> | 2021-07-08 23:28:48 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:39 +0200 |
commit | 1152d66ddd4e7b29b53e01990fef77e4cff20e24 (patch) | |
tree | 9530d5e2c00afd904d95e1a4066d5e4e7f3571c5 /src/video_core/renderer_opengl/gl_device.cpp | |
parent | glsl: Declare local memory in main (diff) | |
download | yuzu-1152d66ddd4e7b29b53e01990fef77e4cff20e24.tar yuzu-1152d66ddd4e7b29b53e01990fef77e4cff20e24.tar.gz yuzu-1152d66ddd4e7b29b53e01990fef77e4cff20e24.tar.bz2 yuzu-1152d66ddd4e7b29b53e01990fef77e4cff20e24.tar.lz yuzu-1152d66ddd4e7b29b53e01990fef77e4cff20e24.tar.xz yuzu-1152d66ddd4e7b29b53e01990fef77e4cff20e24.tar.zst yuzu-1152d66ddd4e7b29b53e01990fef77e4cff20e24.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/renderer_opengl/gl_device.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/video_core/renderer_opengl/gl_device.cpp b/src/video_core/renderer_opengl/gl_device.cpp index 6818951f2..c4eeed53b 100644 --- a/src/video_core/renderer_opengl/gl_device.cpp +++ b/src/video_core/renderer_opengl/gl_device.cpp @@ -172,9 +172,10 @@ Device::Device() { // uniform buffers as "push constants" has_fast_buffer_sub_data = is_nvidia && !disable_fast_buffer_sub_data; - use_assembly_shaders = Settings::values.use_assembly_shaders.GetValue() && - GLAD_GL_NV_gpu_program5 && GLAD_GL_NV_compute_program5 && - GLAD_GL_NV_transform_feedback && GLAD_GL_NV_transform_feedback2; + use_assembly_shaders = + Settings::values.shader_backend.GetValue() == Settings::ShaderBackend::GLASM && + GLAD_GL_NV_gpu_program5 && GLAD_GL_NV_compute_program5 && GLAD_GL_NV_transform_feedback && + GLAD_GL_NV_transform_feedback2; // Blocks AMD and Intel OpenGL drivers on Windows from using asynchronous shader compilation. use_asynchronous_shaders = Settings::values.use_asynchronous_shaders.GetValue() && @@ -187,7 +188,8 @@ Device::Device() { LOG_INFO(Render_OpenGL, "Renderer_BrokenTextureViewFormats: {}", has_broken_texture_view_formats); - if (Settings::values.use_assembly_shaders.GetValue() && !use_assembly_shaders) { + if (Settings::values.shader_backend.GetValue() == Settings::ShaderBackend::GLASM && + !use_assembly_shaders) { LOG_ERROR(Render_OpenGL, "Assembly shaders enabled but not supported"); } |