git.ucc.asn.au
/
atyndall
/
cits2231.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7799fe0
)
(no commit message)
author
Ash Tyndall
<
[email protected]
>
Fri, 21 Oct 2011 06:20:33 +0000
(14:20 +0800)
committer
Ash Tyndall
<
[email protected]
>
Fri, 21 Oct 2011 06:20:33 +0000
(14:20 +0800)
helper.c
patch
|
blob
|
history
diff --git
a/helper.c
b/helper.c
index
c39d6b2
..
ec880e8
100644
(file)
--- 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);
}
/**
UCC
git Repository :: git.ucc.asn.au