When run through this code –
subdivide(&vdata[tindices[i][0][0],
&vdata[tindices[i][1][0],
&vdata[tindices[i][2]][0]);
i get exception message –
the value of esp was not properly save across a function call.This is usually a result of calling a function declare with one calling convention with a function pointer delcared with a different calling convention.
Originally posted by qlwuu: the value of esp was not properly save across a function call.This is usually a result of calling a function declare with one calling convention with a function pointer delcared with a different calling convention.
Actually, much more often it’s a result of a stack corruption - out of range access, incorrect poiter math, etc.