Browse Source

Initialize new VertexBuffer / IndexBuffer variable for completeness.

Lasse Öörni 9 years ago
parent
commit
0010226c0b
2 changed files with 4 additions and 2 deletions
  1. 2 1
      Source/Urho3D/Graphics/IndexBuffer.cpp
  2. 2 1
      Source/Urho3D/Graphics/VertexBuffer.cpp

+ 2 - 1
Source/Urho3D/Graphics/IndexBuffer.cpp

@@ -43,7 +43,8 @@ IndexBuffer::IndexBuffer(Context* context, bool forceHeadless) :
     lockCount_(0),
     lockScratchData_(0),
     shadowed_(false),
-    dynamic_(false)
+    dynamic_(false),
+    discardLock_(false)
 {
     // Force shadowing mode if graphics subsystem does not exist
     if (!graphics_)

+ 2 - 1
Source/Urho3D/Graphics/VertexBuffer.cpp

@@ -43,7 +43,8 @@ VertexBuffer::VertexBuffer(Context* context, bool forceHeadless) :
     lockCount_(0),
     lockScratchData_(0),
     shadowed_(false),
-    dynamic_(false)
+    dynamic_(false),
+    discardLock_(false)
 {
     UpdateOffsets();