mirror of
https://github.com/ioquake/ioq3.git
synced 2025-04-20 07:20:55 +00:00
Fix compiling without PATCH_STITCHING defined
This commit is contained in:
parent
e505e34d79
commit
15f5fe78ad
2 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue