From acc56fc7c2bedde6eced005eab0a37b6281b9a23 Mon Sep 17 00:00:00 2001 From: jussi Date: Mon, 1 May 2023 18:23:36 +0300 Subject: Texture now can be either Texture or RenderTexture. No need to change texture source anymore. --- src/shapes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shapes.c') diff --git a/src/shapes.c b/src/shapes.c index ef857ea..3a06bac 100644 --- a/src/shapes.c +++ b/src/shapes.c @@ -26,7 +26,7 @@ int lshapesSetShapesTexture( lua_State *L ) { size_t texId = lua_tointeger( L, 1 ); Rectangle source = uluaGetRectangleIndex( L, 2 ); - if ( !validSourceTexture( texId ) ) { + if ( !validTexture( texId, TEXTURE_TYPE_ALL ) ) { lua_pushboolean( L, false ); return 1; } -- cgit v1.2.3