diff options
author | bunnei <bunneidev@gmail.com> | 2015-05-23 05:13:09 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2015-05-31 07:27:49 +0200 |
commit | 875bd2976689a87930e0a068b903a8da38dcd3e3 (patch) | |
tree | 56e604a1ca4d9d7344fd2466743ee0d3d83d2ee6 /src/video_core | |
parent | Merge pull request #830 from SeannyM/qt-noborder (diff) | |
download | yuzu-875bd2976689a87930e0a068b903a8da38dcd3e3.tar yuzu-875bd2976689a87930e0a068b903a8da38dcd3e3.tar.gz yuzu-875bd2976689a87930e0a068b903a8da38dcd3e3.tar.bz2 yuzu-875bd2976689a87930e0a068b903a8da38dcd3e3.tar.lz yuzu-875bd2976689a87930e0a068b903a8da38dcd3e3.tar.xz yuzu-875bd2976689a87930e0a068b903a8da38dcd3e3.tar.zst yuzu-875bd2976689a87930e0a068b903a8da38dcd3e3.zip |
Diffstat (limited to 'src/video_core')
-rw-r--r-- | src/video_core/vertex_shader.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/video_core/vertex_shader.cpp b/src/video_core/vertex_shader.cpp index 4ebb42429..582712bde 100644 --- a/src/video_core/vertex_shader.cpp +++ b/src/video_core/vertex_shader.cpp @@ -208,6 +208,15 @@ static void ProcessShaderCode(VertexShaderState& state) { } break; + case OpCode::Id::MIN: + for (int i = 0; i < 4; ++i) { + if (!swizzle.DestComponentEnabled(i)) + continue; + + dest[i] = std::min(src1[i], src2[i]); + } + break; + case OpCode::Id::DP3: case OpCode::Id::DP4: { |