Removed C99 variable-length array to fix MSVC errors
This commit is contained in:
parent
09dcd224c8
commit
69ce5bea22
|
|
@ -49,8 +49,8 @@ int main()
|
|||
int colorLoc = GetShaderLocation(shader, "color");
|
||||
|
||||
// Initialize the vertex buffer for the particles and assign each particle random values
|
||||
const size_t particleCount = 10000;
|
||||
struct { float x, y, period; } particles[particleCount];
|
||||
struct { float x, y, period; } particles[10000];
|
||||
const size_t particleCount = sizeof(particles) / sizeof(particles[0]);
|
||||
for (size_t i = 0; i < particleCount; i++)
|
||||
{
|
||||
particles[i].x = GetRandomValue(20, screenWidth - 20);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user