From 67fc15279173bb357c16ef21b73a2e8dd3561b2e Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Mon, 9 Apr 2012 18:11:43 +0200 Subject: menu/application: alpha blending should not be enabled by default --- src/menu/application.cpp | 4 ---- src/menu/software_mouse_pointer.cpp | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'src') 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); -- cgit v1.2.3