Explorar el Código

D3D11: Disable alt-enter.

Branimir Karadžić hace 11 años
padre
commit
cc9ed76048
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      src/renderer_d3d11.cpp

+ 5 - 0
src/renderer_d3d11.cpp

@@ -665,6 +665,11 @@ namespace bgfx
 #endif // BX_PLATFORM_WINRT
 			BGFX_FATAL(SUCCEEDED(hr), Fatal::UnableToInitialize, "Failed to create swap chain.");
 
+			DX_CHECK(m_factory->MakeWindowAssociation(g_bgfxHwnd, 0
+				| DXGI_MWA_NO_WINDOW_CHANGES
+				| DXGI_MWA_NO_ALT_ENTER
+				) );
+
 			m_numWindows = 1;
 
 			if (BX_ENABLED(BGFX_CONFIG_DEBUG) )