Fix terrain tessellation when there is insufficient tris in renderergl2

This commit is contained in:
smallmodel 2025-01-19 17:32:14 +01:00
parent 1f599e62c6
commit 83caae7586
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -998,7 +998,7 @@ static void R_DoTriSplitting()
//
// make sure there are sufficient number of tris
//
if (g_tri.nFree < 14 || g_vert.nFree < 14) {
if (g_tri.nFree < 14*2 || g_vert.nFree < 14) {
ri.Printf(PRINT_DEVELOPER, "WARNING: aborting terrain tessellation -- insufficient tris\n");
return;
}