mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Properly check if the number of tris is sufficient for tessellation
This commit is contained in:
parent
94aaeac194
commit
ab80045329
1 changed files with 3 additions and 1 deletions
|
@ -998,7 +998,9 @@ static void R_DoTriSplitting()
|
|||
//
|
||||
// make sure there are sufficient number of tris
|
||||
//
|
||||
if (g_tri.nFree < 14 || g_vert.nFree < 14) {
|
||||
// Fixed in OPM
|
||||
// Properly check the number of tris, which is double the number of verts
|
||||
if (g_tri.nFree < 14*2 || g_vert.nFree < 14) {
|
||||
ri.Printf(PRINT_DEVELOPER, "WARNING: aborting terrain tessellation -- insufficient tris\n");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue