aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu/software_mouse_pointer.cpp
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-04-09 18:11:43 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-13 22:40:52 +0100
commit67fc15279173bb357c16ef21b73a2e8dd3561b2e (patch)
treeff0a04e3f5cbd96b3f6a0c8678e081e9764b8e3b /src/menu/software_mouse_pointer.cpp
parent3ec8616aa76390280c7b51696b731a85e070de0f (diff)
downloadusdx-67fc15279173bb357c16ef21b73a2e8dd3561b2e.tar.gz
usdx-67fc15279173bb357c16ef21b73a2e8dd3561b2e.tar.xz
usdx-67fc15279173bb357c16ef21b73a2e8dd3561b2e.zip
menu/application: alpha blending should not be enabled by default
Diffstat (limited to 'src/menu/software_mouse_pointer.cpp')
-rw-r--r--src/menu/software_mouse_pointer.cpp5
1 files changed, 5 insertions, 0 deletions
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);