[Mesa-stable] [PATCH] nouveau: there may not have been a texture if the fbo was incomplete

Francisco Jerez currojerez at riseup.net
Mon Mar 17 18:32:52 PDT 2014


Ilia Mirkin <imirkin at alum.mit.edu> writes:

> Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>

Reviewed-by: Francisco Jerez <currojerez at riseup.net>

> Cc: "10.0 10.1" <mesa-stable at lists.freedesktop.org>
> ---
>  src/mesa/drivers/dri/nouveau/nouveau_fbo.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/mesa/drivers/dri/nouveau/nouveau_fbo.c b/src/mesa/drivers/dri/nouveau/nouveau_fbo.c
> index ae50fe0..6c479f5 100644
> --- a/src/mesa/drivers/dri/nouveau/nouveau_fbo.c
> +++ b/src/mesa/drivers/dri/nouveau/nouveau_fbo.c
> @@ -265,7 +265,8 @@ static void
>  nouveau_finish_render_texture(struct gl_context *ctx,
>  			      struct gl_renderbuffer *rb)
>  {
> -	texture_dirty(rb->TexImage->TexObject);
> +	if (rb && rb->TexImage)
> +		texture_dirty(rb->TexImage->TexObject);
>  }
>  
>  static int
> -- 
> 1.8.3.2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 229 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-stable/attachments/20140318/f8565ce9/attachment.sig>


More information about the mesa-stable mailing list