diff options
author | José Fonseca <[email protected]> | 2011-11-09 19:29:37 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2011-11-14 10:06:01 +0000 |
commit | c88f3e0374620f18cf38d9fc3c45d14bc53f62b2 (patch) | |
tree | 05de7d375c47328da0097a62cbf239b442de85c4 /src/gallium/drivers/llvmpipe/lp_screen.c | |
parent | 9e29cdbe95810de8658dfd1cabf1a7d87264c2f7 (diff) |
llvmpipe: Make more resilient to out-of-memory situations.
Most of the code was alright, but we were missing a few paths.
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_screen.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_screen.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c index 942ec623cb4..fac13e7dda9 100644 --- a/src/gallium/drivers/llvmpipe/lp_screen.c +++ b/src/gallium/drivers/llvmpipe/lp_screen.c @@ -399,14 +399,13 @@ llvmpipe_create_screen(struct sw_winsys *winsys) return NULL; #endif - screen = CALLOC_STRUCT(llvmpipe_screen); - #ifdef DEBUG LP_DEBUG = debug_get_flags_option("LP_DEBUG", lp_debug_flags, 0 ); #endif LP_PERF = debug_get_flags_option("LP_PERF", lp_perf_flags, 0 ); + screen = CALLOC_STRUCT(llvmpipe_screen); if (!screen) return NULL; |