add state vars for color matrix, pixel transfer scale&bias
cherry-picked from gallium-0.1 (068c7bd912
)
This commit is contained in:
@@ -279,6 +279,7 @@ _mesa_fetch_state(GLcontext *ctx, const gl_state_index state[],
|
||||
case STATE_MVP_MATRIX:
|
||||
case STATE_TEXTURE_MATRIX:
|
||||
case STATE_PROGRAM_MATRIX:
|
||||
case STATE_COLOR_MATRIX:
|
||||
{
|
||||
/* state[0] = modelview, projection, texture, etc. */
|
||||
/* state[1] = which texture matrix or program matrix */
|
||||
@@ -312,6 +313,9 @@ _mesa_fetch_state(GLcontext *ctx, const gl_state_index state[],
|
||||
else if (mat == STATE_PROGRAM_MATRIX) {
|
||||
matrix = ctx->ProgramMatrixStack[index].Top;
|
||||
}
|
||||
else if (mat == STATE_COLOR_MATRIX) {
|
||||
matrix = ctx->ColorMatrixStack.Top;
|
||||
}
|
||||
else {
|
||||
_mesa_problem(ctx, "Bad matrix name in _mesa_fetch_state()");
|
||||
return;
|
||||
|
Reference in New Issue
Block a user