http://bugs.freedesktop.org/show_bug.cgi?id=17685
Summary: setting material is broken
Product: Mesa
Version: 7.0.3
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: Mesa core
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
Created an attachment (id=19046)
--> (http://bugs.freedesktop.org/attachment.cgi?id=19046)
test case
I noticed problems with materials in my game - for some reason the whole scene
is rendered with one color. After some experiments I found that this is first
color passed to the glMaterialfv.
I thought it's problem with my game, so I wrote simple program which renders
two quads - and problem still exists there. I tried with hardware acceleration
(r300) and without it (LIBGL_ALWAYS_INDIRECT) - in both cases everything was
rendered in one color.
So I tried fglrx - and it worked correctly - there are different colors after
each glMaterial call. So I believe there is a bug in Mesa.
Problem doesn't exist when using GL_COLOR_MATERIAL (which is probably the
reason nobody found it before). Problem doesn't exist when using display lists.
Problem doesn't exist when using gluBeginSurface/gluEndSurface (probably it
clears some state).
Please compile attached test case with:
g++ material.cc -lSDL -lGL
On Mesa you will notice two rectangles with same color, on fglrx you will
notice two rectangles with different colors.
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev