* Draw a floor by looping over the floorSize and squareSize variables
*/
void drawFloor() {
- if ( currentGroundTexture != 0 ) {
+ if ( currentGroundTexture == 0 ) {
+ getTexture(1);
+ glBindTexture(GL_TEXTURE_2D, 1);
+ } else {
getTexture(currentGroundTexture);
glBindTexture(GL_TEXTURE_2D, currentGroundTexture);
}