Branimir Karadžić 10 years ago
parent
commit
60f068c648
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/27-terrain/terrain.cpp

+ 1 - 1
examples/27-terrain/terrain.cpp

@@ -69,7 +69,7 @@ class Terrain : public entry::AppI
 		m_debug  = BGFX_DEBUG_TEXT;
 		m_debug  = BGFX_DEBUG_TEXT;
 		m_reset  = BGFX_RESET_VSYNC;
 		m_reset  = BGFX_RESET_VSYNC;
 
 
-		bgfx::init(bgfx::RendererType::Direct3D11, args.m_pciId);
+		bgfx::init(args.m_type, args.m_pciId);
 		bgfx::reset(m_width, m_height, m_reset);
 		bgfx::reset(m_width, m_height, m_reset);
 
 
 		// Enable m_debug text.
 		// Enable m_debug text.