nv2a: Fix assert when setting fog gen mode to fog_x

This commit is contained in:
Erik Abair 2025-04-08 11:03:00 -07:00 committed by mborgerson
parent f82c6865fc
commit ebec5e3028
2 changed files with 1 additions and 3 deletions

View File

@ -414,7 +414,7 @@ GLSL_DEFINE(materialEmissionColor, GLSL_LTCTXA(NV_IGRAPH_XF_LTCTXA_CM_COL) ".xyz
mstring_append(body, " float fogDistance = fogCoord;\n");
break;
default:
assert(false);
assert(!"Invalid foggen mode");
break;
}

View File

@ -55,8 +55,6 @@ enum VshFoggen {
FOGGEN_RADIAL,
FOGGEN_PLANAR,
FOGGEN_ABS_PLANAR,
FOGGEN_ERROR4,
FOGGEN_ERROR5,
FOGGEN_FOG_X
};