Add OpenGL specific on texture bind/unbind callback

Some OpenGL extensions work by operating on a pre-bound dummy texture.
The old graphics system design had no way to do this, so this adds a
way to handle this in the most simple way i could think of.