From 63cc12fb078bba24ffef46de39eb19fde581f6ba Mon Sep 17 00:00:00 2001 From: Gatgat Date: Sun, 29 Sep 2024 11:34:36 +0200 Subject: [PATCH] Fix typo on variable name in OpenGL example for loading and displaying an image --- Image-Loading-and-Displaying-Examples.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Image-Loading-and-Displaying-Examples.md b/Image-Loading-and-Displaying-Examples.md index 993f971..d51cbbe 100644 --- a/Image-Loading-and-Displaying-Examples.md +++ b/Image-Loading-and-Displaying-Examples.md @@ -176,7 +176,7 @@ bool ret = LoadTextureFromFile("../../MyImage01.jpg", &my_image_texture, &my_ima IM_ASSERT(ret); ``` -In the snippet of code above, we added an assert `IM_ASSERT(ret)` to check if the image file was loaded correctly. You may also use your Debugger and confirm that `my_image_texture` is not zero and that `my_image_width` `my_image_width` are correct. +In the snippet of code above, we added an assert `IM_ASSERT(ret)` to check if the image file was loaded correctly. You may also use your Debugger and confirm that `my_image_texture` is not zero and that `my_image_width` `my_image_height` are correct. Now that we have an OpenGL texture and its dimensions, we can display it in our main loop: ```cpp