summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/VideoState.cpp
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2012-03-22 15:21:52 +0100
committerPierre Bourdon <delroth@gmail.com>2012-03-22 15:21:52 +0100
commit0ffc12bbfd6ac44b3030ec30f400a58e951087b7 (patch)
tree53a6fac9ec79bcd71fe2046d8fb579478da12fd2 /Source/Core/VideoCommon/Src/VideoState.cpp
parent006923e871e496a7c6c0fe9ba76da4ee939ce14e (diff)
parentd95e31af3f779bfa3141047e8b6275e1fd2e4bbb (diff)
Merge branch 'master' into zcomploc-support
Conflicts: Source/Core/VideoCommon/Src/PixelShaderGen.cpp
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);
+}