Use wrapper code instead of opengl core
Attach will not change original binding