aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-10-20 10:14:21 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-10-20 10:14:21 +0000
commitf4e9ef3a2f98b9f9d0cfc18ed81e5b4b1de0fd12 (patch)
treeba38a7ceef76f10147d9ce27963915e40209a88e /src
parent08bddcd6cc36631035d0591ab028c57fa4a57ab7 (diff)
downloadusdx-f4e9ef3a2f98b9f9d0cfc18ed81e5b4b1de0fd12.tar.gz
usdx-f4e9ef3a2f98b9f9d0cfc18ed81e5b4b1de0fd12.tar.xz
usdx-f4e9ef3a2f98b9f9d0cfc18ed81e5b4b1de0fd12.zip
Alpha plane request (SDL_GL_ALPHA_SIZE) removed as we do not need it anymore (was only needed for backbuffer offscreen rendering).
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1464 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src')
-rw-r--r--src/base/UGraphic.pas16
-rw-r--r--src/ultrastardx.dpr1
2 files changed, 4 insertions, 13 deletions
diff --git a/src/base/UGraphic.pas b/src/base/UGraphic.pas
index a6620c0d..75c90134 100644
--- a/src/base/UGraphic.pas
+++ b/src/base/UGraphic.pas
@@ -583,21 +583,13 @@ begin
Screens := Ini.Screens + 1;
// Set minimum color component sizes
- // Note:
- // - SDL_GL_ALPHA_SIZE should not be set here, otherwise on a few systems with
- // some versions of SDL (at least 1.2.11) SDL_SetVideoMode will fail.
- // The problem occured if the adjusted color component sizes did not leave
- // any space for alpha, e.g. red/green/blue ajusted from 5 to 8:
- // r_size+g_size+b_size = 24, so an alpha of at least 5 is just available if
- // the depth is 32bit.
- // - Without SDL_GL_ALPHA_SIZE the lyrics won't work anymore on some systems
- // as the offscreen lyrics rendering needs an alpha component in the
- // back-buffer.
- // -> Leave SDL_GL_ALPHA_SIZE until the lyrics-engine is changed.
+ // Note: do not request an alpha plane with SDL_GL_ALPHA_SIZE here as
+ // some cards/implementations do not support them (SDL_SetVideoMode fails).
+ // We do not the alpha plane anymore since offscreen rendering in back-buffer
+ // was removed.
SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 5);
SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 5);
SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 5);
- SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 5);
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 16); // Z-Buffer depth
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
diff --git a/src/ultrastardx.dpr b/src/ultrastardx.dpr
index 979d4545..07a5e3dc 100644
--- a/src/ultrastardx.dpr
+++ b/src/ultrastardx.dpr
@@ -73,7 +73,6 @@ uses
glext in 'lib\JEDI-SDL\OpenGL\Pas\glext.pas',
sdl in 'lib\JEDI-SDL\SDL\Pas\sdl.pas',
sdl_image in 'lib\JEDI-SDL\SDL_Image\Pas\sdl_image.pas',
- //sdl_ttf in 'lib\JEDI-SDL\SDL_ttf\Pas\sdl_ttf.pas',
sdlutils in 'lib\JEDI-SDL\SDL\Pas\sdlutils.pas',
UMediaCore_SDL in 'media\UMediaCore_SDL.pas',