Login  Register

Re: Sharing context between drawables issues.

Posted by Sven Gothel on Nov 06, 2015; 11:02am
URL: https://forum.jogamp.org/Sharing-context-between-drawables-issues-tp4035716p4035752.html

On 11/06/2015 11:09 AM, ZooChar [via jogamp] wrote:
>
> I could create a VAO for each mesh and for each context seperately, I suppose,
> and still share VBOs. But I think it'd be simpler to just create a single
> dummy VAO per context and keep it bound. Is this a good idea, or will it
> create too much of an overhead (assuming I don't have a lot of meshes on the
> screen)?

We already do this:
<http://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/com/jogamp/opengl/GLContext.html#getDefaultVAO%28%29>




signature.asc (828 bytes) Download Attachment