Sign in to follow this  

Invalid value for MultiSampleQuality

Recommended Posts

hey guys,

i have a problem with multisamplequalities, or rather with allocating them to the presentationstructure. i use CheckDeviceMultiSampleType to get the maximum of quality levels and this works fine (returns 1 level), but when inserting it into the presentationstructure (PresentParams.MultiSampleQuality = MaxMultiSampleQualites;) i get this error:

[code]Direct3D9: (ERROR) :Invalid value for MultiSampleQuality. ValidatePresentParameters fails.
D3D9 Helper: IDirect3D9::CreateDevice failed: D3DERR_INVALIDCALL[/code]

many thanks in advance!

Share this post

Link to post
Share on other sites
I know nothing about DirectX and XNA but I found this on msdn
[quote]The multisample quality level. The valid range is from 0 to one less than the value returned by CheckDeviceMultiSampleType.[/quote]
So if MaxMultiSampleQualites == CheckDeviceMultiSampleType you have an error.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this