Compiling OF / Git / Master / Ubuntu / old nvidia card

Hi

It’s probably a well known problem and I’m asing a noob question.

I’m running Ubuntu Precise on a old hardware with a Nvidia 7300 GO Chipset. The Problem: There is no OpenGL 4 Support. Therefore, the compilation of oF fails a this point:``

…/…/…/libs/openFrameworks/gl/ofTexture.cpp: In member function ‘void ofTexture::bindAsImage(GLuint, GLenum, GLint, GLboolean, GLint)’:
…/…/…/libs/openFrameworks/gl/ofTexture.cpp:724:93: error: ‘glBindImageTexture’ was not declared in this scope
glBindImageTexture(unit,texData.textureID,level,layered,layer,access,texData.glTypeInternal);

This is quite obvious, since i have only OpenGL 2, and glBindImageTexture is a OpenGL 4 Function.

Is there a simple workaround for this? I’v just commented out the function, but that’s no solution.

best,
urs

There’s an ofSetOpenGLVersion() function you can use

That is a solution since this function is optional, it’s not used anywhere in core OF (if you look at the code it’s disabled for OpenGL ES as well).