Skip to content

Commit 525c656

Browse files
committed
Fixed tiny bug
1 parent 5b48167 commit 525c656

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

8-light/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ int main()
337337
GLuint texture;
338338
colorShader.use();
339339
// Load texture to "texture" variable
340-
colorShader.loadTexture(PWD + "/../../assets/container2.png", &texture, GL_TEXTURE_2D, GL_REPEAT, GL_LINEAR, 0, GL_RGBA, 0, GL_RGB, GL_UNSIGNED_BYTE);
340+
colorShader.loadTexture(PWD + "/../../assets/container2.png", &texture, GL_TEXTURE_2D, GL_REPEAT, GL_LINEAR, 0, GL_RGBA, 0, GL_RGBA, GL_UNSIGNED_BYTE);
341341
// Set texture unit 0 active (unnecessary if we have only one texture, texture unit 0 is the default)
342342
glActiveTexture(GL_TEXTURE0);
343343
// Bind "texture" to texture unit 0

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy