mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-02 04:37:54 +08:00
Update shaders_class.cpp
typo
This commit is contained in:
committed by
GitHub
parent
5491450bde
commit
f4001a9def
@@ -39,7 +39,7 @@ int main()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// build and compile our shader zprogram
|
// build and compile our shader program
|
||||||
// ------------------------------------
|
// ------------------------------------
|
||||||
Shader ourShader("3.3.shader.vs", "3.3.shader.fs"); // you can name your shader files however you like
|
Shader ourShader("3.3.shader.vs", "3.3.shader.fs"); // you can name your shader files however you like
|
||||||
|
|
||||||
@@ -124,4 +124,4 @@ void framebuffer_size_callback(GLFWwindow* window, int width, int height)
|
|||||||
// make sure the viewport matches the new window dimensions; note that width and
|
// make sure the viewport matches the new window dimensions; note that width and
|
||||||
// height will be significantly larger than specified on retina displays.
|
// height will be significantly larger than specified on retina displays.
|
||||||
glViewport(0, 0, width, height);
|
glViewport(0, 0, width, height);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user