Преглед на файлове

Fix missing texture format

giagitom преди 2 години
родител
ревизия
48aaa13420
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  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;