From: Fredrik Höglund Date: Sun, 10 May 2015 18:56:18 +0000 (+0200) Subject: mesa: Add ARB_direct_state_access checks in program pipeline functions X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bebf3c6ab314bde05ac5a3b4d3e63fd36243c58e;p=mesa.git mesa: Add ARB_direct_state_access checks in program pipeline functions Signed-off-by: Fredrik Höglund Reviewed-by: Adam Jackson --- diff --git a/src/mesa/main/pipelineobj.c b/src/mesa/main/pipelineobj.c index 0fefa7d568b..a33cdd139c8 100644 --- a/src/mesa/main/pipelineobj.c +++ b/src/mesa/main/pipelineobj.c @@ -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); }