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





--- Comment #5 from Brian Paul <[EMAIL PROTECTED]>  2008-09-02 08:27:04 PST ---
I don't see a real problem here.  The program prints:

After invocation of glColor3i(10, 10300, 14230) interface, the current color
was set to (10, 10300, 14230, 2147482496)

Internally, the color you provide with glColor3i is converted to floats.  If I
call glGetFloatv(GL_CURRENT_COLOR) I get [0.000000 0.000005 0.000007 1.000000]
so I know that alpha is getting handled correctly in that regard.

Converting floats in [-1,1] to signed ints in [-2147483648, 2147483647] (aka
[0x80000000, 0x7fffffff]) is a little tricky so 2147482496 is off by a little
bit but probably close enough.

NVIDIA's driver produces the same result, BTW.


-- 
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

Reply via email to