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

           Summary: Clamp DEPTH_COMPONENT value too much times
           Product: Mesa
           Version: CVS
          Platform: Other
        OS/Version: Linux (All)
            Status: NEW
          Severity: minor
          Priority: low
         Component: Mesa core
        AssignedTo: mesa3d-dev@lists.sourceforge.net
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED], [EMAIL PROTECTED]


In function _mesa_unpack_depth_span (src/mesa/main/image.c), depth values are
clamped in macro DEPTH_VALUES, then clamp again in _mesa_scale_and_bias_depth
if ctx->Pixel.DepthScale != 1.0 || ctx->Pixel.DepthBias != 0.0. So DEPTH_VALUES
maybe clamped two times.

According to OpenGL spec, glDrawPixels will clamp color values in the last
step.
We need not clamp values in macro DEPTH_VALUES and we need clamp values after
_mesa_scale_and_bias_depth.

About change was introduced by commit bb02092d749ff9d58a13fd99f66154504b4f3dd1.


-- 
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/
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to