suppress warnings

This commit is contained in:
Recep Aslantas
2024-04-01 01:46:25 +03:00
parent 35a12ed033
commit 00d2e8a4cf
3 changed files with 6 additions and 0 deletions

View File

@@ -1908,6 +1908,7 @@ TEST_IMPL(GLM_PREFIX, vec3_refract) {
r = GLM(vec3_refract)(v, N, eta, dest);
/* Expect bending towards the normal */
ASSERT(r == true);
ASSERT(dest[1] < -sqrtf(0.5f));
/* Glass to Water (eta = 1.5 / 1.33) */
@@ -1915,6 +1916,7 @@ TEST_IMPL(GLM_PREFIX, vec3_refract) {
r = GLM(vec3_refract)(v, N, eta, dest);
/* Expect bending towards the normal, less bending than air to glass */
ASSERT(r == true);
ASSERT(dest[1] < -sqrtf(0.5f));
/* Diamond to Air (eta = 2.42 / 1.0) */