Browse Source

Use GL_TRUE when setting color_mask

nce_cpp
Albin Bernhardsson 9 years ago
parent
commit
0a2259ad11
  1. 8
      src/video_core/renderer_opengl/gl_rasterizer.cpp

8
src/video_core/renderer_opengl/gl_rasterizer.cpp

@ -875,10 +875,10 @@ bool RasterizerOpenGL::AccelerateFill(const GPU::Regs::MemoryFillConfig& config)
}
}
cur_state.color_mask.red_enabled = true;
cur_state.color_mask.green_enabled = true;
cur_state.color_mask.blue_enabled = true;
cur_state.color_mask.alpha_enabled = true;
cur_state.color_mask.red_enabled = GL_TRUE;
cur_state.color_mask.green_enabled = GL_TRUE;
cur_state.color_mask.blue_enabled = GL_TRUE;
cur_state.color_mask.alpha_enabled = GL_TRUE;
cur_state.Apply();
glClearBufferfv(GL_COLOR, 0, color_values);
} else if (dst_type == SurfaceType::Depth) {

Loading…
Cancel
Save