[Mesa-dev] [PATCH] egl_dri2: Fix segmentation fault

Tomeu Vizoso tomeu at tomeuvizoso.net
Sat Aug 18 00:44:33 PDT 2012


On Sat, Aug 18, 2012 at 5:20 AM, Ian Romanick <idr at freedesktop.org> wrote:
> On 08/17/2012 10:08 AM, Paulo Alcantara wrote:
>>
>> The segmentation fault occurs when DRI2 is not loaded up and
>> dri2_setup_screen() function deferences dri2_dpy->dri2 (since it's NULL
>> at this point).
>>
>> This patch fixes the segmentation fault by checking if dri2 pointer is
>> not NULL before deferencing it.
>
>
> Which only happens with swrast, right?

But we do want to enable KHR_create_context when using swrast as well, don't we?

Regards,

Tomeu


More information about the mesa-dev mailing list