I have the standard creation code for a device and swap chain. For some reason, if I don't initialize the dwCreateFlags variable (the same as what holds the debug device flag, which is bitwise ORed onto dwCreateFlags), I get this message in the output window. The value of dwCreateFlags then is 3435973838. I know this is just the way C++ does things BTW.
D3D10: ERROR: ID3D10Device::CreateTexture2D: The Sample descriptor is invalid for a D3D10.0 level driver. DXGI_SAMPLE_DESC::Count (value = 1) must be between 1 and 32, inclusively. For 1 samples, the current graphics implementation only supports DXGI_SAMPLE_DESC::Quality (value = 0) less than 0. <-- if 0 is shown here for Quality, this means the graphics implementation doesn't support this number of samples. Use CheckMultisampleQualityLevels to detect what the graphics implementation supports. [ STATE_CREATION ERROR #93: CREATETEXTURE2D_INVALIDSAMPLES ]
Why do I only get this message when I make the mistake of not initializing dwCreateFlags? It looks remotely like debug info, which surely should be shown with just D3D10_CREATE_DEVICE_DEBUG?
My code for starting D3D is pretty much identical to Tutorial 01 BTW.
Cheers ~ Slug