diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2012-04-09 18:12:32 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-13 22:40:52 +0100 |
commit | a9818f2d6a0c22ff6b03a8897b3ef84d8dd6f96b (patch) | |
tree | 0716d678a585fd8da96645fe50263cb9b8a750b2 /src | |
parent | 67fc15279173bb357c16ef21b73a2e8dd3561b2e (diff) | |
download | usdx-a9818f2d6a0c22ff6b03a8897b3ef84d8dd6f96b.tar.gz usdx-a9818f2d6a0c22ff6b03a8897b3ef84d8dd6f96b.tar.xz usdx-a9818f2d6a0c22ff6b03a8897b3ef84d8dd6f96b.zip |
menu/application: disable opengl depth buffer (only 2d needed)
Diffstat (limited to '')
-rw-r--r-- | src/menu/application.cpp | 1 | ||||
-rw-r--r-- | src/menu/frame_background_color.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/menu/application.cpp b/src/menu/application.cpp index ccc983d3..00606135 100644 --- a/src/menu/application.cpp +++ b/src/menu/application.cpp @@ -154,6 +154,7 @@ namespace usdx glMatrixMode( GL_MODELVIEW ); glLoadIdentity(); + glDisable(GL_DEPTH_TEST); } if (! display) { diff --git a/src/menu/frame_background_color.cpp b/src/menu/frame_background_color.cpp index 43b1c748..a0558082 100644 --- a/src/menu/frame_background_color.cpp +++ b/src/menu/frame_background_color.cpp @@ -42,6 +42,6 @@ namespace usdx void FrameBackgroundColor::draw() { glClearColor(color.get_red(), color.get_green(), color.get_blue(), 1.0f); - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); + glClear(GL_COLOR_BUFFER_BIT); } }; |