~random-stuff/random-stuff/yabause

Viewing all changes in revision 2708.

  • Committer: Guillaume Duhamel
  • Author(s): Guillaume
  • Date: 2017-01-17 09:45:06 UTC
  • Revision ID: git-v1:ccf58d223c9542950832116117e5f3e130a2a17d
Detection of OpenGL failure and fallback

This change introduce the following changes:

- A new global variable "opengl disabled" used by the software renderer
  to know if it should work in "full software" or "opengl" mode;

- In the Qt port, both YabauseGL (for OpenGL) and YabauseSoftGL (for
  "full software") are now available at the same time (they used to
  be mutualy exclusive, using preprocessor black magic);

- A new YabauseGLProxy used as... yeah, you guess it: a proxy to the
  two previous objects, to avoid adding too much logic in Yabause UI;

- When Qt port fails to init Yabause, it sets the "opengl disabled"
  global variable, tells YabauseGLProxy to switch to software rendering
  again then tries to init again.

The result is you can now use "full software" mode without recompiling.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: