Implement texture locking