From 0c5f07f9e3b9bcc7bf2ae9c81c7d6525514fef56 Mon Sep 17 00:00:00 2001 From: tobigun Date: Fri, 15 Aug 2008 17:59:11 +0000 Subject: offscreen lyrics drawing needs a fix git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1265 b956fd51-792f-4845-bead-9b4dfca2ff2c --- Game/Code/Classes/ULyrics.pas | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Game/Code/Classes/ULyrics.pas') 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(); -- cgit v1.2.3