matdbg: fix bug in selectMaterial().

This commit is contained in:
Philip Rideout
2021-07-21 10:49:13 -07:00
committed by Mathias Agopian
parent 7b398c01f6
commit 27529730ca
+2 -2
View File
@@ -389,8 +389,8 @@ function selectMaterial(matid, selectFirstShader) {
const mat = gMaterialDatabase[gCurrentMaterial];
const selection = { matid };
if (mat.opengl.length > 0) selection.glindex = 0;
else if (mat.vkindex.length > 0) selection.vkindex = 0;
else if (mat.metalindex.length > 0) selection.metalindex = 0;
else if (mat.vulkan.length > 0) selection.vkindex = 0;
else if (mat.metal.length > 0) selection.metalindex = 0;
selectShader(selection);
}
}