minor bugfix - using more memory on sky than needed
This commit is contained in:
parent
a5b1f5c131
commit
249e7a626c
@ -221,7 +221,7 @@ bool Client::initgl()
|
|||||||
cerr << "Error creating quad attributes buffer" << endl;
|
cerr << "Error creating quad attributes buffer" << endl;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
vector<GLfloat> sky_attributes((NUM_SKY_STEPS + 1) * 2 * (3 * 3));
|
vector<GLfloat> sky_attributes((NUM_SKY_STEPS + 1) * 2 * (3 + 3));
|
||||||
for (int i = 0, idx = 0; i <= NUM_SKY_STEPS; i++)
|
for (int i = 0, idx = 0; i <= NUM_SKY_STEPS; i++)
|
||||||
{
|
{
|
||||||
GLfloat x = SKY_DIST * sin(M_PI_4 + i * M_PI_2 / NUM_SKY_STEPS);
|
GLfloat x = SKY_DIST * sin(M_PI_4 + i * M_PI_2 / NUM_SKY_STEPS);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user