Create material using correct texture source.

This commit is contained in:
jussi
2022-07-26 16:33:04 +03:00
parent 314d0412a5
commit 4f54a0a499
9 changed files with 21 additions and 7 deletions

View File

@@ -1285,7 +1285,7 @@ Get image pixel color at ( x, y ) position
- Success return Color
*/
int ltexturesGetImageColor( lua_State *L ) {
if ( !lua_isnumber( L, -2 ) || !lua_isnumber( L, -1 ) ) {
if ( !lua_isnumber( L, -2 ) || !lua_istable( L, -1 ) ) {
TraceLog( LOG_WARNING, "%s", "Bad call of function. RL_GetImageColor( Image image, Vector2 pixelPos )" );
lua_pushboolean( L, false );
return 1;