From 2e4ddfd04770e1bbec088af5335f0ed4ebce4fc0 Mon Sep 17 00:00:00 2001 From: spanne Date: Mon, 3 Jan 2005 12:42:09 +0000 Subject: [PATCH] Improved error message a bit when no suitable visual could be found (X11 only). git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@556 7f0cb862-5218-0410-a997-914c9d46530a --- freeglut/freeglut/ChangeLog | 3 +++ freeglut/freeglut/src/freeglut_window.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/freeglut/freeglut/ChangeLog b/freeglut/freeglut/ChangeLog index bb25827..732fb76 100644 --- a/freeglut/freeglut/ChangeLog +++ b/freeglut/freeglut/ChangeLog @@ -888,3 +888,6 @@ default. (230) Removed acconfig.h, it is deprecated and we don't need it. (231) Cleaned up and autoconf'd the header inclusion story a bit. + +(232) Improved error message a bit when no suitable visual could be found +(X11 only). diff --git a/freeglut/freeglut/src/freeglut_window.c b/freeglut/freeglut/src/freeglut_window.c index dc5f5d7..3815716 100644 --- a/freeglut/freeglut/src/freeglut_window.c +++ b/freeglut/freeglut/src/freeglut_window.c @@ -302,7 +302,7 @@ void fgOpenWindow( SFG_Window* window, const char* title, } FREEGLUT_INTERNAL_ERROR_EXIT( window->Window.VisualInfo != NULL, - "Unable to get window visual info", "fgOpenWindow" ); + "Visual with necessary capabilities not found", "fgOpenWindow" ); /* * XXX HINT: the masks should be updated when adding/removing callbacks.