Texture2D texture = null; protected override void LoadContent() { texture = Content.Load<Texture2D>("Back"); texture .Dispose(); texture = null; texture = Content.Load<Texture2D>("Back"); } protected override void Draw(GameTime gameTime) { GraphicsDevice.Clear(Color.CornflowerBlue); spriteBatch.Begin(); spriteBatch.Draw(texture , new Vector2(0, 0), Color.White); spriteBatch.End(); base.Draw(gameTime); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)