aboutsummaryrefslogtreecommitdiff
path: root/examples/textures_image_loading.c
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2015-07-18 19:26:13 +0200
committerraysan5 <raysan5@gmail.com>2015-07-18 19:26:13 +0200
commit067b884f395b7b6d4c179cb3d58b0d17a02950ec (patch)
treeb6075ae3689cb345c27f0358bc814b48596b3877 /examples/textures_image_loading.c
parenta98578c91db7d51233ae56e599dd4a3b2244cd0c (diff)
downloadraylib-067b884f395b7b6d4c179cb3d58b0d17a02950ec.tar.gz
raylib-067b884f395b7b6d4c179cb3d58b0d17a02950ec.zip
Updated examples for next raylib version
Diffstat (limited to 'examples/textures_image_loading.c')
-rw-r--r--examples/textures_image_loading.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/textures_image_loading.c b/examples/textures_image_loading.c
index b7fc2cfc..7c6aae52 100644
--- a/examples/textures_image_loading.c
+++ b/examples/textures_image_loading.c
@@ -24,10 +24,10 @@ 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 = LoadTextureFromImage(img, false); // Image converted to texture, GPU memory (VRAM)
+ Image image = LoadImage("resources/raylib_logo.png"); // Loaded in CPU memory (RAM)
+ Texture2D texture = LoadTextureFromImage(image); // 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
+ UnloadImage(image); // Once image has been converted to texture and uploaded to VRAM, it can be unloaded from RAM
//---------------------------------------------------------------------------------------
// Main game loop