Variable name does not match with that in frag shader

This commit is contained in:
Charles Zhang
2017-06-29 14:32:27 +08:00
parent 1e2398e92b
commit ecc7e7ca92

View File

@@ -166,7 +166,7 @@ int main()
// shader configuration
// --------------------
shader.use();
shader.setInt("ourTexture", 0);
shader.setInt("texture1", 0);
// render loop
// -----------