summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-12-16 06:12:51 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-12-16 06:12:51 +0100
commita87c85eba2479d41b8df527214c1af8c8c32d01d (patch)
tree9d4aacf32cde91dd004d503aac4f9d8612060a7b /src/video_core
parentshader/texture: Implement AOFFI for TLD4S (diff)
downloadyuzu-a87c85eba2479d41b8df527214c1af8c8c32d01d.tar
yuzu-a87c85eba2479d41b8df527214c1af8c8c32d01d.tar.gz
yuzu-a87c85eba2479d41b8df527214c1af8c8c32d01d.tar.bz2
yuzu-a87c85eba2479d41b8df527214c1af8c8c32d01d.tar.lz
yuzu-a87c85eba2479d41b8df527214c1af8c8c32d01d.tar.xz
yuzu-a87c85eba2479d41b8df527214c1af8c8c32d01d.tar.zst
yuzu-a87c85eba2479d41b8df527214c1af8c8c32d01d.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_opengl/gl_shader_decompiler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
index d1ae4be6d..6b4b8ff67 100644
--- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
+++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp
@@ -1076,7 +1076,7 @@ private:
}
std::string GenerateTexture(Operation operation, const std::string& function_suffix,
- const std::vector<TextureIR>& extras, bool sepparate_dc = false) {
+ const std::vector<TextureIR>& extras, bool separate_dc = false) {
constexpr std::array coord_constructors = {"float", "vec2", "vec3", "vec4"};
const auto meta = std::get_if<MetaTexture>(&operation.GetMeta());
@@ -1092,7 +1092,7 @@ private:
}
expr += '(' + GetSampler(meta->sampler) + ", ";
expr += coord_constructors.at(count + (has_array ? 1 : 0) +
- (has_shadow && !sepparate_dc ? 1 : 0) - 1);
+ (has_shadow && !separate_dc ? 1 : 0) - 1);
expr += '(';
for (std::size_t i = 0; i < count; ++i) {
expr += Visit(operation[i]).AsFloat();
@@ -1105,7 +1105,7 @@ private:
expr += ", float(" + Visit(meta->array).AsInt() + ')';
}
if (has_shadow) {
- if (sepparate_dc) {
+ if (separate_dc) {
expr += "), " + Visit(meta->depth_compare).AsFloat();
} else {
expr += ", " + Visit(meta->depth_compare).AsFloat() + ')';