Browse Source

Set m_rpc to NULL in order to not segfault in Log. Clearly not the best solution ever, but better than nothing for now

Daniele Bartolini 12 years ago
parent
commit
7222f85c6f
1 changed files with 1 additions and 3 deletions
  1. 1 3
      engine/Device.cpp

+ 1 - 3
engine/Device.cpp

@@ -253,6 +253,7 @@ void Device::shutdown()
 		m_rpc->execute_callbacks();
 		m_rpc->shutdown();
 		CE_DELETE(m_allocator, m_rpc);
+		m_rpc = NULL;
 	#endif
 
 	m_allocator.clear();
@@ -404,9 +405,6 @@ void Device::frame()
 	{
 		m_resource_manager->poll_resource_loader();
 
-		m_renderer->set_layer_clear(0, CLEAR_COLOR | CLEAR_DEPTH, Color4::LIGHTBLUE, 1.0f);
-		m_renderer->commit(0);
-
 		if (!m_lua_environment->call_global("frame", 1, ARGUMENT_FLOAT, last_delta_time()))
 		{
 			pause();