http://bugs.freedesktop.org/show_bug.cgi?id=15244

           Summary: glGetObjectParameteriv broken by shader vs program name
                    collision
           Product: Mesa
           Version: CVS
          Platform: Other
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Mesa core
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


Trying to debug clutter's test-fbo.c on 965, I noted that it was producing a GL
error when it seems it shouldn't be.  It's calling glGetObjectParameteriv
(which takes either a shader or a program object and DTRT) on a shader
(cogl_shader_get_parameteriv() in clutter-shader.c).  The problem is that Mesa
has two separate hash tables for shaders and programs, so you can end up with a
shader and a program with the same name, as appears to be the case here. 
glGetObjectParameteriv then finds the program of that name instead of the
object, resulting in invalid enum when it queries.  Perhaps we need to put the
two types of objects in the same table?


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to