Fix compilation and add check in sfTexture_updateFromTexture

This commit is contained in:
Jairard@Windows authored and Lukas Dürrenberger committed 2019-11-22 13:26:00 +01:00
1 parent 0f8209fade
commit ffb5763206
1 file changed
+2 -1
+2 -1
View File
@@ -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)
{
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));
}