OSDN Git Service

mesa: Convert colors if span ChanType and renderbuffer data type don't match
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 31 Jan 2012 18:29:06 +0000 (11:29 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 2 Feb 2012 17:17:49 +0000 (10:17 -0700)
commit65b9c1dee6edbafb46f782ecc525c1dbdbf76e0d
tree546401783dc14011cf50276d8152531070cb6e99
parentc34947dbb10f7211c351d02a3f64df284a40ee49
mesa: Convert colors if span ChanType and renderbuffer data type don't match

This is a partial revert of f9874fe.  It turns out that the types
don't always match.  Specifically, this can happen when doing
glCopyPixels from a float FBO to a RGBA8 FBO.

NOTE: This is a candidate for the 8.0 branch.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=45429
Reviewed-by: Brian Paul <brianp@vmware.com>
(cherry picked from commit 660ed923ded3552e023ef8c3dd9f92e6792f1bd2)
src/mesa/swrast/s_span.c