OpenGL2: Preallocate grid surfaces like other BSP surfaces.

This commit is contained in:
SmileTheory 2016-08-14 22:22:20 -07:00
parent 1cf0b21cda
commit fe8ac838e2
3 changed files with 65 additions and 88 deletions

View file

@ -2152,10 +2152,10 @@ CURVE TESSELATION
#define PATCH_STITCHING
srfBspSurface_t *R_SubdividePatchToGrid( int width, int height,
void R_SubdividePatchToGrid( srfBspSurface_t *grid, int width, int height,
srfVert_t points[MAX_PATCH_SIZE*MAX_PATCH_SIZE] );
srfBspSurface_t *R_GridInsertColumn( srfBspSurface_t *grid, int column, int row, vec3_t point, float loderror );
srfBspSurface_t *R_GridInsertRow( srfBspSurface_t *grid, int row, int column, vec3_t point, float loderror );
void R_GridInsertColumn( srfBspSurface_t *grid, int column, int row, vec3_t point, float loderror );
void R_GridInsertRow( srfBspSurface_t *grid, int row, int column, vec3_t point, float loderror );
void R_FreeSurfaceGridMesh( srfBspSurface_t *grid );
/*