[Mesa-dev] [PATCH] st/mesa: Check after _mesa_create_context()

2011-07-12 Thread Emil Velikov
In some cases _mesa_create_context() can return NULL an in the mesa state tracker, we do not concider the case, which may cause issues within st_create_context_priv() This patch adds a simple check (similar to the one in the dri drivers) v2 Do not zero-out the funcs table Signed-off-by: Emil

Re: [Mesa-dev] [PATCH] st/mesa: Check after _mesa_create_context()

2011-07-12 Thread Brian Paul
On 07/11/2011 08:42 AM, Emil Velikov wrote: In some cases _mesa_create_context() can return NULL an in the mesa state tracker, we do not concider the case, which may cause issues within st_create_context_priv() This patch adds a simple check (similar to the one in the dri drivers) v2 Do not

[Mesa-dev] [PATCH] st/mesa: Check after _mesa_create_context()

2011-07-11 Thread Emil Velikov
In some cases _mesa_create_context() can return NULL an in the mesa state tracker, we do not concider the case, which may cause issues within st_create_context_priv() This patch adds a simple check (similar to the one in the dri drivers), as well as clears the function table 'funcs'

Re: [Mesa-dev] [PATCH] st/mesa: Check after _mesa_create_context()

2011-07-11 Thread Brian Paul
On 07/09/2011 06:56 AM, Emil Velikov wrote: In some cases _mesa_create_context() can return NULL an in the mesa state tracker, we do not concider the case, which may cause issues within st_create_context_priv() This patch adds a simple check (similar to the one in the dri drivers), as well as