HarvP
09-02-2011, 05:16 PM
Hello all,
I'm working on a Tetris clone for my first solo project. I have gotten to where I can have single blocks drop from the top of the screen to the bottom. When the screen fills to the top the game ends and it switches back to the start menu state. When I re-enter the play game state the blocks don't render fully. Its like the texture has been unloaded. I've gone over the code that takes place when the states are switched and can find nothing that would change the texture in anyway. The first go through everything is fine and then any after that without exiting will do the same thing. Here are some pics to help explain.
Here is what it looks like on the first attempt
http://oi52.tinypic.com/11kgmxt.jpg
Here is the return to the start menu.
http://oi54.tinypic.com/24lieq1.jpg
Here is the second pass where the texture is now not rendering correctly.
http://oi55.tinypic.com/2rwsuo4.jpg
Any help is appreciated. Not sure why this is happening.
I'm working on a Tetris clone for my first solo project. I have gotten to where I can have single blocks drop from the top of the screen to the bottom. When the screen fills to the top the game ends and it switches back to the start menu state. When I re-enter the play game state the blocks don't render fully. Its like the texture has been unloaded. I've gone over the code that takes place when the states are switched and can find nothing that would change the texture in anyway. The first go through everything is fine and then any after that without exiting will do the same thing. Here are some pics to help explain.
Here is what it looks like on the first attempt
http://oi52.tinypic.com/11kgmxt.jpg
Here is the return to the start menu.
http://oi54.tinypic.com/24lieq1.jpg
Here is the second pass where the texture is now not rendering correctly.
http://oi55.tinypic.com/2rwsuo4.jpg
Any help is appreciated. Not sure why this is happening.