Browse Source

Fix missing texture format

giagitom 2 years ago
parent
commit
48aaa13420
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/mol-gl/webgl/texture.ts

+ 1 - 0
src/mol-gl/webgl/texture.ts

@@ -123,6 +123,7 @@ function getByteCount(format: TextureFormat, type: TextureType, width: number, h
 function getFormatSize(format: TextureFormat) {
     switch (format) {
         case 'alpha': return 1;
+        case 'rg': return 2;
         case 'rgb': return 3;
         case 'rgba': return 4;
         case 'depth': return 4;