aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/menu/application.cpp4
-rw-r--r--src/menu/software_mouse_pointer.cpp5
2 files changed, 5 insertions, 4 deletions
diff --git a/src/menu/application.cpp b/src/menu/application.cpp
index 3505f498..ccc983d3 100644
--- a/src/menu/application.cpp
+++ b/src/menu/application.cpp
@@ -147,10 +147,6 @@ namespace usdx
glClear(GL_COLOR_BUFFER_BIT);
- glEnable(GL_BLEND);
- glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
- glEnable(GL_COLOR_MATERIAL);
-
glMatrixMode( GL_PROJECTION );
glLoadIdentity();
diff --git a/src/menu/software_mouse_pointer.cpp b/src/menu/software_mouse_pointer.cpp
index 461ad4d5..721d46a2 100644
--- a/src/menu/software_mouse_pointer.cpp
+++ b/src/menu/software_mouse_pointer.cpp
@@ -112,8 +112,13 @@ namespace usdx
glColorPointer(4, GL_UNSIGNED_BYTE, 0, color);
glTexCoordPointer(2, GL_FLOAT, 0, texture);
+ glEnable(GL_BLEND);
+ glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
+
glDrawArrays(GL_QUADS, 0, 4);
+ glDisable(GL_BLEND);
+
glDisableClientState(GL_VERTEX_ARRAY);
glDisableClientState(GL_TEXTURE_COORD_ARRAY);
glDisableClientState(GL_COLOR_ARRAY);