access violation on rtcGetBufferData()
stefano-m5 opened this issue · comments
stefano-m5 commented
Hi, I am new to embree and I am trying to code my first test program on VS plain C with embree 4.3 on windows.
I am defining a simple geometry with the following:
RTCBuffer vertexBuffer = rtcSetNewGeometryBuffer(mesh, RTC_BUFFER_TYPE_VERTEX, 0, RTC_FORMAT_FLOAT3, sizeof(float) * 3 ,3 * pointn);
LPVOID pbuf = rtcGetBufferData(vertexBuffer);
and I am getting an access violation on rtcGetBufferData(). What am I doing wrong?