mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-30 20:13:22 +08:00
Remove default menu state from Breakout's program as this breaks rendering/flow in chapters before Text Rendering (will be set from Game's constructor only).
This commit is contained in:
@@ -65,10 +65,6 @@ int main(int argc, char *argv[])
|
||||
float deltaTime = 0.0f;
|
||||
float lastFrame = 0.0f;
|
||||
|
||||
// start game within menu state
|
||||
// ----------------------------
|
||||
Breakout.State = GAME_MENU;
|
||||
|
||||
while (!glfwWindowShouldClose(window))
|
||||
{
|
||||
// calculate delta time
|
||||
|
||||
@@ -65,10 +65,6 @@ int main(int argc, char *argv[])
|
||||
float deltaTime = 0.0f;
|
||||
float lastFrame = 0.0f;
|
||||
|
||||
// start game within menu state
|
||||
// ----------------------------
|
||||
Breakout.State = GAME_MENU;
|
||||
|
||||
while (!glfwWindowShouldClose(window))
|
||||
{
|
||||
// calculate delta time
|
||||
|
||||
Reference in New Issue
Block a user