diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2008-05-19 09:34:28 -0600 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2008-05-19 09:34:28 -0600 |
commit | 59007a811de2d76ea00164e8f1cacb4a375d1458 (patch) | |
tree | da53224b11dac62a89c67d96f3c71baa12a6f2af /src/gallium/auxiliary/draw/draw_vs_sse.c | |
parent | 38fb20b2240e826394dbf56dc54f226c5f887631 (diff) |
if x86_get_func() returns NULL, handle it properly instead of aborting
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_vs_sse.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_vs_sse.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_vs_sse.c b/src/gallium/auxiliary/draw/draw_vs_sse.c index 5929ea76b2..e3f4e67472 100644 --- a/src/gallium/auxiliary/draw/draw_vs_sse.c +++ b/src/gallium/auxiliary/draw/draw_vs_sse.c @@ -215,6 +215,9 @@ draw_create_vs_sse(struct draw_context *draw, goto fail; vs->func = (codegen_function) x86_get_func( &vs->sse2_program ); + if (!vs->func) { + goto fail; + } return &vs->base; |