http://bugs.freedesktop.org/show_bug.cgi?id=11629
Summary: texture 1D's border not comply with internal format
Product: Mesa
Version: CVS
Platform: Other
OS/Version: Linux (All)
Status: NEW
Severity: trivial
Priority: lowest
Component: Drivers/DRI/i915
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
I wrote below code:
GLfloat bcolor [] = {0.5, 0.8, 0.6, 0.4 };
glTexParameterf(GL_TEXTURE_1D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_BORDER);
glTexParameterf(GL_TEXTURE_1D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_BORDER);
glTexImage1D(GL_TEXTURE_1D, 0, GL_LUMINANCE,
64, 0, GL_RGBA, GL_FLOAT, (unsigned char *)texBuf);
glTexParameterfv(GL_TEXTURE_1D, GL_TEXTURE_BORDER_COLOR, bcolor);
Then draw a polygon. The texture object beyone the range[0,1] will use the
border color.
With i915 driver, the texel color on border is: 0.501961 0.800000 0.600000
With xlib and i965 driver, the texel color on border is: 0.501961 0.501961
0.501961
It seems xlib and i965 driver use internal format(GL_LUMINANCE) to store border
texel, but i915 driver store the border texel separately.
--
Configure bugmail: http://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.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel