mesa: Add support for querying GL_VERTEX_ATTRIB_ARRAY_LONG
This parameter was added in OpenGL 4.3 and GL_ARB_direct_state_access. Reviewed-by: Laura Ekstrand <laura@jlekstrand.net>
This commit is contained in:
parent
4f5160300d
commit
2ad0268871
|
@ -887,6 +887,11 @@ get_vertex_array_attrib(struct gl_context *ctx,
|
||||||
return array->Integer;
|
return array->Integer;
|
||||||
}
|
}
|
||||||
goto error;
|
goto error;
|
||||||
|
case GL_VERTEX_ATTRIB_ARRAY_LONG:
|
||||||
|
if (_mesa_is_desktop_gl(ctx)) {
|
||||||
|
return array->Doubles;
|
||||||
|
}
|
||||||
|
goto error;
|
||||||
case GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ARB:
|
case GL_VERTEX_ATTRIB_ARRAY_DIVISOR_ARB:
|
||||||
if ((_mesa_is_desktop_gl(ctx) && ctx->Extensions.ARB_instanced_arrays)
|
if ((_mesa_is_desktop_gl(ctx) && ctx->Extensions.ARB_instanced_arrays)
|
||||||
|| _mesa_is_gles3(ctx)) {
|
|| _mesa_is_gles3(ctx)) {
|
||||||
|
|
Loading…
Reference in New Issue