From e503f75d62a57db568eef81f254a24a2b96c0c7a Mon Sep 17 00:00:00 2001 From: Abdelrahman Date: Sat, 7 Dec 2024 22:42:32 +0000 Subject: [PATCH] Fix bug with generating textures --- src/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cc b/src/main.cc index 7e4ab90..dc7cddf 100644 --- a/src/main.cc +++ b/src/main.cc @@ -177,7 +177,7 @@ int main() { glActiveTexture(GL_TEXTURE1); // activate the texture unit first before binding texture glBindTexture(GL_TEXTURE_2D, textures[1]); - if (container) { + if (awesomeface) { glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width[1], height[1], 0, GL_RGBA, GL_UNSIGNED_BYTE, awesomeface); glGenerateMipmap(GL_TEXTURE_2D);