Skip to content

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

Merged
SergioRAgostinho merged 1 commit into
PointCloudLibrary:masterfrom
gdlg:simulation_gluint_fix
Mar 2, 2018
Merged

Use GLuint rather than size_t to represent OpenGL indices.#2238
SergioRAgostinho merged 1 commit into
PointCloudLibrary:masterfrom
gdlg:simulation_gluint_fix

Conversation

@gdlg

@gdlg gdlg commented Mar 1, 2018

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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