diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-06-01 07:04:32 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:37 +0200 |
commit | 9f3970f837eebf290c03988ef00dee68ca68f07b (patch) | |
tree | 490e5347a6185b458d85479e842bb6e45c377a28 | |
parent | emit_glsl_context_get_set: Remove unused function (diff) | |
download | yuzu-9f3970f837eebf290c03988ef00dee68ca68f07b.tar yuzu-9f3970f837eebf290c03988ef00dee68ca68f07b.tar.gz yuzu-9f3970f837eebf290c03988ef00dee68ca68f07b.tar.bz2 yuzu-9f3970f837eebf290c03988ef00dee68ca68f07b.tar.lz yuzu-9f3970f837eebf290c03988ef00dee68ca68f07b.tar.xz yuzu-9f3970f837eebf290c03988ef00dee68ca68f07b.tar.zst yuzu-9f3970f837eebf290c03988ef00dee68ca68f07b.zip |
-rw-r--r-- | src/shader_recompiler/backend/glsl/emit_context.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_context.cpp b/src/shader_recompiler/backend/glsl/emit_context.cpp index 2375b7a06..6e164b958 100644 --- a/src/shader_recompiler/backend/glsl/emit_context.cpp +++ b/src/shader_recompiler/backend/glsl/emit_context.cpp @@ -151,6 +151,9 @@ void SetupOutPerVertex(Stage stage, const Info& info, std::string& header) { header += "float gl_ClipDistance[];"; } header += "};\n"; + if (info.stores_viewport_index) { + header += "out int gl_ViewportIndex;"; + } } } // namespace @@ -264,7 +267,6 @@ void EmitContext::SetupExtensions(std::string&) { } if (info.stores_viewport_index) { header += "#extension GL_ARB_shader_viewport_layer_array : enable\n"; - header += "#extension GL_NV_viewport_array2 : enable\n"; } } |