瀏覽代碼

Fix Shader member variable numVariations_ being uninitialized. Closes #585.

Lasse Öörni 11 年之前
父節點
當前提交
c8f82c1327
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Source/Engine/Graphics/Shader.cpp

+ 2 - 1
Source/Engine/Graphics/Shader.cpp

@@ -65,7 +65,8 @@ void CommentOutFunction(String& code, const String& signature)
 
 
 Shader::Shader(Context* context) :
 Shader::Shader(Context* context) :
     Resource(context),
     Resource(context),
-    timeStamp_(0)
+    timeStamp_(0),
+    numVariations_(0)
 {
 {
     RefreshMemoryUse();
     RefreshMemoryUse();
 }
 }