diff options
author | Ian Romanick <[email protected]> | 2012-08-13 09:27:00 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2012-08-14 14:39:33 -0700 |
commit | 342be8aa88819446220bba680d8e0b628078156f (patch) | |
tree | 0b89a33e4596c2a40d793ca9d18e794062e8b419 /src/mesa/main/api_exec.c | |
parent | 12249b9c96da730ea958976908e1bbb88bda9789 (diff) |
mesa: Add skeleton implementations of glInvalidate{Sub,}Framebuffer
These are part of GL_ARB_invalidate_subdata and OpenGL ES 3.0.
v2: Reject aux buffers in core context, and use _mesa_is_desktop_gl and
_mesa_is_gles3. Both suggested by Ken.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main/api_exec.c')
-rw-r--r-- | src/mesa/main/api_exec.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/main/api_exec.c b/src/mesa/main/api_exec.c index f366f5f0ead..bdef1098373 100644 --- a/src/mesa/main/api_exec.c +++ b/src/mesa/main/api_exec.c @@ -827,6 +827,10 @@ _mesa_create_exec_table(struct gl_context *ctx) _mesa_init_sampler_object_dispatch(exec); #endif + if (_mesa_is_desktop_gl(ctx) || _mesa_is_gles3(ctx)) { + SET_InvalidateSubFramebuffer(exec, _mesa_InvalidateSubFramebuffer); + SET_InvalidateFramebuffer(exec, _mesa_InvalidateFramebuffer); + } return exec; } |