ParsePatch: On older patch types we get our tess info from different segments

This commit is contained in:
Marco Cawthorne 2022-03-28 20:56:37 -07:00
parent 2f2c8e88be
commit 70932b8eab
Signed by: eukara
GPG key ID: C196CD8BA993248A

View file

@ -283,8 +283,14 @@ void ParsePatch( qboolean onlyLights, qboolean fixedtess, qboolean extended ){
m.width = info[0]; m.width = info[0];
m.height = info[1]; m.height = info[1];
m.subdiv_x = fixedtess?info[2]:-1;
m.subdiv_y = fixedtess?info[3]:-1; if (extended) {
m.subdiv_x = fixedtess?info[2]:-1;
m.subdiv_y = fixedtess?info[3]:-1;
} else {
m.subdiv_x = fixedtess?info[0]:-1;
m.subdiv_y = fixedtess?info[1]:-1;
}
if (m.subdiv_x == 0) if (m.subdiv_x == 0)
m.subdiv_x = -1; m.subdiv_x = -1;