Jire
Jire

Reputation: 10320

JOGL: How can change GLCapabilities of an existing GLCanvas?

How can change GLCapabilities of an existing GLCanvas?

I want to do this so that I can change FSAA (antialias) samples without recreating the GLCanvas.

Upvotes: 0

Views: 98

Answers (1)

Nicol Bolas
Nicol Bolas

Reputation: 474446

You cannot. The nature of the default framebuffer is defined at context-creation time. It cannot be changed without destroying and re-creating the context.

Your best bet is to use FBOs and do your rendering to user-created images, then blit to the default framebuffer. That way, if you want to change your anti-aliasing techniques, you can do so without rebuilding the context.

Upvotes: 4

Related Questions