Newsgroups: comp.graphics.api.opengl
From: Rob <no...@all.com>
Date: 02 Sep 2012 02:32:19 GMT
Local: Sat, Sep 1 2012 10:32 pm
Subject: freeglut seems very fragile.
I've taken to putting the infamous glxgears back under glut so that I can
port it to a variety of different VMs where I'm testing performance against the native linux host with an NVIDIA 460 GPU. In an openSUSE guest the thing segfaulted even though it compiled and ran see below:
{
glutInit(&argc,argv);
glutInitDisplayMode(GLUT_RGB|GLUT_DOUBLE|GLUT_DEPTH);
glutInitWindowSize(800,800);
glutInitWindowPosition(300,100);
/* absolutely no good reason why the glutGet() is required before
if (!glutGet(GLUT_DISPLAY_MODE_POSSIBLE)) // <- my point of contention
exit(1);
//-------------------------------------------------------------------------
The inline comment says it all. It only seems to require the glutGet() in openSUSE.
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||