From 86cfc6729f6409da8806cbb197b6c40632afbb59 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 4 Feb 2015 08:53:42 +1000 Subject: [PATCH] renderer: reinit after reset if we get reset called we need to reinit certains things we've destroyed. --- src/vrend_renderer.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index 3c9d14b..f5189ec 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -5439,4 +5439,9 @@ void vrend_renderer_reset(void) vrend_reset_fences(); vrend_decode_reset(); vrend_object_fini_resource_table(); + + vrend_object_init_resource_table(); + vrend_state.viewport_dirty = vrend_state.scissor_dirty = TRUE; + vrend_state.program_id = (GLuint)-1; + vrend_renderer_context_create_internal(0, 0, NULL); }