Wrap OpenGL functions in unsafe blocks