From 3b2bdde1b2ee93f77c01f5a94ebb7778192c15f8 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 10 May 2010 12:35:27 -0600 Subject: st/mesa: only set prevInstWrotePsiz if translating a vertex program --- src/mesa/state_tracker/st_mesa_to_tgsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/mesa/state_tracker/st_mesa_to_tgsi.c b/src/mesa/state_tracker/st_mesa_to_tgsi.c index bda8267fac0..d7c280b21b3 100644 --- a/src/mesa/state_tracker/st_mesa_to_tgsi.c +++ b/src/mesa/state_tracker/st_mesa_to_tgsi.c @@ -154,7 +154,7 @@ dst_register( struct st_translate *t, return t->temps[index]; case PROGRAM_OUTPUT: - if (index == VERT_RESULT_PSIZ) + if (t->procType == TGSI_PROCESSOR_VERTEX && index == VERT_RESULT_PSIZ) t->prevInstWrotePsiz = GL_TRUE; if (t->procType == TGSI_PROCESSOR_VERTEX) -- cgit v1.2.3