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

Use GLuint rather than size_t to represent OpenGL indices. #2238

Merged

Conversation

gdlg
Copy link
Contributor

@gdlg gdlg commented Mar 1, 2018

In the simulation model rendering, use GLuint rather than size_t to represent OpenGL indices.

size_t size in byte is dependent on the machine architecture.
In contrast, the OpenGL indices must be 32bits.

Specifically size_t being 64bits on a 64bits machine, it will be the wrong size for OpenGL .

size_t size in byte is dependent on the machine architecture.
In contrast, the OpenGL indices must be 32bits.

Specifically size_t does not work on any 64bits machine.
@SergioRAgostinho SergioRAgostinho added module: simulation changelog: API break Meta-information for changelog generation labels Mar 2, 2018
@SergioRAgostinho
Copy link
Member

I'm baffled by the existence of a container of indices at global scope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog: API break Meta-information for changelog generation module: simulation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants