cudaGraphicsGLRegisterImage Error

Today I tried cudaGraphicsGLRegisterImage for texture in GL_RGBA8 formate, it returned cudaErrorInvalidValue

I am working on WinXP, the driver version is 195.39

Is this a bug of the driver, or a matter about my code?