|
-
December 8th, 2010, 04:58 PM
#1
D3DXMatrixReflect
What is wrong with the following code?
Code:
D3DXPLANE mirrorPlane(0.0f, 0.0f, 1.0f, 0.0f); // xy plane
D3DXMATRIX R;
D3DXMatrixReflect(&R, &mirrorPlane);
When I run the program, it crashes constantly due to the D3DXMatrixReflect call. When I use the debugger, it gives the error:
Unhandled exception at 0x6366b9b6 (D3DX10d_43.dll) in dX.exe: 0xC0000005: Access violation reading location 0xffffffff.
At the top of the call stack, the yellow arrow is pointing to:
> D3DX10d_43.dll!intelsse2_D3DXMatrixReflect() + 0x22 bytes
The program crashes maybe half of the time I try to run it. What is wrong?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|