summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-06-01 07:04:32 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:37 +0200
commit9f3970f837eebf290c03988ef00dee68ca68f07b (patch)
tree490e5347a6185b458d85479e842bb6e45c377a28
parentemit_glsl_context_get_set: Remove unused function (diff)
downloadyuzu-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.cpp4
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";
}
}