[Mesa-dev] [PATCH 1/1] main: fail texture_storage() call if the size is not okay

Nicolai Hähnle nhaehnle at gmail.com
Tue May 1 09:14:47 UTC 2018


Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

On 27.04.2018 17:34, James Xiong wrote:
> From: "Xiong, James" <james.xiong at intel.com>
> 
> Signed-off-by: Xiong, James <james.xiong at intel.com>
> ---
>   src/mesa/main/texstorage.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/src/mesa/main/texstorage.c b/src/mesa/main/texstorage.c
> index 44edba3..9cb8b90 100644
> --- a/src/mesa/main/texstorage.c
> +++ b/src/mesa/main/texstorage.c
> @@ -445,6 +445,7 @@ texture_storage(struct gl_context *ctx, GLuint dims,
>               _mesa_error(ctx, GL_OUT_OF_MEMORY,
>                           "glTex%sStorage%uD(texture too large)",
>                           suffix, dims);
> +            return;
>            }
>         }
>   
> 


-- 
Lerne, wie die Welt wirklich ist,
Aber vergiss niemals, wie sie sein sollte.


More information about the mesa-dev mailing list