mirror of https://github.com/vitalif/openscad
Output renderer info when OpenGL 2.0 is not found
git-svn-id: http://svn.clifford.at/openscad/trunk@525 b57f626f-c46c-0410-a088-ec61d464b74cstl_dim
parent
55b468e0fb
commit
2aaed5ab1c
|
@ -187,11 +187,19 @@ void GLView::initializeGL()
|
||||||
#ifdef ENABLE_OPENCSG
|
#ifdef ENABLE_OPENCSG
|
||||||
void GLView::display_opengl20_warning()
|
void GLView::display_opengl20_warning()
|
||||||
{
|
{
|
||||||
|
QString rendererinfo;
|
||||||
|
rendererinfo.sprintf("GLEW version %s\n"
|
||||||
|
"%s (%s)\n"
|
||||||
|
"OpenGL version %s\n",
|
||||||
|
glewGetString(GLEW_VERSION),
|
||||||
|
glGetString(GL_RENDERER), glGetString(GL_VENDOR),
|
||||||
|
glGetString(GL_VERSION));
|
||||||
|
|
||||||
QMessageBox::warning(NULL, "GLEW: GL_VERSION_2_0 is not supported!",
|
QMessageBox::warning(NULL, "GLEW: GL_VERSION_2_0 is not supported!",
|
||||||
"Warning: No support for OpenGL 2.0 found! OpenCSG View has been disabled.\n\n"
|
QString("Warning: No support for OpenGL 2.0 found! OpenCSG View has been disabled.\n\n"
|
||||||
"It is highly recommended to use OpenSCAD on a system with OpenGL 2.0 "
|
"It is highly recommended to use OpenSCAD on a system with OpenGL 2.0 "
|
||||||
"support. Please check if OpenGL 2.0 drivers are available for your "
|
"support. Please check if OpenGL 2.0 drivers are available for your "
|
||||||
"graphics hardware.");
|
"graphics hardware.\n\n%1").arg(rendererinfo));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue