Fixed uint/int comparison warning.

This commit is contained in:
Robert Osfield
2007-09-13 10:10:35 +00:00
parent 0f135d6d35
commit b2fe3d475b

View File

@@ -103,7 +103,7 @@ int Texture2DArray::compare(const StateAttribute& sa) const
void Texture2DArray::setImage(unsigned int layer, Image* image)
{
// check if the layer exceeds the texture depth
if (layer >= _textureDepth)
if (static_cast<int>(layer) >= _textureDepth)
{
// print warning and do nothing
notify(WARN)<<"Warning: Texture2DArray::setImage(..) failed, the given layer number is bigger then the size of the texture array."<<std::endl;