- again M$ compiler madness, absolute insanity, its why I love gcc and hate vc
This commit is contained in:
parent
49d7f5f036
commit
bcc82a381d
|
@ -2752,8 +2752,11 @@ void Renderer::renderMinimap(){
|
|||
glEnable(GL_BLEND);
|
||||
|
||||
const int itemCount = attackEffects->getWaterSplashCount() * 12;
|
||||
Vec2f vertices[itemCount];
|
||||
Vec4f colors[itemCount];
|
||||
if(itemCount > 0) {
|
||||
vector<Vec2f> vertices;
|
||||
vertices.resize(itemCount);
|
||||
vector<Vec4f> colors;
|
||||
colors.resize(itemCount);
|
||||
|
||||
// draw attack alarm
|
||||
int vertexIndex = 0;
|
||||
|
@ -2854,6 +2857,7 @@ void Renderer::renderMinimap(){
|
|||
glDisableClientState(GL_COLOR_ARRAY);
|
||||
glDisableClientState(GL_VERTEX_ARRAY);
|
||||
}
|
||||
}
|
||||
|
||||
glDisable(GL_BLEND);
|
||||
|
||||
|
@ -2861,8 +2865,10 @@ void Renderer::renderMinimap(){
|
|||
VisibleQuadContainerCache &qCache = getQuadCache();
|
||||
if(qCache.visibleUnitList.size() > 0) {
|
||||
uint32 unitIdx=0;
|
||||
Vec2f unit_vertices[qCache.visibleUnitList.size()*4];
|
||||
Vec3f unit_colors[qCache.visibleUnitList.size()*4];
|
||||
vector<Vec2f> unit_vertices;
|
||||
unit_vertices.resize(qCache.visibleUnitList.size()*4);
|
||||
vector<Vec3f> unit_colors;
|
||||
unit_colors.resize(qCache.visibleUnitList.size()*4);
|
||||
|
||||
for(int visibleIndex = 0;
|
||||
visibleIndex < qCache.visibleUnitList.size(); ++visibleIndex) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user