mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-02 04:37:54 +08:00
Variable name does not match with that in frag shader
This commit is contained in:
@@ -166,7 +166,7 @@ int main()
|
||||
// shader configuration
|
||||
// --------------------
|
||||
shader.use();
|
||||
shader.setInt("ourTexture", 0);
|
||||
shader.setInt("texture1", 0);
|
||||
|
||||
// render loop
|
||||
// -----------
|
||||
|
||||
Reference in New Issue
Block a user