static void
-vertex_array_attrib_format(GLuint vaobj, GLuint attribIndex, GLint size,
- GLenum type, GLboolean normalized,
+vertex_array_attrib_format(GLuint vaobj, bool isExtDsa, GLuint attribIndex,
+ GLint size, GLenum type, GLboolean normalized,
GLboolean integer, GLboolean doubles,
GLbitfield legalTypes, GLsizei sizeMax,
GLuint relativeOffset, const char *func)
if (!vao)
return;
} else {
- /* The ARB_direct_state_access spec says:
- *
- * "An INVALID_OPERATION error is generated by
- * VertexArrayAttrib*Format if <vaobj> is not [compatibility profile:
- * zero or] the name of an existing vertex array object."
- */
- vao = _mesa_lookup_vao_err(ctx, vaobj, false, func);
+ vao = _mesa_lookup_vao_err(ctx, vaobj, isExtDsa, func);
if (!vao)
return;
GLenum type, GLboolean normalized,
GLuint relativeOffset)
{
- vertex_array_attrib_format(vaobj, attribIndex, size, type, normalized,
+ vertex_array_attrib_format(vaobj, false, attribIndex, size, type, normalized,
GL_FALSE, GL_FALSE, ATTRIB_FORMAT_TYPES_MASK,
BGRA_OR_4, relativeOffset,
"glVertexArrayAttribFormat");
GLint size, GLenum type,
GLuint relativeOffset)
{
- vertex_array_attrib_format(vaobj, attribIndex, size, type, GL_FALSE,
+ vertex_array_attrib_format(vaobj, false, attribIndex, size, type, GL_FALSE,
GL_TRUE, GL_FALSE, ATTRIB_IFORMAT_TYPES_MASK,
4, relativeOffset,
"glVertexArrayAttribIFormat");
GLint size, GLenum type,
GLuint relativeOffset)
{
- vertex_array_attrib_format(vaobj, attribIndex, size, type, GL_FALSE,
+ vertex_array_attrib_format(vaobj, false, attribIndex, size, type, GL_FALSE,
GL_FALSE, GL_TRUE, ATTRIB_LFORMAT_TYPES_MASK,
4, relativeOffset,
"glVertexArrayAttribLFormat");