diff options
Diffstat (limited to 'src/menu/software_mouse_pointer.cpp')
-rw-r--r-- | src/menu/software_mouse_pointer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/menu/software_mouse_pointer.cpp b/src/menu/software_mouse_pointer.cpp index 721d46a2..c2104b51 100644 --- a/src/menu/software_mouse_pointer.cpp +++ b/src/menu/software_mouse_pointer.cpp @@ -102,6 +102,7 @@ namespace usdx return; } + glEnable(GL_TEXTURE_2D); glBindTexture(GL_TEXTURE_2D, texture_normal->get_texture()); glEnableClientState(GL_VERTEX_ARRAY); @@ -122,6 +123,8 @@ namespace usdx glDisableClientState(GL_VERTEX_ARRAY); glDisableClientState(GL_TEXTURE_COORD_ARRAY); glDisableClientState(GL_COLOR_ARRAY); + + glDisable(GL_TEXTURE_2D); } void SoftwareMousePointer::on_mouse_move(int x, int y) |