summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexLoader_Normal.cpp
diff options
context:
space:
mode:
authorScott Mansell <phiren@gmail.com>2015-05-29 18:25:19 +1200
committerScott Mansell <phiren@gmail.com>2015-05-29 18:51:17 +1200
commit6d916762fb52a85aa086ef0cb6516cc63fbe775b (patch)
tree468488194c2fd28c59b7188c982cec87e5a1d3da /Source/Core/VideoCommon/VertexLoader_Normal.cpp
parent68d6f07b5c7251dce346f3eaf15eb637b869ab4b (diff)
Fix invalid pointer errors in Burnout 2.
Yet another story of games loading weird shit into registers. For some reason, Burnout 2 would (in rare situations) load invalid addresses into cp_state.array_bases. What would the real hardware do in this situation? Who knows, Burnout 2 doesn't actually enable the vertex array with the invalid address so nothing kinky happens. But dolphin tries to optimise things and starts using the address as soon as it is loaded into memory. This causes GetPointer (which is now much more vocal) to throw an error. The Fix: We don't call GetPointer until we are sure the vertex array has been enabled.
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoader_Normal.cpp')
0 files changed, 0 insertions, 0 deletions