diff options
author | Aapo Tahkola <[email protected]> | 2005-03-18 14:44:27 +0000 |
---|---|---|
committer | Aapo Tahkola <[email protected]> | 2005-03-18 14:44:27 +0000 |
commit | 6bd390743da6e01410f3fc124d79956629e2a6f2 (patch) | |
tree | 0ebe32a26233b0cd84187158d85cca802bb7fa42 /src/mesa/drivers/dri/r300/r300_state.c | |
parent | 2fb2e27e28569371bd0d12aa74504d53bb04edc0 (diff) |
Misc fixes.
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_state.c')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_state.c b/src/mesa/drivers/dri/r300/r300_state.c index c10e5dbf967..7cdc1733bd8 100644 --- a/src/mesa/drivers/dri/r300/r300_state.c +++ b/src/mesa/drivers/dri/r300/r300_state.c @@ -1435,7 +1435,7 @@ void r300_setup_rs_unit(GLcontext *ctx) cur_reg = 0; r300->hw.rr.cmd[R300_RR_ROUTE_0] = 0; - if (r300->current_vp != NULL && ctx->VertexProgram._Enabled) + if (VERTPROG_ACTIVE(ctx)) vap_outputs = r300->current_vp->outputs; else vap_outputs = r300->state.render_inputs; @@ -1693,7 +1693,7 @@ void r300SetupVertexShader(r300ContextPtr rmesa) 0x400 area might have something to do with pixel shaders as it appears right after pfs programming. 0x406 is set to { 0.0, 0.0, 1.0, 0.0 } most of the time but should change with smooth points and in other rare cases. */ //setup_vertex_shader_fragment(rmesa, 0x406, &unk4); - if(rmesa->current_vp != NULL && ctx->VertexProgram._Enabled){ + if(VERTPROG_ACTIVE(ctx)){ r300SetupVertexProgram(rmesa); return ; } |