Skip to content

Commit

Permalink
Fix compiling without PATCH_STITCHING defined
Browse files Browse the repository at this point in the history
  • Loading branch information
zturtleman committed Jul 14, 2024
1 parent e505e34 commit 15f5fe7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions code/renderergl1/tr_curve.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions code/renderergl2/tr_curve.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 15f5fe7

Please sign in to comment.