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

           Summary: DrawPixels set wrong pixel color if type is
                    UNSIGNED_SHORT and format is DEPTH_COMPONENT
           Product: Mesa
           Version: CVS
          Platform: Other
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/DRI/i915
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


When call DrawPixels, if type is UNSIGNED_SHORT and format is DEPTH_COMPONENT:
 glDrawPixels(32, 32, GL_DEPTH_COMPONENT, GL_UNSIGNED_SHORT, srcUShortPixels);

it will set wrong values.
When we read back the depth value:
glReadPixels(0, 0, 32, 32, GL_DEPTH_COMPONENT, GL_FLOAT, results);

The result values are different with original values.

The bug also exists with i965 driver.


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

Reply via email to