Skip to content
Snippets Groups Projects
Commit 5b77dc47 authored by Martin Heistermann's avatar Martin Heistermann
Browse files

Fix picking bug:

On some GL implementations (mesa software rendering, some AMD cards on
Linux), picking would stop working when switching between pick targets.

The previous logic only updates a buffer when deemed necessary, however
in any case it is first invalidated via glBufferData.

I suppose nvidia graphics, where this worked, did not clear the buffer
and with some luck we got an unchanged buffer.

Fix: only use glBufferData if we actually need to change the buffer.
parent 69ee7dbf
No related branches found
No related tags found
1 merge request!28Fix wrong glBuffer usage
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment