Explorar o código

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

BearishSun %!s(int64=8) %!d(string=hai) anos
pai
achega
860c1a1b62
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;