summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/VideoState.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoCommon/Src/VideoState.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/VideoState.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/Src/VideoState.cpp b/Source/Core/VideoCommon/Src/VideoState.cpp
index 1a23410fcc..b1c1ed0889 100644
--- a/Source/Core/VideoCommon/Src/VideoState.cpp
+++ b/Source/Core/VideoCommon/Src/VideoState.cpp
@@ -60,3 +60,14 @@ void VideoCommon_RunLoop(bool enable)
{
EmulatorState(enable);
}
+
+void VideoCommon_Init()
+{
+ memset(arraybases, 0, sizeof(arraybases));
+ memset(arraystrides, 0, sizeof(arraystrides));
+ memset(&MatrixIndexA, 0, sizeof(MatrixIndexA));
+ memset(&MatrixIndexB, 0, sizeof(MatrixIndexB));
+ memset(&g_VtxDesc, 0, sizeof(g_VtxDesc));
+ memset(g_VtxAttr, 0, sizeof(g_VtxAttr));
+ memset(texMem, 0, TMEM_SIZE);
+}