summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r300/r300_context.h
diff options
context:
space:
mode:
authorAapo Tahkola <aet@rasterburn.org>2005-03-18 14:44:27 +0000
committerAapo Tahkola <aet@rasterburn.org>2005-03-18 14:44:27 +0000
commit6bd390743da6e01410f3fc124d79956629e2a6f2 (patch)
tree0ebe32a26233b0cd84187158d85cca802bb7fa42 /src/mesa/drivers/dri/r300/r300_context.h
parent2fb2e27e28569371bd0d12aa74504d53bb04edc0 (diff)
Misc fixes.
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_context.h')
-rw-r--r--src/mesa/drivers/dri/r300/r300_context.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_context.h b/src/mesa/drivers/dri/r300/r300_context.h
index 9075f6321f..13c6fb03b9 100644
--- a/src/mesa/drivers/dri/r300/r300_context.h
+++ b/src/mesa/drivers/dri/r300/r300_context.h
@@ -566,6 +566,9 @@ struct r300_vertex_shader_state {
int unknown_ptr3; /* pointer within program space */
};
+#define VERTPROG_ACTIVE(ctx) ( ctx->VertexProgram._Enabled && (R300_CONTEXT(ctx)->current_vp != NULL) && \
+ (R300_CONTEXT(ctx)->current_vp->translated) )
+
/* r300_vertex_shader_state and r300_vertex_program should probably be merged together someday.
* Keeping them them seperate for now should ensure fixed pipeline keeps functioning properly.
*/