diff options
| author | hrydgard <hrydgard@gmail.com> | 2008-08-31 13:36:52 +0000 |
|---|---|---|
| committer | hrydgard <hrydgard@gmail.com> | 2008-08-31 13:36:52 +0000 |
| commit | 09406d76c44d3a8efb1932b8d7f1345ae0e4c604 (patch) | |
| tree | 3149bf6c83f7d010ce291b7df832660c6dd00db2 /Source/Plugins/Plugin_VideoDX9/Src/OpcodeDecoding.cpp | |
| parent | d9e129ae99bb11edfc59053c97c1d798e1ab4dad (diff) | |
Fix/workaround at least one class of buffer underruns in the GL plugin. Fix some bad deletes (instead of delete []). etc.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@404 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Plugins/Plugin_VideoDX9/Src/OpcodeDecoding.cpp')
| -rw-r--r-- | Source/Plugins/Plugin_VideoDX9/Src/OpcodeDecoding.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/Source/Plugins/Plugin_VideoDX9/Src/OpcodeDecoding.cpp b/Source/Plugins/Plugin_VideoDX9/Src/OpcodeDecoding.cpp index e078a7b453..3565f80ca2 100644 --- a/Source/Plugins/Plugin_VideoDX9/Src/OpcodeDecoding.cpp +++ b/Source/Plugins/Plugin_VideoDX9/Src/OpcodeDecoding.cpp @@ -97,9 +97,9 @@ bool FifoCommandRunnable(void) {
u32 iBufferSize = FAKE_GetFifoSize();
if (iBufferSize == 0)
- return false;
+ return false; // can't peek
- u8 Cmd = PeekFifo8(0);
+ u8 Cmd = PeekFifo8(0);
u32 iCommandSize = 0;
switch(Cmd)
@@ -362,12 +362,6 @@ void OpcodeDecoder_Shutdown() void OpcodeDecoder_Run()
{
- // just a small check
- if (g_pDataReader != &g_fifoReader)
- {
- MessageBox(NULL, "very strange", "video-plugin", MB_OK);
- }
-
DVSTARTPROFILE();
while (FifoCommandRunnable())
|
