Fixed bug in texture creation (was a mistake in last commit)

This commit is contained in:
Laurent Gomila 2012-04-01 10:01:53 +02:00
parent 17e6a45a90
commit 69f387de22

View File

@ -101,9 +101,9 @@ Texture::~Texture()
bool Texture::create(unsigned int width, unsigned int height)
{
// Check if texture parameters are valid before creating it
if ((m_size.x == 0) || (m_size.y == 0))
if ((width == 0) || (height == 0))
{
err() << "Failed to create texture, invalid size (" << m_size.x << "x" << m_size.y << ")" << std::endl;
err() << "Failed to create texture, invalid size (" << width << "x" << height << ")" << std::endl;
return false;
}