to add the register pointer and release pointer in routine.cpp for direct3dPtr