Browse Source

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

BearishSun 8 years ago
parent
commit
860c1a1b62
1 changed files with 1 additions and 1 deletions
  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;