Pbo out of memory error

Hello,

I’m doing something like this:

[codebox]pbo->bind(PACK)

glReadPixel()

pbo->unbind()

pbo->bind(UNPACK)

glDrawPixel()

pbo->unbind()

cudaGLRegisterBufferObject(pbo)

cudaGLUnregisterBufferObject(pbo)[/codebox]

And cudaGLRegisterBufferObject returns a out of memory error. If I don’t do the second bind block it works.

Is it the expected behavior?

Thank you for your help

!