diff options
| author | raysan5 <raysan5@gmail.com> | 2015-07-18 19:26:13 +0200 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2015-07-18 19:26:13 +0200 |
| commit | 067b884f395b7b6d4c179cb3d58b0d17a02950ec (patch) | |
| tree | b6075ae3689cb345c27f0358bc814b48596b3877 /examples/textures_image_loading.c | |
| parent | a98578c91db7d51233ae56e599dd4a3b2244cd0c (diff) | |
| download | raylib-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.c | 6 |
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 |
