diff options
| author | Ryan Houdek <Sonicadvance1@gmail.com> | 2013-04-13 00:58:37 -0500 |
|---|---|---|
| committer | Ryan Houdek <Sonicadvance1@gmail.com> | 2013-04-13 00:58:37 -0500 |
| commit | 605bbf5ca833399c1a6aad2a3b0e21cb4c910d11 (patch) | |
| tree | 53acc60e471e39f234af37ac56c4ce39029eb60b /Source/Plugins/Plugin_VideoSoftware/Src/SWmain.cpp | |
| parent | 2444fdbbdd4310f0e012b661d258b20a4eaf4800 (diff) | |
| parent | 48927c17d252223ffdaa5cfb34aa850eb6ee6ee1 (diff) | |
Merge remote-tracking branch 'origin/master' into Android-trash
Diffstat (limited to 'Source/Plugins/Plugin_VideoSoftware/Src/SWmain.cpp')
| -rw-r--r-- | Source/Plugins/Plugin_VideoSoftware/Src/SWmain.cpp | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/Source/Plugins/Plugin_VideoSoftware/Src/SWmain.cpp b/Source/Plugins/Plugin_VideoSoftware/Src/SWmain.cpp index b524ded329..e9511f1c02 100644 --- a/Source/Plugins/Plugin_VideoSoftware/Src/SWmain.cpp +++ b/Source/Plugins/Plugin_VideoSoftware/Src/SWmain.cpp @@ -43,6 +43,7 @@ #include "SWVertexLoader.h" #include "SWStatistics.h" +#include "OnScreenDisplay.h" #define VSYNC_ENABLED 0 namespace SW @@ -81,6 +82,8 @@ bool VideoSoftware::Initialize(void *&window_handle) INFO_LOG(VIDEO, "%s", "SWRenderer::Create failed\n"); return false; } + // Do our OSD callbacks + OSD::DoCallbacks(OSD::OSD_INIT); InitBPMemory(); InitXFMemory(); @@ -111,15 +114,15 @@ void VideoSoftware::DoState(PointerWrap& p) OpcodeDecoder::DoState(p); Clipper::DoState(p); p.Do(swxfregs); - p.Do(bpmem); - p.Do(swstats); + p.Do(bpmem); + p.DoPOD(swstats); // CP Memory - p.DoArray(arraybases, 16); - p.DoArray(arraystrides, 16); - p.Do(MatrixIndexA); - p.Do(MatrixIndexB); - p.Do(g_VtxDesc.Hex); + p.DoArray(arraybases, 16); + p.DoArray(arraystrides, 16); + p.Do(MatrixIndexA); + p.Do(MatrixIndexB); + p.Do(g_VtxDesc.Hex); p.DoArray(g_VtxAttr, 8); p.DoMarker("CP Memory"); @@ -162,7 +165,10 @@ void VideoSoftware::Shutdown() // TODO: should be in Video_Cleanup HwRasterizer::Shutdown(); SWRenderer::Shutdown(); - + + // Do our OSD callbacks + OSD::DoCallbacks(OSD::OSD_SHUTDOWN); + GLInterface->Shutdown(); } |
