diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-06-13 06:05:19 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:38 +0200 |
commit | 5e7b2b9661bf685c3950d7c4065d0d35b488f95c (patch) | |
tree | 957dc64090b0e376604322e7d801fff4fa46abf5 /src/shader_recompiler/backend/glsl/emit_context.cpp | |
parent | glsl: Implement legacy varyings (diff) | |
download | yuzu-5e7b2b9661bf685c3950d7c4065d0d35b488f95c.tar yuzu-5e7b2b9661bf685c3950d7c4065d0d35b488f95c.tar.gz yuzu-5e7b2b9661bf685c3950d7c4065d0d35b488f95c.tar.bz2 yuzu-5e7b2b9661bf685c3950d7c4065d0d35b488f95c.tar.lz yuzu-5e7b2b9661bf685c3950d7c4065d0d35b488f95c.tar.xz yuzu-5e7b2b9661bf685c3950d7c4065d0d35b488f95c.tar.zst yuzu-5e7b2b9661bf685c3950d7c4065d0d35b488f95c.zip |
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_context.cpp')
-rw-r--r-- | src/shader_recompiler/backend/glsl/emit_context.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_context.cpp b/src/shader_recompiler/backend/glsl/emit_context.cpp index f0e9dffc2..d0880bdcb 100644 --- a/src/shader_recompiler/backend/glsl/emit_context.cpp +++ b/src/shader_recompiler/backend/glsl/emit_context.cpp @@ -384,7 +384,7 @@ void EmitContext::SetupExtensions() { profile.support_viewport_index_layer_non_geometry && stage != Stage::Geometry) { header += "#extension GL_ARB_shader_viewport_layer_array : enable\n"; } - if (info.uses_sparse_residency) { + if (info.uses_sparse_residency && profile.support_gl_sparse_textures) { header += "#extension GL_ARB_sparse_texture2 : enable\n"; } if (info.stores_viewport_mask && profile.support_viewport_mask) { |