summaryrefslogtreecommitdiff
path: root/Source/Plugins/Plugin_VideoOGL/Src/NativeVertexFormat.cpp
diff options
context:
space:
mode:
authordonkopunchstania <donkopunchstania@gmail.com>2011-02-05 18:25:34 +0000
committerdonkopunchstania <donkopunchstania@gmail.com>2011-02-05 18:25:34 +0000
commitc36ed08cfcfdb94708d1b32081808f58eb87f1b1 (patch)
treeafbb99f30ac6dcf4ceca26a92ab93b9ed856acab /Source/Plugins/Plugin_VideoOGL/Src/NativeVertexFormat.cpp
parent98e24f587368272e867fe09c39fb11d4550e7e3e (diff)
Rework XF register loading a bit and change how registers are arranged in memory. This removes the assumption that all data for a viewport or projection matrix will be available when index 0 is loaded. Fixes issue 3688 and probably breaks old save states (sorry).
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7083 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Plugins/Plugin_VideoOGL/Src/NativeVertexFormat.cpp')
-rw-r--r--Source/Plugins/Plugin_VideoOGL/Src/NativeVertexFormat.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Plugins/Plugin_VideoOGL/Src/NativeVertexFormat.cpp b/Source/Plugins/Plugin_VideoOGL/Src/NativeVertexFormat.cpp
index f3e625fc2f..d81f406e73 100644
--- a/Source/Plugins/Plugin_VideoOGL/Src/NativeVertexFormat.cpp
+++ b/Source/Plugins/Plugin_VideoOGL/Src/NativeVertexFormat.cpp
@@ -291,10 +291,10 @@ void GLVertexFormat::EnableComponents(u32 components)
// TODO - Is this a good spot for this code?
if (g_ActiveConfig.bDisableLighting)
{
- for (int i = 0; i < xfregs.nNumChans; i++)
+ for (int i = 0; i < xfregs.numChan.numColorChans; i++)
{
- xfregs.colChans[i].alpha.enablelighting = false;
- xfregs.colChans[i].color.enablelighting = false;
+ xfregs.alpha[i].enablelighting = false;
+ xfregs.color[i].enablelighting = false;
}
}