gl_rasterizer: Do not try to clear when no framebuffer is configured.

This commit is contained in:
bunnei
2018-08-21 17:57:50 -04:00
parent 4dc8d77e25
commit c78cd6f399

View File

@@ -406,7 +406,13 @@ void RasterizerOpenGL::Clear() {
state.stencil.test_func = GL_ALWAYS;
}
if (!use_color_fb && !use_depth_fb) {
// No color surface or depth/stencil enabled
return;
}
if (clear_mask == 0) {
// No clear mask is enabled
return;
}