renderer: reinit after reset

if we get reset called we need to reinit certains things
we've destroyed.
macos/master
Dave Airlie 10 years ago
parent d081aba9bf
commit 86cfc6729f
  1. 5
      src/vrend_renderer.c

@ -5439,4 +5439,9 @@ void vrend_renderer_reset(void)
vrend_reset_fences(); vrend_reset_fences();
vrend_decode_reset(); vrend_decode_reset();
vrend_object_fini_resource_table(); 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);
} }

Loading…
Cancel
Save