diff options
author | Ian Romanick <[email protected]> | 2012-08-13 13:14:25 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2012-08-14 14:39:33 -0700 |
commit | 07e12c49175e0bf23dbd8bdc3afd7aa79ccc7140 (patch) | |
tree | 2f829ad01711cdd5d3adb5366d285af57c70ab7e /src/mesa/main/api_exec.c | |
parent | f241ffd48c2063557461f5b7bb2dea0b744b8bef (diff) |
mesa: Add skeleton implementations of glInvalidateTex{Sub,}Image
These are part of GL_ARB_invalidate_subdata (but not OpenGL ES 3.0).
v2: Add comment explaining why minimum dimensions are set to 1 for some
texture targets. Add default case to switch statement to silence
compiler warnings and detect new texture targets. Both changes
suggested by Brian. Also use _mesa_is_desktop_gl as 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 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/main/api_exec.c b/src/mesa/main/api_exec.c index bb5d17131ca..6b1499f4f06 100644 --- a/src/mesa/main/api_exec.c +++ b/src/mesa/main/api_exec.c @@ -827,10 +827,16 @@ _mesa_create_exec_table(struct gl_context *ctx) _mesa_init_sampler_object_dispatch(exec); #endif + if (_mesa_is_desktop_gl(ctx)) { + SET_InvalidateTexSubImage(exec, _mesa_InvalidateTexSubImage); + SET_InvalidateTexImage(exec, _mesa_InvalidateTexImage); + } + if (_mesa_is_desktop_gl(ctx) || _mesa_is_gles3(ctx)) { SET_InvalidateSubFramebuffer(exec, _mesa_InvalidateSubFramebuffer); SET_InvalidateFramebuffer(exec, _mesa_InvalidateFramebuffer); } + return exec; } |