From: Ash Tyndall Date: Fri, 21 Oct 2011 06:20:33 +0000 (+0800) Subject: (no commit message) X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=70f41c4285f311732a9e0511f41f35a0c9199586;p=atyndall%2Fcits2231.git --- diff --git a/helper.c b/helper.c index c39d6b2..ec880e8 100644 --- a/helper.c +++ b/helper.c @@ -211,6 +211,7 @@ int makeSubmenuFromArray( const char *menuEntries[], unsigned int menuEntriesSiz */ void drawFloor() { getTexture(2); + glBindTexture(GL_TEXTURE_2D, 2); glBegin(GL_QUADS); for ( int x = -floorSize; x < floorSize; x++ ) { for ( int z = -floorSize; z < floorSize; z++ ) { @@ -230,6 +231,7 @@ void drawFloor() { } } glEnd(); + glBindTexture(GL_TEXTURE_2D, 0); } /**