diff options
author | Brian Paul <[email protected]> | 2012-09-15 10:30:20 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-09-17 19:49:26 -0600 |
commit | ce2ae3c3a2e4bef78047a28723f2d06264d6e4b6 (patch) | |
tree | 642a0e91e44e44ea3b55d3321b68c9d13a76d745 /src/mesa/main/teximage.h | |
parent | b1874ec931466ce2174f6663d4a8f0595cee933a (diff) |
mesa: refactor _mesa_test_proxy_teximage() code
Basically, move the body into a new _mesa_legal_texture_dimensions() function.
More refactoring to come.
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/mesa/main/teximage.h')
-rw-r--r-- | src/mesa/main/teximage.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/teximage.h b/src/mesa/main/teximage.h index 36fd1c2bc5d..340297f82a2 100644 --- a/src/mesa/main/teximage.h +++ b/src/mesa/main/teximage.h @@ -142,6 +142,11 @@ extern GLenum _mesa_es_error_check_format_and_type(GLenum format, GLenum type, unsigned dimensions); +extern GLboolean +_mesa_legal_texture_dimensions(struct gl_context *ctx, GLenum target, + GLint level, GLint width, GLint height, + GLint depth, GLint border); + /** * Lock a texture for updating. See also _mesa_lock_context_textures(). */ |