Chunk block allocation is now larger in size
This commit is contained in:
@@ -46,10 +46,12 @@ chunk* allocate_chunk
|
||||
{
|
||||
// Allocate memory to hold the enclosed region's vertex arrays.
|
||||
|
||||
float* target = (float*)malloc(x_res * y_res * z_res * 4 * 2 * 2 * 3 * 7 * sizeof(float));
|
||||
float* target = (float*)malloc(x_res * y_res * z_res * 6 * 2 * 2 * 3 * 7 * sizeof(float));
|
||||
|
||||
float* water_target = (float*)malloc(x_res * y_res * z_res * 4 * 2 * 2 * 3 * 7 * sizeof(float));
|
||||
|
||||
int Time_On_End = SDL_GetTicks();
|
||||
|
||||
if (!target || !water_target)
|
||||
{
|
||||
std::cout << "Could not allocate enough memory for a new chunk." << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user