diff --git a/src/opengl.c b/src/opengl.c index 707b826..69558d9 100644 --- a/src/opengl.c +++ b/src/opengl.c @@ -360,6 +360,8 @@ void gl_blitSprite(const glTexture* sprite, const Vec2* pos, const int sx, const double x, y, tx, ty; + glEnable(GL_TEXTURE_2D); + x = VX(*pos) - VX(*gl_camera) - sprite->sw/2. + gui_xoff; y = VY(*pos) - VY(*gl_camera) - sprite->sh/2. + gui_yoff;