Bladeren bron

Fixed missing OpenGL screen output due to uninitialized memory.

Lasse Öörni 13 jaren geleden
bovenliggende
commit
89fe02c9cd
1 gewijzigde bestanden met toevoegingen van 1 en 0 verwijderingen
  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)
 {
     SetTextureUnitMappings();
+    ResetCachedState();
     
     // 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