diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-05-09 12:59:26 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-05-10 23:43:55 +0100 |
| commit | 73bed50f5aa5bc32b09d1bae3c082b0b944ba669 (patch) | |
| tree | e03f07bd86334fea0976f1c9032936b05c775dee /src | |
| parent | c4e38c8ab8569d2bbb6da245ecf7b6eecaf97ee2 (diff) | |
Fix system information crash when OpenGL is not enabled.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/system_information_dialog.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/wx/system_information_dialog.cc b/src/wx/system_information_dialog.cc index 3a2b3bbf6..263083365 100644 --- a/src/wx/system_information_dialog.cc +++ b/src/wx/system_information_dialog.cc @@ -35,7 +35,12 @@ SystemInformationDialog::SystemInformationDialog (wxWindow* parent) : TableDialog (parent, _("System information"), 2, 1, false) { add (_("OpenGL version"), true); - add (std_to_wx((char const *) glGetString(GL_VERSION)), false); + char const * v = (char const *) glGetString (GL_VERSION); + if (v) { + add (std_to_wx(v), false); + } else { + add (_("unknown (OpenGL not enabled in DCP-o-matic)"), false); + } layout (); } |
