Direct3D CreateDevice fails

Started by
0 comments, last by vNistelrooy 18 years, 8 months ago
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??
"C lets you shoot yourself in the foot rather easily. C++ allows you to reuse the bullet!"
Advertisement
Alright solved.
"C lets you shoot yourself in the foot rather easily. C++ allows you to reuse the bullet!"

This topic is closed to new replies.

Advertisement