From 70f41c4285f311732a9e0511f41f35a0c9199586 Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Fri, 21 Oct 2011 14:20:33 +0800 Subject: [PATCH] --- helper.c | 2 ++ 1 file changed, 2 insertions(+) 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); } /** -- 2.20.1