From 8477ffbfba2f15edb9f87e9336e2c4599000c32a Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Wed, 25 Sep 2024 12:16:30 -0500 Subject: Moving forward. --- src/demo.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/demo.cpp') diff --git a/src/demo.cpp b/src/demo.cpp index 40abca5..433dd5d 100644 --- a/src/demo.cpp +++ b/src/demo.cpp @@ -36,9 +36,9 @@ bool LoadTextureFromMemory(const void* data, size_t data_size, GLuint* out_textu spdlog::info("Got result: {} pixels per row of {} scanlines with {} channels", width, height, channelsInFile); // Create a OpenGL texture identifier - GLuint image_texture; - glGenTextures(1, &image_texture); - glBindTexture(GL_TEXTURE_2D, image_texture); + GLuint imageTexture; + glGenTextures(1, &imageTexture); + glBindTexture(GL_TEXTURE_2D, imageTexture); // Setup filtering parameters for display glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); @@ -49,7 +49,7 @@ bool LoadTextureFromMemory(const void* data, size_t data_size, GLuint* out_textu glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, image_data); stbi_image_free(image_data); - *out_texture = image_texture; + *out_texture = imageTexture; *out_width = width; *out_height = height; -- cgit v1.2.3