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:
Joey de Vries
2020-08-06 12:03:54 +02:00
parent 08be309c87
commit 37b08a6546
2 changed files with 0 additions and 8 deletions

View File

@@ -65,10 +65,6 @@ int main(int argc, char *argv[])
float deltaTime = 0.0f; float deltaTime = 0.0f;
float lastFrame = 0.0f; float lastFrame = 0.0f;
// start game within menu state
// ----------------------------
Breakout.State = GAME_MENU;
while (!glfwWindowShouldClose(window)) while (!glfwWindowShouldClose(window))
{ {
// calculate delta time // calculate delta time

View File

@@ -65,10 +65,6 @@ int main(int argc, char *argv[])
float deltaTime = 0.0f; float deltaTime = 0.0f;
float lastFrame = 0.0f; float lastFrame = 0.0f;
// start game within menu state
// ----------------------------
Breakout.State = GAME_MENU;
while (!glfwWindowShouldClose(window)) while (!glfwWindowShouldClose(window))
{ {
// calculate delta time // calculate delta time