Refactor queries of GL_(SOURCE|OPERAND)[012]_(ALPHA|RGB).
authorIan Romanick <idr@us.ibm.com>
Thu, 10 May 2007 04:49:35 +0000 (21:49 -0700)
committerIan Romanick <idr@us.ibm.com>
Thu, 10 May 2007 15:20:41 +0000 (08:20 -0700)
commite282f89a380bfbc8ad4840b535b499541635ca9f
tree68b4cd161b95a6116491acf31c71ee980a983f3d
parente2e4b60c7d9fc3618c0f9d7496c9ce3d5eee3ab5
Refactor queries of GL_(SOURCE|OPERAND)[012]_(ALPHA|RGB).

Most switch-statements that have cases for these enums already use code like:

    const GLuint idx = pname - GL_SOURCE0_RGB;
    ... texUnit->Combine.SourceRGB[idx] ...

This patch just brings the remaining bits up to speed.
src/mesa/main/texstate.c