freakinpenguin's picture

Change Graphicsmode on runtime

Hi guys,
in short: Is there any possibility to change the Graphicsmode (want to switch between the amount of samples - msaa) on runtime without destroying anything and recreate the whole content?


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

Yes and no.

No, you cannot switch the GraphicsMode of a GraphicsContext without destroying and recreating the context (none of the backends support this, wgl, glx, agl, egl.)

However, you can always render to a FBO with the desired format and display that instead. That's what almost all modern games do.

freakinpenguin's picture

Thanks a lot for the information.
For following people: Here's an example: