X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=helper.c;h=0f711c2b273e2e0d2b692b9e05b919dbcfb55878;hp=ec880e8cee252dece82e89613737d706c3e0f262;hb=893757ee1bb56fd26df3f84fb66403d17f27a801;hpb=70f41c4285f311732a9e0511f41f35a0c9199586 diff --git a/helper.c b/helper.c index ec880e8..0f711c2 100644 --- a/helper.c +++ b/helper.c @@ -210,8 +210,8 @@ int makeSubmenuFromArray( const char *menuEntries[], unsigned int menuEntriesSiz * Draw a floor by looping over the floorSize and squareSize variables */ void drawFloor() { - getTexture(2); - glBindTexture(GL_TEXTURE_2D, 2); + getTexture(currentGroundTexture); + glBindTexture(GL_TEXTURE_2D, currentGroundTexture); glBegin(GL_QUADS); for ( int x = -floorSize; x < floorSize; x++ ) { for ( int z = -floorSize; z < floorSize; z++ ) {