Refactor start-up check for OpenGL
commitcaa5fda814ab03541052a5e2a66d04dc327a4972
authorOlly Betts <olly@survex.com>
Tue, 19 Jun 2018 05:25:42 +0000 (19 17:25 +1200)
committerOlly Betts <olly@survex.com>
Tue, 19 Jun 2018 05:25:42 +0000 (19 17:25 +1200)
treec55113b236fbccca6745ffcba4694d2b9a83f637
parent81b44f06b0034ac9213045bae22b626fab8bdf1f
Refactor start-up check for OpenGL

Rather than using the apparently totally undocumented wxGLApp class,
use the documented wxGLCanvas::IsDisplaySupported() static method
which allows moving this OpenGL-specific code into the same source
file as the other OpenGL-specific code, means we can merge the two
divergent versions of the list of attributes we ask for, and also
likely fixes handling of the case when double buffering isn't available.
src/aven.cc
src/aven.h
src/gla-gl.cc
src/gla.h