From 15f5fe78ad61f7bb0684b420f1d768a87e193a87 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Sat, 13 Jul 2024 22:40:07 -0500 Subject: [PATCH] Fix compiling without PATCH_STITCHING defined --- code/renderergl1/tr_curve.c | 6 +++--- code/renderergl2/tr_curve.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/code/renderergl1/tr_curve.c b/code/renderergl1/tr_curve.c index eaabba4615..c5c9d98d1f 100644 --- a/code/renderergl1/tr_curve.c +++ b/code/renderergl1/tr_curve.c @@ -306,13 +306,13 @@ srfGridMesh_t *R_CreateSurfaceGridMesh(int width, int height, grid->heightLodError = /*ri.Hunk_Alloc*/ ri.Malloc( height * 4 ); Com_Memcpy( grid->heightLodError, errorTable[1], height * 4 ); #else - grid = ri.Hunk_Alloc( size ); + grid = ri.Hunk_Alloc( size, h_low ); Com_Memset(grid, 0, size); - grid->widthLodError = ri.Hunk_Alloc( width * 4 ); + grid->widthLodError = ri.Hunk_Alloc( width * 4, h_low ); Com_Memcpy( grid->widthLodError, errorTable[0], width * 4 ); - grid->heightLodError = ri.Hunk_Alloc( height * 4 ); + grid->heightLodError = ri.Hunk_Alloc( height * 4, h_low ); Com_Memcpy( grid->heightLodError, errorTable[1], height * 4 ); #endif diff --git a/code/renderergl2/tr_curve.c b/code/renderergl2/tr_curve.c index d175789bbf..54910d04d2 100644 --- a/code/renderergl2/tr_curve.c +++ b/code/renderergl2/tr_curve.c @@ -388,10 +388,10 @@ void R_CreateSurfaceGridMesh(srfBspSurface_t *grid, int width, int height, grid->numVerts = (width * height); grid->verts = ri.Malloc(grid->numVerts * sizeof(srfVert_t)); #else - grid->widthLodError = ri.Hunk_Alloc( width * 4 ); + grid->widthLodError = ri.Hunk_Alloc( width * 4, h_low ); Com_Memcpy( grid->widthLodError, errorTable[0], width * 4 ); - grid->heightLodError = ri.Hunk_Alloc( height * 4 ); + grid->heightLodError = ri.Hunk_Alloc( height * 4, h_low ); Com_Memcpy( grid->heightLodError, errorTable[1], height * 4 ); grid->numIndexes = numIndexes;