summaryrefslogtreecommitdiff
path: root/src/demo.cpp
diff options
context:
space:
mode:
authorDominick Allen <djallen@librehumanitas.org>2024-09-25 12:16:30 -0500
committerDominick Allen <djallen@librehumanitas.org>2024-09-25 12:16:30 -0500
commit8477ffbfba2f15edb9f87e9336e2c4599000c32a (patch)
tree059a36f9d526b0807a7bd0b20979577f9a7e7d0e /src/demo.cpp
parentb6e3cc840e255b78ee53e55b420aeee130e51ce1 (diff)
Moving forward.
Diffstat (limited to 'src/demo.cpp')
-rw-r--r--src/demo.cpp8
1 files changed, 4 insertions, 4 deletions
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;