Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

access violation on rtcGetBufferData() #470

Open
stefano-m5 opened this issue Jan 2, 2024 · 0 comments
Open

access violation on rtcGetBufferData() #470

stefano-m5 opened this issue Jan 2, 2024 · 0 comments

Comments

@stefano-m5
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant