[Mesa-dev] [PATCH] teximage: Remove unnecessary compressed format check

Marek Olšák maraeo at gmail.com
Tue Oct 9 05:44:17 PDT 2012


Thanks and sorry for breaking the build.

I pushed the patch.

Marek

On Tue, Oct 9, 2012 at 5:41 AM, Daniel Stone <daniel at fooishbar.org> wrote:
> Ever since df4a88ac, the check for compressed formats has been
> unnecessary.  And ever since cb72ec5f, the build has been broken with
> FEATURE_ES.  Remove it, as it does nothing.
>
> Signed-off-by: Daniel Stone <daniel at fooishbar.org>
> ---
>  src/mesa/main/teximage.c |    4 ----
>  1 file changed, 4 deletions(-)
>
> diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
> index d7156e6..6c8bb85 100644
> --- a/src/mesa/main/teximage.c
> +++ b/src/mesa/main/teximage.c
> @@ -1977,10 +1977,6 @@ compressed_texture_error_check(struct gl_context *ctx, GLint dimensions,
>     case GL_PALETTE8_R5_G6_B5_OES:
>     case GL_PALETTE8_RGBA4_OES:
>     case GL_PALETTE8_RGB5_A1_OES:
> -      _mesa_cpal_compressed_format_type(internalFormat, &choose_format,
> -                                       &choose_type);
> -      proxy_format = choose_format;
> -
>        /* check level (note that level should be zero or less!) */
>        if (level > 0 || level < -maxLevels) {
>          reason = "level";
> --
> 1.7.10.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list