diff options
| author | Ryan Houdek <Sonicadvance1@gmail.com> | 2013-04-13 00:48:53 -0500 |
|---|---|---|
| committer | Ryan Houdek <Sonicadvance1@gmail.com> | 2013-04-13 00:48:53 -0500 |
| commit | 39a7096711fa991e78fe297960137941b52120eb (patch) | |
| tree | d007afb5e0c44cc4e7b37e009cd17cb85e81f81d /Source/Plugins/Plugin_VideoSoftware/Src/SWRenderer.cpp | |
| parent | ccf1cee2032fa0b419541e795c5b414e91ff00b1 (diff) | |
Extend our OSD class to support callbacks on init, onframe, and shutdown.
Diffstat (limited to 'Source/Plugins/Plugin_VideoSoftware/Src/SWRenderer.cpp')
| -rw-r--r-- | Source/Plugins/Plugin_VideoSoftware/Src/SWRenderer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Plugins/Plugin_VideoSoftware/Src/SWRenderer.cpp b/Source/Plugins/Plugin_VideoSoftware/Src/SWRenderer.cpp index 2151a0647d..65112c9a36 100644 --- a/Source/Plugins/Plugin_VideoSoftware/Src/SWRenderer.cpp +++ b/Source/Plugins/Plugin_VideoSoftware/Src/SWRenderer.cpp @@ -23,6 +23,8 @@ #include "SWRenderer.h" #include "SWStatistics.h" +#include "OnScreenDisplay.h" + static GLuint s_RenderTarget = 0; static GLint attr_pos = -1, attr_tex = -1; @@ -181,6 +183,9 @@ void SWRenderer::DrawTexture(u8 *texture, int width, int height) void SWRenderer::SwapBuffer() { + // Do our OSD callbacks + OSD::DoCallbacks(OSD::OSD_ONFRAME); + DrawDebugText(); glFlush(); |
