st/mesa: only set prevInstWrotePsiz if translating a vertex program

This commit is contained in:
Brian Paul
2010-05-10 12:35:27 -06:00
parent adbbaae7b9
commit 3b2bdde1b2
+1 -1
View File
@@ -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)