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.
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.