diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2024-09-25 12:16:30 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2024-09-25 12:16:30 -0500 |
commit | 8477ffbfba2f15edb9f87e9336e2c4599000c32a (patch) | |
tree | 059a36f9d526b0807a7bd0b20979577f9a7e7d0e /src/demo.cpp | |
parent | b6e3cc840e255b78ee53e55b420aeee130e51ce1 (diff) |
Moving forward.
Diffstat (limited to 'src/demo.cpp')
-rw-r--r-- | src/demo.cpp | 8 |
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; |