diff options
author | b1indy <b1indy@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2007-04-24 13:23:53 +0000 |
---|---|---|
committer | b1indy <b1indy@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2007-04-24 13:23:53 +0000 |
commit | 6c530e99b8a5314bb1e988a00680ba4332ac4abc (patch) | |
tree | a1d53529162bc59cd610dd3c3b6bb56d4bd82545 /Game/Code/Menu/UDisplay.pas | |
parent | 4ca6b721c705fb98e3dd7f952403e600ddee9238 (diff) | |
download | usdx-6c530e99b8a5314bb1e988a00680ba4332ac4abc.tar.gz usdx-6c530e99b8a5314bb1e988a00680ba4332ac4abc.tar.xz usdx-6c530e99b8a5314bb1e988a00680ba4332ac4abc.zip |
UTexture.pas: texture-wrap-mode changed to GL_CLAMP_TO_EDGE - solves some problems where edges of textures were drawn incorrectly
UDisplay.pas: simplified generation of fade texture (a little)
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@134 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'Game/Code/Menu/UDisplay.pas')
-rw-r--r-- | Game/Code/Menu/UDisplay.pas | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Game/Code/Menu/UDisplay.pas b/Game/Code/Menu/UDisplay.pas index ddbc0d1f..9d13d2a6 100644 --- a/Game/Code/Menu/UDisplay.pas +++ b/Game/Code/Menu/UDisplay.pas @@ -139,10 +139,10 @@ begin //Create Fading texture if we're just starting
if myfade = 0 then
begin
- glViewPort((S-1) * 512, 0, 512, 512);
+ glViewPort(0, 0, 512, 512);
ActualScreen.Draw;
glBindTexture(GL_TEXTURE_2D, pTex[S]);
- glCopyTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, (S-1)*512, 0, 512, 512, 0);
+ glCopyTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 0, 0, 512, 512, 0);
glViewPort((S-1) * ScreenW div Screens, 0, ScreenW div Screens, ScreenH);
if glGetError <> GL_NO_ERROR then
begin
|