summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_opengl
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-07-05 20:01:31 +0200
committerSubv <subv2112@gmail.com>2018-07-05 20:01:31 +0200
commit9f6a5660e8f138053ba03dc5f9b6bdf7950c3263 (patch)
treed0675a69f2aa6e23adb5388a51c6bb0e93e42868 /src/video_core/renderer_opengl
parentMerge pull request #624 from Subv/f2f_round (diff)
downloadyuzu-9f6a5660e8f138053ba03dc5f9b6bdf7950c3263.tar
yuzu-9f6a5660e8f138053ba03dc5f9b6bdf7950c3263.tar.gz
yuzu-9f6a5660e8f138053ba03dc5f9b6bdf7950c3263.tar.bz2
yuzu-9f6a5660e8f138053ba03dc5f9b6bdf7950c3263.tar.lz
yuzu-9f6a5660e8f138053ba03dc5f9b6bdf7950c3263.tar.xz
yuzu-9f6a5660e8f138053ba03dc5f9b6bdf7950c3263.tar.zst
yuzu-9f6a5660e8f138053ba03dc5f9b6bdf7950c3263.zip
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r--src/video_core/renderer_opengl/maxwell_to_gl.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/maxwell_to_gl.h b/src/video_core/renderer_opengl/maxwell_to_gl.h
index 6ce53bbd9..e19c3b280 100644
--- a/src/video_core/renderer_opengl/maxwell_to_gl.h
+++ b/src/video_core/renderer_opengl/maxwell_to_gl.h
@@ -211,20 +211,28 @@ inline GLenum SwizzleSource(Tegra::Texture::SwizzleSource source) {
inline GLenum ComparisonOp(Maxwell::ComparisonOp comparison) {
switch (comparison) {
case Maxwell::ComparisonOp::Never:
+ case Maxwell::ComparisonOp::NeverOld:
return GL_NEVER;
case Maxwell::ComparisonOp::Less:
+ case Maxwell::ComparisonOp::LessOld:
return GL_LESS;
case Maxwell::ComparisonOp::Equal:
+ case Maxwell::ComparisonOp::EqualOld:
return GL_EQUAL;
case Maxwell::ComparisonOp::LessEqual:
+ case Maxwell::ComparisonOp::LessEqualOld:
return GL_LEQUAL;
case Maxwell::ComparisonOp::Greater:
+ case Maxwell::ComparisonOp::GreaterOld:
return GL_GREATER;
case Maxwell::ComparisonOp::NotEqual:
+ case Maxwell::ComparisonOp::NotEqualOld:
return GL_NOTEQUAL;
case Maxwell::ComparisonOp::GreaterEqual:
+ case Maxwell::ComparisonOp::GreaterEqualOld:
return GL_GEQUAL;
case Maxwell::ComparisonOp::Always:
+ case Maxwell::ComparisonOp::AlwaysOld:
return GL_ALWAYS;
}
LOG_CRITICAL(Render_OpenGL, "Unimplemented comparison op={}", static_cast<u32>(comparison));