Преглед изворни кода

WIP: Getting OpenGL up to date
- Fixing omnidirectional shadow rendering

BearishSun пре 8 година
родитељ
комит
860c1a1b62
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Source/BansheeGLRenderAPI/BsGLRenderTexture.cpp

+ 1 - 1
Source/BansheeGLRenderAPI/BsGLRenderTexture.cpp

@@ -105,7 +105,7 @@ namespace bs
 			GLTexture* glDepthStencilTexture = static_cast<GLTexture*>(mDesc.depthStencilSurface.texture.get());
 			SPtr<GLPixelBuffer> depthStencilBuffer = nullptr;
 
-			bool allLayers = false;
+			bool allLayers = true;
 			if (mDepthStencilSurface->getNumArraySlices() == 1) // Binding a single texture layer
 				allLayers = glDepthStencilTexture->getProperties().getNumFaces() == 1;