Added Texture locking to OpenGL2 backend.