Re: [Mesa-dev] [PATCH] swrast: Fix crash in sPriv->swrast_loader->getImage().

2013-09-03 Thread Brian Paul
On 09/01/2013 08:19 AM, Johannes Obermayr wrote: From: Egbert Eich When glXBindTexImageEXT is called and SWrast is used there will be a crash when sPriv->swrast_loader->getImage() is called from swrastSetTexBuffer2(). Reason: no memory has been allocated for the destination thus texImage->Data

[Mesa-dev] [PATCH] swrast: Fix crash in sPriv->swrast_loader->getImage().

2013-09-01 Thread Johannes Obermayr
From: Egbert Eich When glXBindTexImageEXT is called and SWrast is used there will be a crash when sPriv->swrast_loader->getImage() is called from swrastSetTexBuffer2(). Reason: no memory has been allocated for the destination thus texImage->Data is NULL. Call ctx->Driver.TexImage2D() to initializ