changes to compile on gcc 4.7

This commit is contained in:
Eduardo Bart
2011-12-19 15:26:19 -02:00
parent 56a392f681
commit 2b25ffd86b
3 changed files with 19 additions and 4 deletions

View File

@@ -105,7 +105,7 @@ void PainterShaderProgram::draw(const CoordsBuffer& coordsBuffer, DrawMode drawM
}
bool mustDisableTexCoordsArray = false;
if(coordsBuffer.getTextureCoords() > 0) {
if(coordsBuffer.getTextureCoordsCount() > 0) {
enableAttributeArray(PainterShaderProgram::TEXTURE_COORDS_ATTR);
setAttributeArray(PainterShaderProgram::TEXTURE_COORDS_ATTR, coordsBuffer.getTextureCoords(), 2);
mustDisableTexCoordsArray = true;