Hi Vincent,

You can only safely create OpenGL objects from a thread that has a graphics
context current, which limits you to doing things in a draw callback or a
custom drawable.

Robert.

On 3 November 2012 11:50, Vincent Wang <[email protected]> wrote:

> Hi,
>
> I have a problem when using CUDA and OSG.
> I can not create a new buffer in the updatecallback, or it can be created
> in the camera drawcallback but after copy data from CUDA result to the
> buffer, I can not use it as multitexcoords and can not get it out of the
> camera drawcallback.
> Does any one doing like this? I really have not any idea with it.
>
> Thank you!
>
> Cheers,
> Vincent
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=50963#50963
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to