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:
abf44d3
)
(no commit message)
author
Ash Tyndall
<
[email protected]
>
Fri, 21 Oct 2011 07:49:02 +0000
(15:49 +0800)
committer
Ash Tyndall
<
[email protected]
>
Fri, 21 Oct 2011 07:49:02 +0000
(15:49 +0800)
helper.c
patch
|
blob
|
history
diff --git
a/helper.c
b/helper.c
index
14fbe5a
..
b13e8f9
100644
(file)
--- a/
helper.c
+++ b/
helper.c
@@
-210,7
+210,10
@@
int makeSubmenuFromArray( const char *menuEntries[], unsigned int menuEntriesSiz
* Draw a floor by looping over the floorSize and squareSize variables
*/
void drawFloor() {
- if ( currentGroundTexture != 0 ) {
+ if ( currentGroundTexture == 0 ) {
+ getTexture(1);
+ glBindTexture(GL_TEXTURE_2D, 1);
+ } else {
getTexture(currentGroundTexture);
glBindTexture(GL_TEXTURE_2D, currentGroundTexture);
}
UCC
git Repository :: git.ucc.asn.au