From 725ebc4657d27349ed586e5c178d5b1a971587cd Mon Sep 17 00:00:00 2001 From: Axel Davy Date: Sun, 26 Jan 2020 20:40:00 +0100 Subject: st/nine: Fix a crash if the state is not initialized I don't remember exactly the conditions of the crash, but I had a trace which was crashing in the gallium driver before doing any rendering (something about viewports being not initialized). It's not the first time we hit such a problem, so rather than investigating that crash, I chose to just initialize every states at device creation. Signed-off-by: Axel Davy Part-of: --- src/gallium/frontends/nine/device9.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/frontends/nine/device9.c') diff --git a/src/gallium/frontends/nine/device9.c b/src/gallium/frontends/nine/device9.c index fd8e9274327..b18695deadc 100644 --- a/src/gallium/frontends/nine/device9.c +++ b/src/gallium/frontends/nine/device9.c @@ -517,6 +517,7 @@ NineDevice9_ctor( struct NineDevice9 *This, nine_state_init_sw(This); ID3DPresentGroup_Release(This->present); + nine_context_update_state(This); /* Some drivers needs states to be initialized */ nine_csmt_process(This); return D3D_OK; -- cgit v1.2.3