X-Git-Url: https://git.ucc.asn.au/?p=atyndall%2Fcits2231.git;a=blobdiff_plain;f=helper.c;h=904fa6f90e2e6b042f573ec0cb394f0d3390f07c;hp=29eae69b5b66e8242d261008aa3ac8c699869c3e;hb=99b8ed1808c4e8b7d6826edaeb946c7e37509d9a;hpb=c3d286211e4f462930b4640150e619faf4787c31 diff --git a/helper.c b/helper.c index 29eae69..904fa6f 100644 --- a/helper.c +++ b/helper.c @@ -211,6 +211,8 @@ int makeSubmenuFromArray( const char *menuEntries[], unsigned int menuEntriesSiz */ void drawFloor() { glBegin(GL_QUADS); + getTexture(2); + glBindTexture(GL_TEXTURE_2D, 2); for ( int x = -floorSize; x < floorSize; x++ ) { for ( int z = -floorSize; z < floorSize; z++ ) { glColor3f( 1.0, 1.0, 1.0 );