Reviewed-by: Roland Scheidegger <sroland@vmware.com>
ctx->Array._DrawArrays = vbo->save.inputs;
break;
default:
- assert(0);
+ unreachable("Bad VBO drawing method");
}
ctx->NewDriverState |= ctx->DriverFlags.NewArray;
case GL_UNSIGNED_INT64_ARB:
return GL_TRUE;
default:
- assert(0);
+ unreachable("Bad vertex attribute type");
return GL_FALSE;
}
}
case GL_DOUBLE:
return GL_TRUE;
default:
- assert(0);
+ unreachable("Bad vertex attribute type");
return GL_FALSE;
}
}
case GL_UNSIGNED_INT:
return (fi_type *)default_int;
default:
- assert(0);
+ unreachable("Bad vertex format");
return NULL;
}
}
j = ((const GLuint *) elements)[i];
break;
default:
- assert(0);
+ unreachable("Unexpected index buffer type");
}
/* check element j of each enabled array */
case PRIM_OUTSIDE_BEGIN_END:
return 0;
default:
- assert(0);
+ unreachable("Unexpected primitive type");
return 0;
}
}
}
break;
default:
- assert(0);
+ unreachable("Bad vertex program mode");
}
for (attr = 0; attr < VERT_ATTRIB_MAX ; attr++) {
sz * sizeof(GLfloat));
return i;
default:
- assert(0);
+ unreachable("Unexpected primitive type");
return 0;
}
}
save->attrptr[i][0] = save->current[i][0];
break;
case 0:
- assert(0);
- break;
+ unreachable("Unexpected vertex attribute size");
}
}
}
}
break;
default:
- assert(0);
+ unreachable("Bad vertex program mode");
}
for (attr = 0; attr < VERT_ATTRIB_MAX; attr++) {