[Mesa-dev] [PATCH] svga: Check vs and fs pointer when updating states.
Brian Paul
brianp at vmware.com
Mon Mar 5 15:44:39 PST 2012
On 03/03/2012 04:17 AM, Vic Lee wrote:
> This patch fix segfault if an application clears a render target
> before setting any vertex or fragment shaders, which is a legal
> situation.
I can't seem to trigger this problem with a test program. Can you
post a test case?
The first part of your patch looks OK but I don't see why the second
part is needed. We already check svga->curr.fs before dereffing the
pointer.
-Brian
More information about the mesa-dev
mailing list