}
+static inline void
+vbo_set_vertex_format(struct gl_vertex_format* vertex_format,
+ GLubyte size, GLenum16 type)
+{
+ _mesa_set_vertex_format(vertex_format, size, type, GL_RGBA, GL_FALSE,
+ vbo_attrtype_to_integer_flag(type),
+ vbo_attrtype_to_double_flag(type));
+}
+
+
/**
* Return default component values for the given format.
* The return type is an array of fi_types, because that's how we declare
{
static const GLfloat default_float[4] = { 0, 0, 0, 1 };
static const GLint default_int[4] = { 0, 0, 0, 1 };
+ static const GLdouble default_double[4] = { 0, 0, 0, 1 };
+ static const uint64_t default_uint64[4] = { 0, 0, 0, 1 };
switch (format) {
case GL_FLOAT:
case GL_INT:
case GL_UNSIGNED_INT:
return (fi_type *)default_int;
+ case GL_DOUBLE:
+ return (fi_type *)default_double;
+ case GL_UNSIGNED_INT64_ARB:
+ return (fi_type *)default_uint64;
default:
unreachable("Bad vertex format");
return NULL;