Texture now can be either Texture or RenderTexture. No need to change texture source anymore.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user