Skip to content
Snippets Groups Projects
Commit e890cdd1 authored by Turid Cecilie Dahl's avatar Turid Cecilie Dahl
Browse files

Re-adds screen clearing

parent ff687c63
No related branches found
No related tags found
No related merge requests found
...@@ -89,6 +89,9 @@ public class GameWare extends ApplicationAdapter { ...@@ -89,6 +89,9 @@ public class GameWare extends ApplicationAdapter {
@Override @Override
public void render () { public void render () {
// Clearing the screen
Gdx.gl.glClearColor(1, 1, 1, 1);
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
// Delegates to GameStateManager // Delegates to GameStateManager
gsm.update(Gdx.graphics.getDeltaTime()); gsm.update(Gdx.graphics.getDeltaTime());
gsm.render(batch); gsm.render(batch);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment