aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/engines
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-07-02 19:09:03 -0500
committerSubv <subv2112@gmail.com>2018-07-03 16:56:47 -0500
commitc1811ed3d1805e0d0ab536762692e7c0e80f14dc (patch)
tree620e2bd9d9ce15cbc0faaf3bc634ea00824c57b4 /src/video_core/engines
parentbe51120d237cb551fae90fbfaebda41669c40403 (diff)
GPU: Support clears that don't clear the color buffer.
Diffstat (limited to 'src/video_core/engines')
-rw-r--r--src/video_core/engines/maxwell_3d.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/video_core/engines/maxwell_3d.cpp b/src/video_core/engines/maxwell_3d.cpp
index 78f1c0ea7..4d1a79c55 100644
--- a/src/video_core/engines/maxwell_3d.cpp
+++ b/src/video_core/engines/maxwell_3d.cpp
@@ -420,8 +420,9 @@ bool Maxwell3D::IsShaderStageEnabled(Regs::ShaderStage stage) const {
}
void Maxwell3D::ProcessClearBuffers() {
- ASSERT(regs.clear_buffers.R && regs.clear_buffers.G && regs.clear_buffers.B &&
- regs.clear_buffers.A);
+ ASSERT(regs.clear_buffers.R == regs.clear_buffers.G &&
+ regs.clear_buffers.R == regs.clear_buffers.B &&
+ regs.clear_buffers.R == regs.clear_buffers.A);
VideoCore::g_renderer->Rasterizer()->Clear();
}