engine: replace pool pointer by pool handle

This commit is contained in:
Alibek Omarov
2021-06-01 19:28:52 +03:00
committed by Alibek Omarov #SupportRMS
parent 43f1137565
commit 9313f7e80e
22 changed files with 96 additions and 65 deletions

View File

@@ -56,7 +56,7 @@ GNU General Public License for more details.
#define LM_SAMPLE_SIZE 16
extern byte *r_temppool;
extern poolhandle_t r_temppool;
#define BLOCK_SIZE tr.block_size // lightmap blocksize
#define BLOCK_SIZE_DEFAULT 128 // for keep backward compatibility

View File

@@ -49,7 +49,7 @@ cvar_t *tracergreen;
cvar_t *tracerblue;
cvar_t *traceralpha;
byte *r_temppool;
poolhandle_t r_temppool;
gl_globals_t tr;
glconfig_t glConfig;

View File

@@ -1734,7 +1734,7 @@ extern decal_t gDecalPool[MAX_RENDER_DECALS];
struct vbo_static_s
{
// quickly free all allocations on map change
byte *mempool;
poolhandle_t mempool;
// arays
vbodecaldata_t *decaldata; // array