EDIT: I didn't mean to post this three times. It gave me an error the first two tries and I didn't realize it went through anyway.
XMVECTOR comparisons such as XMVectorNearEqual or XMVectorGreater are not working in debug mode, but they work in release mode.
An example:
XMVECTOR test1 = XMVectorSet(1, 1, 1, 1);
XMVECTOR test2 = XMVectorSet(1, 1, 1, 1);
XMFLOAT4 nearEqualTest;
XMStoreFloat4(&nearEqualTest, XMVectorNearEqual(test1, test2, XMVectorReplicate(.01f)));
if(nearEqualTest.x == 0xFFFFFFFF)
{
exit(5);
}
This code correctly exits in release mode, but not debug. It shows up as -1.QNAN
For reference, this is the function documentation
http://msdn.microsoft.com/en-us/library/windows/desktop/microsoft.directx_sdk.comparison.xmvectornearequal(v=vs.85).aspx