OSDN Git Service

mesa: add a common function returning transfer ops for ReadPixels
authorMarek Olšák <maraeo@gmail.com>
Thu, 14 Mar 2013 12:15:54 +0000 (13:15 +0100)
committerMarek Olšák <maraeo@gmail.com>
Sat, 23 Mar 2013 12:17:05 +0000 (13:17 +0100)
commit2dc2066b90581ae3878ef7846f961bcb5bd07651
treeb59767789cede3c66104ddf2dd87a559ffb604e0
parentb2a4573c14b04f11525dfd33971863ee3e00f995
mesa: add a common function returning transfer ops for ReadPixels

I'll need both new functions for later. For now, it consolidates the code
for determining what the transfer ops should be and makes it a little bit
smarter.

v2: added "const"

Reviewed-by: Brian Paul <brianp@vmware.com>
Tested-by: Brian Paul <brianp@vmware.com>
src/mesa/main/readpix.c