mirror of
https://github.com/edubart/otclient.git
synced 2025-12-03 00:16:50 +01:00
changes to compile on gcc 4.7
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user