aboutsummaryrefslogtreecommitdiffstats
path: root/Game/Code
diff options
context:
space:
mode:
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();