title: libgdx my splashscreen is not showing
body: <p>I'm writing an libgdx game, but it seems that i cannot show my splashscreen, it only shows a black screen. does anyone know how this comes?</p>
  
  <p>I don't get any runtime error, it only shows a blackscreen, even if i set the glClearColor to an other color then black</p>
  
  <pre><code>package mygame;
  
  
  
  import com.badlogic.gdx.Gdx;
  import com.badlogic.gdx.Screen;
  import com.badlogic.gdx.graphics.GL10;
  import com.badlogic.gdx.graphics.Texture;
  import com.badlogic.gdx.graphics.Texture.TextureFilter;
  import com.badlogic.gdx.graphics.g2d.Sprite;  
  import com.badlogic.gdx.graphics.g2d.SpriteBatch;
  
   public class SplashScreen implements Screen {
  
  Texture splashTexture;
  Sprite splashSprite;
  SpriteBatch batch;
  MyGame game;
  
  public SplashScreen(MyGame game) {
      this.game = game;
  }
  
  @Override
  public void render(float delta) {
      Gdx.gl.glClearColor(0, 0, 0, 1);
      Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
  
      batch.begin();
      splashSprite.draw(batch);
      batch.end();
  }
  
  @Override
  public void resize(int width, int height) {
  
  }
  
  @Override
  public void show() {
      splashTexture = new Texture("mygame/splash.png");
      splashTexture.setFilter(TextureFilter.Linear, TextureFilter.Linear);
  
      splashSprite = new Sprite(splashTexture);
      //splashSprite.setColor(1, 1, 1, 0);
      splashSprite.setX(Gdx.graphics.getWidth() / 2 - (splashSprite.getWidth() / 2));
      splashSprite.setY(Gdx.graphics.getHeight() / 2 - (splashSprite.getHeight() / 2));
  
      batch = new SpriteBatch();
  }
  
  @Override
  public void hide() {
  
  }
  
  @Override
  public void pause() {
  
  }
  
  @Override
  public void resume() {
  
  }
  
  @Override
  public void dispose() {
  
  }
  
  }
  </code></pre>