mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Fixed typo in assert in Texture::update
This commit is contained in:
parent
756cb09bc3
commit
9b16bc7c67
@ -447,7 +447,7 @@ void Texture::update(const Texture& texture)
|
|||||||
void Texture::update(const Texture& texture, unsigned int x, unsigned int y)
|
void Texture::update(const Texture& texture, unsigned int x, unsigned int y)
|
||||||
{
|
{
|
||||||
assert(x + texture.m_size.x <= m_size.x);
|
assert(x + texture.m_size.x <= m_size.x);
|
||||||
assert(y + texture.m_size.x <= m_size.y);
|
assert(y + texture.m_size.y <= m_size.y);
|
||||||
|
|
||||||
if (!m_texture || !texture.m_texture)
|
if (!m_texture || !texture.m_texture)
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user