Jump to content
  • Advertisement

Dev2000

Member
  • Content Count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Dev2000

  • Rank
    Newbie

Personal Information

  • Interests
    Programming
  1. I have an game application in Direct3D 9 which create a couple of views (window's) , a couple of swap chains, and create a D3D device. When in windowed mode with a single view (window/monitor), it works fine. But when in fullscreen mode with a couple of views it fails. When I set both views' D3DPRESENT_PARAMETERS' Windowed to false, CreateDevice(...) leads to an application APPLICATION NOT RESPONDING When I set just one of the views' D3DPRESENT_PARAMETERS' Windowed to false (and the other to true), CreateDevice(...) returns D3DERR_INVALIDCALL What might be happening ? any advice is welcome. Thanks ! The code: d3d_object = Direct3DCreate9( D3D_SDK_VERSION ); if ( FAILED( d3d_object->GetDeviceCaps( D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, &d3dCaps ) ) ) { swprintf_( errbuf, _T( "Failed To obtain DeviceCaps D3D" ) ); return FALSE; } ... if ( pcgaming()->active ) //Windowed { hr = d3d_object->CreateDevice( D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, WindowHandle(), //D3DCREATE_HARDWARE_VERTEXPROCESSING | D3DCREATE_MULTITHREADED, D3DCREATE_SOFTWARE_VERTEXPROCESSING | D3DCREATE_MULTITHREADED, &present_parameters[ 0 ], &ddraw ); } else // Fullscreen { if ( WindowHandleTop() ) { hr = d3d_object->CreateDevice( D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, WindowHandle(), D3DCREATE_SOFTWARE_VERTEXPROCESSING | D3DCREATE_MULTITHREADED | D3DCREATE_ADAPTERGROUP_DEVICE, //D3DCREATE_HARDWARE_VERTEXPROCESSING present_parameters, &ddraw
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!