mesa/i965/i915/r200: eliminate gl_vertex_program
Here we move the only field in gl_vertex_program to the ARB program fields in gl_program. Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
@@ -399,14 +399,14 @@ _mesa_fetch_state(struct gl_context *ctx, const gl_state_index state[],
|
||||
COPY_4V(value, ctx->VertexProgram.Parameters[idx]);
|
||||
return;
|
||||
case STATE_LOCAL:
|
||||
if (!ctx->VertexProgram.Current->Base.LocalParams) {
|
||||
ctx->VertexProgram.Current->Base.LocalParams =
|
||||
if (!ctx->VertexProgram.Current->LocalParams) {
|
||||
ctx->VertexProgram.Current->LocalParams =
|
||||
calloc(MAX_PROGRAM_LOCAL_PARAMS, sizeof(float[4]));
|
||||
if (!ctx->VertexProgram.Current->Base.LocalParams)
|
||||
if (!ctx->VertexProgram.Current->LocalParams)
|
||||
return;
|
||||
}
|
||||
|
||||
COPY_4V(value, ctx->VertexProgram.Current->Base.LocalParams[idx]);
|
||||
COPY_4V(value, ctx->VertexProgram.Current->LocalParams[idx]);
|
||||
return;
|
||||
default:
|
||||
_mesa_problem(ctx, "Bad state switch in _mesa_fetch_state()");
|
||||
|
Reference in New Issue
Block a user