Commit e7fdb623 authored by Janis Born's avatar Janis Born

fix warnings in TextureDataPPMWriter

parent f02e3497
......@@ -51,11 +51,11 @@ bool ACGL::OpenGL::saveTextureDataToPPM(const ConstSharedTextureData& _textureDa
outFileStream << "\n";
// Now, write the image data in binary format
for(uint_t y = 0; y < _textureData->getHeight(); ++y)
for(GLsizei y = 0; y < _textureData->getHeight(); ++y)
{
for(uint_t x = 0; x < _textureData->getWidth(); ++x)
for(GLsizei x = 0; x < _textureData->getWidth(); ++x)
{
uint_t i = ((_textureData->getHeight() - y - 1) * _textureData->getWidth()) + x;
GLsizei i = ((_textureData->getHeight() - y - 1) * _textureData->getWidth()) + x;
outFileStream.put(_textureData->getData()[(3*i + 0) * getGLTypeSize(_textureData->getType())]);
outFileStream.put(_textureData->getData()[(3*i + 1) * getGLTypeSize(_textureData->getType())]);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment