I’m trying to enhance the “volumeRender” code included in CUDA’s samples set, so it would support multiple (sub)windows.
I coupled all required resources such as the pbo and the output memory for each window.
At the beginning I got an “unspecified driver error” on calling the cudaGLRegisterBufferObject function for the new pbo.
This problem has been solved by adding glGenBuffersARB for a dummy pbo, just to keep it busy, since the pbo’s are allocated again for each context (saw that tip somewhere on the net).
But, now I encounter different problem: No matter what kind or size of window I try to open and even I render the same volume to the additional window, I get a very partial picture on the added window (to be more accurate: I get the top-right quarter of the window and it contains the bottom-left oc the expected picture).
Does anybody have any idea about a possible reason for such a phenomenon?
Thanks in advance.