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

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to