llvmpipe: move lp_jit_screen_init() call after allocation of screen object
authorBrian Paul <brianp@vmware.com>
Mon, 29 Sep 2014 22:08:55 +0000 (16:08 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 30 Sep 2014 18:09:14 +0000 (12:09 -0600)
commit6b65847835b63a254c374a3562b54c5d58559c19
tree0d40266702aad14713adf89519def5b6546d1acd
parentb12899d752ef04ab6ac55a5bee10532b5a4ad6ce
llvmpipe: move lp_jit_screen_init() call after allocation of screen object

The screen argument isn't actually used by lp_jit_screen_init() at this
time, but let's move the call so that we pass a valid pointer.

v2: don't leak screen if lp_jit_screen_init() fails.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/drivers/llvmpipe/lp_screen.c