Explorar o código

fix spec of emptyDepthTexture in Renderer

Alexander Rose %!s(int64=3) %!d(string=hai) anos
pai
achega
3284f13fc6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/mol-gl/renderer.ts

+ 1 - 1
src/mol-gl/renderer.ts

@@ -152,7 +152,7 @@ namespace Renderer {
 
         let transparentBackground = false;
 
-        const emptyDepthTexture = ctx.resources.texture('image-depth', 'depth', 'ushort', 'nearest');
+        const emptyDepthTexture = ctx.resources.texture('image-uint8', 'rgba', 'ubyte', 'nearest');
         const sharedTexturesList: Textures = [
             ['tDepth', emptyDepthTexture]
         ];