From 35dea757760ff72138aa413efd0e560b3d15b34d Mon Sep 17 00:00:00 2001 From: Matt Low Date: Thu, 22 Nov 2018 21:21:32 +0400 Subject: [PATCH] Reset sprite batch color when rendering menu button --- core/src/com/me/brickbuster/state/MenuState.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/com/me/brickbuster/state/MenuState.java b/core/src/com/me/brickbuster/state/MenuState.java index 3e55591..93f3169 100644 --- a/core/src/com/me/brickbuster/state/MenuState.java +++ b/core/src/com/me/brickbuster/state/MenuState.java @@ -2,6 +2,7 @@ package com.me.brickbuster.state; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Input; +import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.math.Vector3; import com.me.brickbuster.BrickBuster; @@ -23,6 +24,7 @@ public class MenuState extends State { public void render() { game.sb.setProjectionMatrix(game.cam.combined); game.sb.begin(); + game.sb.setColor(Color.WHITE); game.sb.draw(playButton, BrickBuster.BOARD_WIDTH/2-playButton.getWidth()/2, BrickBuster.BOARD_HEIGHT/2-playButton.getHeight()/2);