aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-08-15 17:59:11 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2008-08-15 17:59:11 +0000
commit0c5f07f9e3b9bcc7bf2ae9c81c7d6525514fef56 (patch)
tree5ebc6db99f759904fded668b10f95a3d9293a0a1 /Game/Code
parent0da6b7acef477cdfc06aa7a7493721e4a512523c (diff)
downloadusdx-0c5f07f9e3b9bcc7bf2ae9c81c7d6525514fef56.tar.gz
usdx-0c5f07f9e3b9bcc7bf2ae9c81c7d6525514fef56.tar.xz
usdx-0c5f07f9e3b9bcc7bf2ae9c81c7d6525514fef56.zip
offscreen lyrics drawing needs a fix
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1265 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r--Game/Code/Classes/ULyrics.pas4
1 files changed, 4 insertions, 0 deletions
diff --git a/Game/Code/Classes/ULyrics.pas b/Game/Code/Classes/ULyrics.pas
index dd433c4d..305cb91f 100644
--- a/Game/Code/Classes/ULyrics.pas
+++ b/Game/Code/Classes/ULyrics.pas
@@ -132,6 +132,7 @@ uses SysUtils,
TextGL,
UGraphic,
UDisplay,
+ ULog,
math,
UIni;
@@ -489,7 +490,10 @@ begin
// copy back-buffer to texture
glBindTexture(GL_TEXTURE_2D, LyricLine.Tex);
+ // FIXME: this does not work this way
glCopyTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 0, 600-64, 1024, 64, 0);
+ if (glGetError() <> GL_NO_ERROR) then
+ Log.LogError('Creation of Lyrics-texture failed', 'TLyricEngine.AddLine');
// restore OpenGL state
glPopAttrib();