cginternals / cginternals/globjects

Buffer legacy implementation default target

Open
#340 6 comments 0 reactions 0 assignees View on GitHub
decision required feature request
Dominant language
C++
Stars
563
Forks
59
PR merge metrics
No merged PRs in 30d

Description

The current code for legacy buffer implementation use a static target by default and all calls bind this static target before calling the GL function.
So, it's not possible to have both a PBO and a VBO in a program with the current buffer class.
The solution would be to set the target as a non-static member and a setTarget would change it.

Another solution would be to remove all glBindBuffer calls from the legacy implementation but that could break other people's code.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.