[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mesa3d-dev
Subject:    [Mesa3d-dev] [Bug 7549] New: glPushArrayState does not save texture
From:       bugzilla-daemon () annarchy ! freedesktop ! org
Date:       2006-07-17 5:13:59
Message-ID: 20060717051359.BFCC0130067 () annarchy ! freedesktop ! org
[Download RAW message or body]

Please do not reply to this email: if you want to comment on the bug, go to    
       
the URL shown below and enter yourcomments there.     
   
https://bugs.freedesktop.org/show_bug.cgi?id=7549          
     
           Summary: glPushArrayState does not save texture unit index
           Product: Mesa
           Version: 6.5
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: GLX
        AssignedTo: mesa3d-dev@lists.sourceforge.net
        ReportedBy: wiyzf0502@sneakemail.com


__glXPushArrayState does not store the texture unit index when it fills in the
stack, but __glXPopArrayState _does_ read it back. The stack is allocated with
malloc(), so any random garbage can (and will) reside in this index, meaning
that the array is not found and the assertion at indirect_vertex_array.c:1358
will trigger.

The solution is a simple one-line patch:
--- indirect_vertex_array.c     2006-02-22 12:22:24.000000000 -0500
+++ indirect_vertex_array-patched.c     2006-07-17 01:11:26.000000000 -0400
@@ -1773,6 +1773,7 @@
        stack[i].user_stride = arrays->arrays[i].user_stride;
        stack[i].count = arrays->arrays[i].count;
        stack[i].key = arrays->arrays[i].key;
+       stack[i].index = arrays->arrays[i].index;
        stack[i].enabled = arrays->arrays[i].enabled;
     }          
     
     
--           
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email         
     
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic