From 560ff1a208e93a3636615380743ce76bd8811c94 Mon Sep 17 00:00:00 2001 From: jussi Date: Thu, 1 Jun 2023 23:56:14 +0300 Subject: Camera2D and Camera3D can be given as tables. --- 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 36ac646..a3be51b 100644 --- a/src/shapes.c +++ b/src/shapes.c @@ -18,7 +18,7 @@ defining a font char white rectangle would allow drawing everything in a single - Success return true */ int lshapesSetShapesTexture( lua_State *L ) { - if ( !isValidTexture( L, 1 ) || !lua_isnumber( L, 2 ) ) { + if ( !isValidTexture( L, 1, true ) || !lua_isnumber( L, 2 ) ) { TraceLog( LOG_WARNING, "%s", "Bad call of function. RL.SetShapesTexture( Texture2D texture, Rectangle source )" ); lua_pushboolean( L, false ); return 1; -- cgit v1.2.3