mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-30 20:13:22 +08:00
Use appropriate texture fs name on setting uniform.
This commit is contained in:
@@ -166,7 +166,7 @@ int main()
|
|||||||
// shader configuration
|
// shader configuration
|
||||||
// --------------------
|
// --------------------
|
||||||
shader.use();
|
shader.use();
|
||||||
shader.setInt("ourTexture", 0);
|
shader.setInt("texture1", 0);
|
||||||
|
|
||||||
// render loop
|
// render loop
|
||||||
// -----------
|
// -----------
|
||||||
|
|||||||
Reference in New Issue
Block a user