ソースを参照

Fixed missing OpenGL screen output due to uninitialized memory.

Lasse Öörni 13 年 前
コミット
89fe02c9cd
1 ファイル変更1 行追加0 行削除
  1. 1 0
      Engine/Graphics/OpenGL/OGLGraphics.cpp

+ 1 - 0
Engine/Graphics/OpenGL/OGLGraphics.cpp

@@ -150,6 +150,7 @@ Graphics::Graphics(Context* context_) :
     shaderParameterFrame_(0)
     shaderParameterFrame_(0)
 {
 {
     SetTextureUnitMappings();
     SetTextureUnitMappings();
+    ResetCachedState();
     
     
     // If first instance in this process, initialize SDL under static mutex. Note that Graphics subsystem will also be in charge
     // If first instance in this process, initialize SDL under static mutex. Note that Graphics subsystem will also be in charge
     // of shutting down SDL as a whole, so it should be the last SDL-using subsystem (Audio and Input also use SDL) alive
     // of shutting down SDL as a whole, so it should be the last SDL-using subsystem (Audio and Input also use SDL) alive