diff options
author | whiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-10-13 14:14:32 +0000 |
---|---|---|
committer | whiteshark0 <whiteshark0@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-10-13 14:14:32 +0000 |
commit | 322b798413826681915eca1960f081cbc4dd302c (patch) | |
tree | 03feeba5d30f0757015d844db2a7687c63382ef5 /src/menu/UDisplay.pas | |
parent | dc2616a471905229cebc6225c98264c737161825 (diff) | |
download | usdx-322b798413826681915eca1960f081cbc4dd302c.tar.gz usdx-322b798413826681915eca1960f081cbc4dd302c.tar.xz usdx-322b798413826681915eca1960f081cbc4dd302c.zip |
Abstraction of the menus background
5 different bg types:
none(fallback), colored, texture, video, and fade(for overlays)
Some sideeffect is 5 mb less memory usage, don't know for which reasons :P
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1446 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src/menu/UDisplay.pas')
-rw-r--r-- | src/menu/UDisplay.pas | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/menu/UDisplay.pas b/src/menu/UDisplay.pas index cd8241ae..ebd25e50 100644 --- a/src/menu/UDisplay.pas +++ b/src/menu/UDisplay.pas @@ -141,8 +141,10 @@ var begin Result := True; - glClearColor(1, 1, 1 , 0); - glClear(GL_COLOR_BUFFER_BIT or GL_DEPTH_BUFFER_BIT); + //We don't need this here anymore, + //Because the background care about cleaning the buffers + //glClearColor(1, 1, 1 , 0); + //glClear(GL_COLOR_BUFFER_BIT or GL_DEPTH_BUFFER_BIT); for S := 1 to Screens do begin |