diff options
author | Fredrik Höglund <fredrik@kde.org> | 2015-05-10 20:56:18 +0200 |
---|---|---|
committer | Fredrik Höglund <fredrik@kde.org> | 2015-05-14 15:48:17 +0200 |
commit | bebf3c6ab314bde05ac5a3b4d3e63fd36243c58e (patch) | |
tree | 9f08956364dd01594b1e694807ca83126641bd1d | |
parent | 9e7149c8986348bf9567f049444783ef52775f4e (diff) | |
download | external_mesa3d-bebf3c6ab314bde05ac5a3b4d3e63fd36243c58e.zip external_mesa3d-bebf3c6ab314bde05ac5a3b4d3e63fd36243c58e.tar.gz external_mesa3d-bebf3c6ab314bde05ac5a3b4d3e63fd36243c58e.tar.bz2 |
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>
-rw-r--r-- | src/mesa/main/pipelineobj.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/pipelineobj.c b/src/mesa/main/pipelineobj.c index 0fefa7d..a33cdd1 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); } |