summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/wx/system_information_dialog.cc7
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 ();
}