Hello all,

Just noticed this in twilight TODO:

  - Damm can demonstrate lightmap corruption consistantly with certain
    maps at certain times.  He can't reproduce it at will, but it does
    happen.

Don't know if it helps, but I've encountered a similar problem a while
ago when I removed the following lines from GL_BuildLightmaps (they
looked really stupid to me):

        if (!gl_texsort.value)
                GL_SelectTexture(TEXTURE1_ARB);
                
        ... upload all lightmaps ...

        if (!gl_texsort.value)
                GL_SelectTexture(TEXTURE0_ARB);

After that, a guy with a Matrox card reported lightmap corruption
happening after mapchange every now and then.  I put the code back and
the problem went away.

Might this weird switch to mtex enum 1 and then back to 0 be a
workaround for this strange lightmap bug that only happens on certain vid
cards?

-- 
Regards,
Tonik

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS a-- s+: d- C++(---) U>+++ W++ w++$ t-
R- Y tv+ b(++) e r y+ Q++++
------END GEEK CODE BLOCK------
http://www.e-mail.ru

---

---
Your free mail service
http://www.e-mail.ru

_______________________________________________
twilight-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/twilight-devel

Reply via email to