2013년 1월 2일 수요일

xmamath crash problem.

I am using xnamath for the first time in this hobby project. yesterday I got a weird access violation at the assigning one XMMATRIX variable to another XMMATRIX variable.

GEngine->_ViewMat = ViewMat

After googling, I've found that I should not use XMVECTOR and XMMATRIX int the member variable which is allocated dynamically. That is because compiler doesn't align my class or struct with 16byte boundary. Instead of overlading new/delete operator I've decided that not using XMVECTOR for class member variables.

댓글 1개: