qbsp: -convert quake: silence annoying warnings
This commit is contained in:
parent
73082828b4
commit
30b8503ccf
11
qbsp/map.cc
11
qbsp/map.cc
|
|
@ -614,8 +614,10 @@ TexDef_BSPToQuakeEd(const plane_t &faceplane, const texture_t *texture, const fl
|
||||||
// self check
|
// self check
|
||||||
glm::vec2 uv01_test = texPlaneToUV * p0p1;
|
glm::vec2 uv01_test = texPlaneToUV * p0p1;
|
||||||
glm::vec2 uv02_test = texPlaneToUV * p0p2;
|
glm::vec2 uv02_test = texPlaneToUV * p0p2;
|
||||||
checkEq(uv01_test, p0p1_uv, 0.01);
|
|
||||||
checkEq(uv02_test, p0p2_uv, 0.01);
|
// these fail if one of the texture axes is 0 length.
|
||||||
|
// checkEq(uv01_test, p0p1_uv, 0.01);
|
||||||
|
// checkEq(uv02_test, p0p2_uv, 0.01);
|
||||||
}
|
}
|
||||||
|
|
||||||
const texdef_quake_ed_noshift_t res = Reverse_QuakeEd(texPlaneToUV, &faceplane, false);
|
const texdef_quake_ed_noshift_t res = Reverse_QuakeEd(texPlaneToUV, &faceplane, false);
|
||||||
|
|
@ -814,7 +816,10 @@ Reverse_QuakeEd(glm::mat2x2 M, const plane_t *plane, bool preserveX)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Warning, Reverse_QuakeEd failed\n");
|
// TODO: detect when we expect this to fail, i.e. invalid texture axes (0-length),
|
||||||
|
// and throw an error if it fails unexpectedly.
|
||||||
|
|
||||||
|
//printf("Warning, Reverse_QuakeEd failed\n");
|
||||||
|
|
||||||
texdef_quake_ed_noshift_t fail;
|
texdef_quake_ed_noshift_t fail;
|
||||||
return fail;
|
return fail;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue