[EMAIL PROTECTED] schreef:
> On Sun, 29 Apr 2007 05:57:43 -0400 Per Inge Mathisen <[EMAIL PROTECTED]> 
> wrote:
>   
>> Oh. I never paid much attention to those colours. Another related
>> question, though. I noticed that the progress bar stops after a
>> certain time, and the app sort of freezes for a while for as long 
>> as
>> the time it takes for the progress bar to run, or more, before the
>> game suddenly starts. Do anyone else see this? Was it always like
>> this?
>>     
> If build the debug build (will --enable-debug be default now ?) 
> then you really see how slow it can be.  Yes, it stops, then 
> continues.  Release builds is fast as expected but still stops at 
> some points.
>
>
> I find problem, Dennis patch of tex.c broke it in rev 727.
> If get rev 727, and revert tex.c to older version, before this rev, 
> then loading bar is white again.
>   
Found the cause, apparently the loading bar requires a
glDisable(GL_TEXTURE_2D) call at some times. Which was handled by
pie_SetTexturePage(...) pre-r727, replacing the call to glBindTexture
with a call to pie_SetTexturePage fixes this.

Simply adding a call to glDisable(GL_TEXTURE_2D) works as well, but
causes segfaults when loading a game (i.e. the menu loading stuff has a
white progress bar).

Apparently we have at some times a negative index into _TEX_PAGES[] and
if that's the case a call to glDisable is apparently needed.

A fix is provided in r1221.

-- 
Giel

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev

Reply via email to