mesa: Add ARB_direct_state_access checks in program pipeline functions
Signed-off-by: Fredrik Höglund <fredrik@kde.org> Reviewed-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
9e7149c898
commit
bebf3c6ab3
|
@ -553,6 +553,12 @@ _mesa_CreateProgramPipelines(GLsizei n, GLuint *pipelines)
|
|||
{
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (!ctx->Extensions.ARB_direct_state_access) {
|
||||
_mesa_error(ctx, GL_INVALID_OPERATION, "glCreateProgramPipelines("
|
||||
"GL_ARB_direct_state_access is not supported)");
|
||||
return;
|
||||
}
|
||||
|
||||
create_program_pipelines(ctx, n, pipelines, true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue