Cleanup: Fix warnings in gpu_batch
Passing a const pointer to MEM_freeN/MEM_recallocN lead to C4090 'function': different 'const' qualifiers warnings with MSVC
This commit is contained in:
@@ -56,7 +56,7 @@ void GPU_batch_vao_cache_clear(GPUBatch *batch)
|
||||
(GPUShaderInterface *)batch->dynamic_vaos.interfaces[i], batch);
|
||||
}
|
||||
}
|
||||
MEM_freeN(batch->dynamic_vaos.interfaces);
|
||||
MEM_freeN((void *)batch->dynamic_vaos.interfaces);
|
||||
MEM_freeN(batch->dynamic_vaos.vao_ids);
|
||||
}
|
||||
else {
|
||||
@@ -285,7 +285,7 @@ static GLuint batch_vao_get(GPUBatch *batch)
|
||||
/* Not enough place, realloc the array. */
|
||||
i = batch->dynamic_vaos.count;
|
||||
batch->dynamic_vaos.count += GPU_BATCH_VAO_DYN_ALLOC_COUNT;
|
||||
batch->dynamic_vaos.interfaces = MEM_recallocN(batch->dynamic_vaos.interfaces,
|
||||
batch->dynamic_vaos.interfaces = MEM_recallocN((void *)batch->dynamic_vaos.interfaces,
|
||||
sizeof(GPUShaderInterface *) *
|
||||
batch->dynamic_vaos.count);
|
||||
batch->dynamic_vaos.vao_ids = MEM_recallocN(batch->dynamic_vaos.vao_ids,
|
||||
|
||||
Reference in New Issue
Block a user