diff options
| author | jussi | 2023-10-30 00:04:11 +0200 |
|---|---|---|
| committer | jussi | 2023-10-30 00:04:11 +0200 |
| commit | d287078c658d26d41a28f92b62b023048c5503ce (patch) | |
| tree | fb045110fde9329782d21324cc7a9092128a1126 /src/shapes.c | |
| parent | 992310fb90832ddf493ec33f1099dbbf3e0987f3 (diff) | |
| download | reilua-enhanced-d287078c658d26d41a28f92b62b023048c5503ce.tar.gz reilua-enhanced-d287078c658d26d41a28f92b62b023048c5503ce.tar.bz2 reilua-enhanced-d287078c658d26d41a28f92b62b023048c5503ce.zip | |
Userdata objects can be referenced with lightuserdata.
Diffstat (limited to 'src/shapes.c')
| -rw-r--r-- | src/shapes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shapes.c b/src/shapes.c index ed2af7a..975b478 100644 --- a/src/shapes.c +++ b/src/shapes.c @@ -16,7 +16,7 @@ NOTE: It can be useful when using basic shapes and one single font, defining a font char white rectangle would allow drawing everything in a single draw call */ int lshapesSetShapesTexture( lua_State *L ) { - Texture *texture = luaL_checkudata( L, 1, "Texture" ); + Texture *texture = uluaGetTexture( L, 1 ); Rectangle source = uluaGetRectangleIndex( L, 2 ); SetShapesTexture( *texture, source ); |
