summaryrefslogtreecommitdiff
path: root/engine/enemy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engine/enemy.cpp')
-rw-r--r--engine/enemy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/enemy.cpp b/engine/enemy.cpp
index 87e9e87..383ddc7 100644
--- a/engine/enemy.cpp
+++ b/engine/enemy.cpp
@@ -18,7 +18,7 @@ void Enemy::draw() {
glColor4f(1, 1, 1, 1);
glEnable(GL_TEXTURE_2D);
- glBindTexture(GL_TEXTURE_2D, texture->tex());
+ texture->bind();
glBegin(GL_POINTS);
glVertex2f(pos.x, pos.y);