3
0
Fork 0
forked from suyu/suyu

Merge pull request #4957 from ReinUsesLisp/alpha-test-rt

gl_rasterizer: Remove warning of untested alpha test
This commit is contained in:
LC 2020-11-20 21:19:06 -05:00 committed by GitHub
commit d88baa746b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1579,10 +1579,6 @@ void RasterizerOpenGL::SyncAlphaTest() {
flags[Dirty::AlphaTest] = false; flags[Dirty::AlphaTest] = false;
const auto& regs = maxwell3d.regs; const auto& regs = maxwell3d.regs;
if (regs.alpha_test_enabled && regs.rt_control.count > 1) {
LOG_WARNING(Render_OpenGL, "Alpha testing with more than one render target is not tested");
}
if (regs.alpha_test_enabled) { if (regs.alpha_test_enabled) {
glEnable(GL_ALPHA_TEST); glEnable(GL_ALPHA_TEST);
glAlphaFunc(MaxwellToGL::ComparisonOp(regs.alpha_test_func), regs.alpha_test_ref); glAlphaFunc(MaxwellToGL::ComparisonOp(regs.alpha_test_func), regs.alpha_test_ref);