DX9/DX11: Fix and simplify ClearScreen. At least fixes a small glitch in Super Mario...
commitd37f30debf6c307dcfa14ffd5485c20ee4a6caf2
authorNeoBrainX <NeoBrainX@8ced0084-cf51-0410-be5f-012b33b47a6e>
Mon, 1 Nov 2010 19:13:50 +0000 (1 19:13 +0000)
committerNeoBrainX <NeoBrainX@8ced0084-cf51-0410-be5f-012b33b47a6e>
Mon, 1 Nov 2010 19:13:50 +0000 (1 19:13 +0000)
treefa2dcdb08208136228b92921e462fdfa1ee8164d
parentfedba6c4f83b1d061b05da549cfc7c2364119373
DX9/DX11: Fix and simplify ClearScreen. At least fixes a small glitch in Super Mario Sunshine with DX11, might fix several other things as well in both plugins though (so test this, please!)
Explanation of this commit: We only have to care about four BP registers in ClearScreen, the remaining API state should be reset. The colorEnable and alphaEnable parameters are obsolete, for some reason directly using them caused the SMS glitch with DX11 (because of that bpmem.zcontrol.pixel_format == PIXELFMT_RGBA6_Z24 check in BPFunctions.cpp, is this one actually correct?)

The comment in BPFunctions.cpp was at least misleading (if not even wrong), so I removed it.

For what it's worth, someone needs to port this to the OpenGL and Software plugins (unless they're doing this properly already)

git-svn-id: http://dolphin-emu.googlecode.com/svn/trunk@6327 8ced0084-cf51-0410-be5f-012b33b47a6e
Source/Plugins/Plugin_VideoDX11/Src/BPFunctions.cpp
Source/Plugins/Plugin_VideoDX11/Src/Render.cpp
Source/Plugins/Plugin_VideoDX9/Src/BPFunctions.cpp
Source/Plugins/Plugin_VideoDX9/Src/Render.cpp
Source/Plugins/Plugin_VideoOGL/Src/BPFunctions.cpp