summaryrefslogtreecommitdiffhomepage
path: root/examples/textures_image_loading.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2015-01-02 20:58:06 +0100
committerraysan5 <[email protected]>2015-01-02 20:58:06 +0100
commit8847602061d964592c468757eb535770771af1f0 (patch)
treef9f38b6d214dc7981c20a749009d80fc948a2214 /examples/textures_image_loading.c
parente6bc655d6acf69daeff084829cfee08aba9a71a8 (diff)
downloadraylib-8847602061d964592c468757eb535770771af1f0.tar.gz
raylib-8847602061d964592c468757eb535770771af1f0.zip
Examples review...
Diffstat (limited to 'examples/textures_image_loading.c')
-rw-r--r--examples/textures_image_loading.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/textures_image_loading.c b/examples/textures_image_loading.c
index 179cf84c..b7fc2cfc 100644
--- a/examples/textures_image_loading.c
+++ b/examples/textures_image_loading.c
@@ -24,8 +24,8 @@ int main()
// NOTE: Textures MUST be loaded after Window initialization (OpenGL context is required)
- Image img = LoadImage("resources/raylib_logo.png"); // Loaded in CPU memory (RAM)
- Texture2D texture = CreateTexture(img, false); // Image converted to texture, GPU memory (VRAM)
+ Image img = LoadImage("resources/raylib_logo.png"); // Loaded in CPU memory (RAM)
+ Texture2D texture = LoadTextureFromImage(img, false); // Image converted to texture, GPU memory (VRAM)
UnloadImage(img); // Once image has been converted to texture and uploaded to VRAM, it can be unloaded from RAM
//---------------------------------------------------------------------------------------