From 69f387de2232281d24f7eb2d8b7f9eb80050becc Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Sun, 1 Apr 2012 10:01:53 +0200 Subject: [PATCH] Fixed bug in texture creation (was a mistake in last commit) --- src/SFML/Graphics/Texture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SFML/Graphics/Texture.cpp b/src/SFML/Graphics/Texture.cpp index dcac4f2a..926e8bcf 100644 --- a/src/SFML/Graphics/Texture.cpp +++ b/src/SFML/Graphics/Texture.cpp @@ -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; }