diff options
author | Fredrik Höglund <[email protected]> | 2015-05-10 20:48:11 +0200 |
---|---|---|
committer | Fredrik Höglund <[email protected]> | 2015-05-14 15:48:17 +0200 |
commit | 6ad0b7e07a0445e9e0f368e079c4f7b8a6757bb3 (patch) | |
tree | 2731fe750e7319b56c712baff1ae0f468d77a756 /src/mesa/main/blit.c | |
parent | 339ed0984d4f54fca91235a1df2ce3a850f6123f (diff) |
mesa: Add ARB_direct_state_access checks in FBO functions
Signed-off-by: Fredrik Höglund <[email protected]>
Reviewed-by: Adam Jackson <[email protected]>
Diffstat (limited to 'src/mesa/main/blit.c')
-rw-r--r-- | src/mesa/main/blit.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/main/blit.c b/src/mesa/main/blit.c index db8fee5a414..fac97245082 100644 --- a/src/mesa/main/blit.c +++ b/src/mesa/main/blit.c @@ -540,6 +540,13 @@ _mesa_BlitNamedFramebuffer(GLuint readFramebuffer, GLuint drawFramebuffer, GET_CURRENT_CONTEXT(ctx); struct gl_framebuffer *readFb, *drawFb; + if (!ctx->Extensions.ARB_direct_state_access) { + _mesa_error(ctx, GL_INVALID_OPERATION, + "glBlitNamedFramebuffer(GL_ARB_direct_state_access " + "is not supported)"); + return; + } + if (MESA_VERBOSE & VERBOSE_API) _mesa_debug(ctx, "glBlitNamedFramebuffer(%u %u %d, %d, %d, %d, " |