mirror of
https://github.com/SFML/CSFML.git
synced 2026-10-27 21:36:13 +01:00
Fix compilation and add check in sfTexture_updateFromTexture
This commit is contained in:
1 parent
0f8209fade
commit
ffb5763206
1 file changed
+2
-1
@@ -185,8 +185,9 @@ void sfTexture_updateFromPixels(sfTexture* texture, const sfUint8* pixels, unsig
|
|||||||
void sfTexture_updateFromTexture(sfTexture* destination, const sfTexture* texture, unsigned int x, unsigned int y)
|
void sfTexture_updateFromTexture(sfTexture* destination, const sfTexture* texture, unsigned int x, unsigned int y)
|
||||||
{
|
{
|
||||||
CSFML_CHECK(texture);
|
CSFML_CHECK(texture);
|
||||||
|
CSFML_CHECK(texture->This);
|
||||||
|
|
||||||
CSFML_CALL_PTR(destination, update(texture->This, x, y));
|
CSFML_CALL_PTR(destination, update(*texture->This, x, y));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user