Skip to content
Snippets Groups Projects
Commit 48aaa134 authored by giagitom's avatar giagitom
Browse files

Fix missing texture format

parent d2434cf9
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment