[OpenSCAD] OpenGL 2.0 not detected correctly?

Clifford Wolf clifford at clifford.at
Sat Jan 2 10:01:46 CET 2010


On Fri, Jan 01, 2010 at 11:40:44PM -0900, Britton Kerin wrote:
> I think I have an OpenGL 2.0 compatible card, at least:
>   rhino$ glxinfo | grep '2\.'
>   OpenGL version string: 2.1.2 NVIDIA 173.14.09
> However, openscad gives me a warning about missing openGL 
> support on startup.


> Any tips where to start looking for the problem?

the relevant code from glview.cc is:

        GLenum err = glewInit();
        if (GLEW_OK != err) {
                fprintf(stderr, "GLEW Error: %s\n", glewGetErrorString(err));
        const char *openscad_disable_gl20_env = getenv("OPENSCAD_DISABLE_GL20");
        if (openscad_disable_gl20_env && !strcmp(openscad_disable_gl20_env, "0"))
                openscad_disable_gl20_env = NULL;
        if (glewIsSupported("GL_VERSION_2_0") && openscad_disable_gl20_env == NULL)

so unless you have set OPENSCAD_DISABLE_GL20 in your environment you should
start looking at the glew library and the handling of "GL_VERSION_2_0"

 - clifford

Walking on water and developing software from a specification are easy if
both are frozen.

More information about the Openscad mailing list