if (span->interpMask & SPAN_FLAT) {
/* constant color */
switch (span->array->ChanType) {
+#if CHAN_BITS != 32
case GL_UNSIGNED_BYTE:
{
GLubyte (*rgba)[4] = specular
}
}
break;
+#endif
case GL_FLOAT:
{
GLfloat (*rgba)[4] = specular ?
else {
/* interpolate */
switch (span->array->ChanType) {
+#if CHAN_BITS != 32
case GL_UNSIGNED_BYTE:
{
GLubyte (*rgba)[4] = specular
}
}
break;
+#endif
case GL_FLOAT:
{
GLfloat (*rgba)[4] = specular ?
const GLuint numDrawBuffers = fb->_NumColorDrawBuffers[output];
GLchan rgbaSave[MAX_WIDTH][4];
GLuint buf;
+ const GLenum chanType = span->array->ChanType; /* save */
if (numDrawBuffers > 0) {
if (fb->_ColorDrawBuffers[output][0]->DataType
4 * span->end * sizeof(GLchan));
}
} /* for buf */
+
+ span->array->ChanType = chanType; /* restore */
}
span->interpMask = origInterpMask;