Jump to content
  • Advertisement
Sign in to follow this  
vNistelrooy

Direct3D CreateDevice fails

This topic is 4846 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

CreateDevice(0,D3DDEVTYPE_HAL,NULL,D3DCREATE_MULTITHREADED | D3DCREATE_HARDWARE_VERTEXPROCESSING | D3DCREATE_PUREDEVICE | D3DCREATE_NOWINDOWCHANGES,&pp,&d3dDevice) returns D3DERR_INVALIDCALL.
pp = {
	BackBufferWidth=800
	BackBufferHeight=600
	BackBufferFormat=D3DFMT_X8R8G8B8
	BackBufferCount=1
	MultiSampleType=D3DMULTISAMPLE_NONE
	MultiSampleQuality=0
	SwapEffect=D3DSWAPEFFECT_DISCARD
	hDeviceWindow=0x00000000 {unused=??? }
	Windowed=true
	EnableAutoDepthStencil=true
	AutoDepthStencilFormat=D3DFMT_D24S8
	Flags=D3DPRESENTFLAG_DISCARD_DEPTHSTENCIL
	FullScreen_RefreshRateInHz=0
	PresentationInterval=1
}
What is wrong here??

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • 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!