Fixed incorrect indentation in SDL_Renderer example

Peter Rolfe 2023-05-21 23:29:56 +01:00
parent 8af4286f21
commit 5505546d5c

@ -574,9 +574,8 @@ bool LoadTextureFromFile(const char* filename, SDL_Texture** texture_ptr, int& w
We can then load our texture after initialising SDL:
```cpp
SDL_Texture* my_texture;
int my_image_width, my_image_height;
bool ret = LoadTextureFromFile("MyImage01.jpg", &my_texture, my_image_width, my_image_height, renderer);
int my_image_width, my_image_height;
bool ret = LoadTextureFromFile("MyImage01.jpg", &my_texture, my_image_width, my_image_height, renderer);
```
And finally, use the image with Dear ImGui: