diff options
author | Brian Paul <[email protected]> | 2014-08-15 16:28:59 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2014-08-16 06:48:44 -0600 |
commit | cf8b680f40a4d1a48be82798b7a09da2d828bee5 (patch) | |
tree | c2d1ebcf39e3275ef5c96b7644266c54500c53e9 /src/mesa/main/texgetimage.c | |
parent | 9b4c6da7f08f3e1ae5df2d51e2b1dcf316d19288 (diff) |
mesa: move _mesa_compressed_texture_pixel_storage_error_check()
to pixelstore.c, add const qualifier to the 'packing' parameter.
Add comments.
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/main/texgetimage.c')
-rw-r--r-- | src/mesa/main/texgetimage.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c index 9b2f72150ec..2c54e4a35f1 100644 --- a/src/mesa/main/texgetimage.c +++ b/src/mesa/main/texgetimage.c @@ -40,6 +40,7 @@ #include "mtypes.h" #include "pack.h" #include "pbo.h" +#include "pixelstore.h" #include "texcompress.h" #include "texgetimage.h" #include "teximage.h" @@ -1008,9 +1009,9 @@ getcompressedteximage_error_check(struct gl_context *ctx, GLenum target, /* Check for invalid pixel storage modes */ dimensions = _mesa_get_texture_dimensions(texImage->TexObject->Target); - if (!_mesa_compressed_texture_pixel_storage_error_check(ctx, dimensions, - &ctx->Pack, - "glGetCompressedTexImageARB")) { + if (!_mesa_compressed_pixel_storage_error_check(ctx, dimensions, + &ctx->Pack, + "glGetCompressedTexImageARB")) { return GL_TRUE; } |