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

@@ -34,7 +34,7 @@ function init()
textImage = RL_ImageText( 0, "Cat", 10, 4, WHITE )
local imageSize = RL_GetImageSize( textImage )
RL_ImageDraw( image, textImage, { 0, 0, imageSize[1], imageSize[2] }, { 250, 40, imageSize[1], imageSize[2] }, WHITE )
texture = RL_LoadTextureFromImage( image )
end