XNA Creators Club Online
Page 1 of 1 (3 items)
Sort Posts: Previous Next

add DXGI_SWAP_CHAIN_FLAG_NONPREROTATED "on the fly"

Last post 4/20/2009 5:23 PM by Brian Klamik. 2 replies.
  • 2/18/2009 10:19 AM

    add DXGI_SWAP_CHAIN_FLAG_NONPREROTATED "on the fly"

    Hi,

    when a windowed swapchain is created with the DXGI_SWAP_CHAIN_FLAG_NONPREROTATED flag, DXGI return this error

    " DXGI Error: IDXGIFactory::CreateSwapChain:  can only be specified in DXGI_SWAP_CHAIN_DESC::Flags, when DXGI_SWAP_CHAIN_DESC::Windowed is FALSE, since the flag only affects fullscreen swap chains "

    Why this is not only a warning ? Is there a way to add the flag after calling a SetFullscreenState(true) then ?

    Thanks.
  • 4/3/2009 1:43 PM In reply to

    Re: add DXGI_SWAP_CHAIN_FLAG_NONPREROTATED "on the fly"

    up ?
  • 4/20/2009 5:23 PM In reply to

    Re: add DXGI_SWAP_CHAIN_FLAG_NONPREROTATED "on the fly"

    ResizeBuffers takes the flags as well. ResizeBuffers is expected to be called by your WM_SIZE handler, which will be invoked after you call SetFullscreenState( TRUE ).
Page 1 of 1 (3 items) Previous Next