summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormdaenzer <mdaenzer>2003-01-12 15:08:22 +0000
committermdaenzer <mdaenzer>2003-01-12 15:08:22 +0000
commit98024a2db89cb890af94901c58468aea1d79b6cc (patch)
treeb69e9592bf047387d57b385a24feac48dbdff37c
parent4508089e32a3a942b0646aca5d1b874282adfcaa (diff)
don't segfault when spec or fog stride is 0mesa-4-0-4-20030114
-rw-r--r--xc/extras/Mesa/src/tnl_dd/t_dd_vbtmp.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/xc/extras/Mesa/src/tnl_dd/t_dd_vbtmp.h b/xc/extras/Mesa/src/tnl_dd/t_dd_vbtmp.h
index 16bd770bb..b486db5bd 100644
--- a/xc/extras/Mesa/src/tnl_dd/t_dd_vbtmp.h
+++ b/xc/extras/Mesa/src/tnl_dd/t_dd_vbtmp.h
@@ -1,4 +1,3 @@
-/* $Id: t_dd_vbtmp.h,v 1.1.1.1 2002/10/22 13:07:00 alanh Exp $ */
/*
* Mesa 3-D graphics library
@@ -216,7 +215,7 @@ static void TAG(emit)( GLcontext *ctx,
}
}
- if (VB->importable_data) {
+ if (VB->importable_data || (DO_SPEC && !spec_stride) || (DO_FOG && !fog_stride)) {
/* May have nonstandard strides:
*/
if (start) {
@@ -708,7 +707,7 @@ static void TAG(interp)( GLcontext *ctx,
}
}
else if (DO_PTEX) {
- dst->pv.q0 = 0.0; /* must be a valid float on radeon */
+ dst->pv.q1 = 0.0; /* must be a valid float on radeon */
}
if (DO_TEX2) {
if (DO_PTEX) {