diff options
| author | Sonicadvance1 <sonicadvance1@gmail.com> | 2008-09-29 21:22:44 +0000 |
|---|---|---|
| committer | Sonicadvance1 <sonicadvance1@gmail.com> | 2008-09-29 21:22:44 +0000 |
| commit | d98c60a0da544cfbe65567d58b088503c84c4e4e (patch) | |
| tree | 1dc194856c084147a451c4b668f79645c88842eb /Source/Plugins/Plugin_VideoOGL/Src/OpcodeDecoding.cpp | |
| parent | 3d25b525ddb3b30c45c07704347027d123bf00d4 (diff) | |
Fix compiling in Linux for the most part
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@732 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Plugins/Plugin_VideoOGL/Src/OpcodeDecoding.cpp')
| -rw-r--r-- | Source/Plugins/Plugin_VideoOGL/Src/OpcodeDecoding.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Plugins/Plugin_VideoOGL/Src/OpcodeDecoding.cpp b/Source/Plugins/Plugin_VideoOGL/Src/OpcodeDecoding.cpp index 9473436ee7..08d21b2cb1 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/OpcodeDecoding.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/OpcodeDecoding.cpp @@ -83,8 +83,8 @@ void ExecuteDisplayList(u32 address, u32 size) #ifdef DATAREADER_INLINE
u32 old_pVideoData = g_pVideoData;
- const u32 startAddress = (u32)Memory_GetPtr(address);
- g_pVideoData = startAddress;
+ const u8* startAddress = Memory_GetPtr(address);
+ g_pVideoData = *startAddress;
#endif
// temporarily swap dl and non-dl(small "hack" for the stats)
Xchg(stats.thisFrame.numDLPrims, stats.thisFrame.numPrims);
@@ -93,7 +93,7 @@ void ExecuteDisplayList(u32 address, u32 size) Xchg(stats.thisFrame.numBPLoadsInDL, stats.thisFrame.numBPLoads);
#ifdef DATAREADER_INLINE
- while((g_pVideoData - startAddress) < size)
+ while((g_pVideoData - *startAddress) < size)
#else
while((memoryReader.GetReadAddress() - address) < size)
#endif
|
