summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
authorhrydgard <hrydgard@gmail.com>2008-08-31 13:36:52 +0000
committerhrydgard <hrydgard@gmail.com>2008-08-31 13:36:52 +0000
commit09406d76c44d3a8efb1932b8d7f1345ae0e4c604 (patch)
tree3149bf6c83f7d010ce291b7df832660c6dd00db2 /Source/Core/VideoCommon
parentd9e129ae99bb11edfc59053c97c1d798e1ab4dad (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/Core/VideoCommon')
-rw-r--r--Source/Core/VideoCommon/Src/Fifo.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/Src/Fifo.cpp b/Source/Core/VideoCommon/Src/Fifo.cpp
index a9ddd16c08..bcb87aed4d 100644
--- a/Source/Core/VideoCommon/Src/Fifo.cpp
+++ b/Source/Core/VideoCommon/Src/Fifo.cpp
@@ -78,6 +78,11 @@ u8 FAKE_ReadFifo8()
return videoBuffer[readptr++];
}
+int FAKE_GetPosition()
+{
+ return readptr;
+}
+
u16 FAKE_ReadFifo16()
{
u16 val = Common::swap16(*(u16*)(videoBuffer+readptr));