From 4f54a0a4992358c633e5e3535e2980211028f3a2 Mon Sep 17 00:00:00 2001 From: jussi Date: Tue, 26 Jul 2022 16:33:04 +0300 Subject: Create material using correct texture source. --- examples/image_draw/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/image_draw/main.lua') diff --git a/examples/image_draw/main.lua b/examples/image_draw/main.lua index 7d5cb90..2da0c58 100644 --- a/examples/image_draw/main.lua +++ b/examples/image_draw/main.lua @@ -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 -- cgit v1.2.3