summaryrefslogtreecommitdiff
path: root/Source/Plugins/Plugin_VideoOGL/Src/NativeVertexFormat.cpp
diff options
context:
space:
mode:
authorpierre <pierre@pirsoft.de>2011-02-13 19:05:24 +0000
committerpierre <pierre@pirsoft.de>2011-02-13 19:05:24 +0000
commit7a7a71d3fa09faaab16d975a4ac8b61744e76e24 (patch)
treee586a5c2433a4edb7cbb6a6f702cf652bc34ec3c /Source/Plugins/Plugin_VideoOGL/Src/NativeVertexFormat.cpp
parentbe193088cac02d969b5ea2124fde76148b0480e9 (diff)
VideoOGL: reinitialize some more global variables,
so VideoOGL always is in the same state when starting a guest program. Also constify the RasterFont, while we are at it. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7166 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Plugins/Plugin_VideoOGL/Src/NativeVertexFormat.cpp')
-rw-r--r--Source/Plugins/Plugin_VideoOGL/Src/NativeVertexFormat.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Plugins/Plugin_VideoOGL/Src/NativeVertexFormat.cpp b/Source/Plugins/Plugin_VideoOGL/Src/NativeVertexFormat.cpp
index d81f406e73..ebdc690d72 100644
--- a/Source/Plugins/Plugin_VideoOGL/Src/NativeVertexFormat.cpp
+++ b/Source/Plugins/Plugin_VideoOGL/Src/NativeVertexFormat.cpp
@@ -104,6 +104,8 @@ inline GLuint VarToGL(VarType t)
void GLVertexFormat::Initialize(const PortableVertexDeclaration &_vtx_decl)
{
+ s_prevcomponents = 0;
+
vertex_stride = _vtx_decl.stride;
using namespace Gen;