From: Brian P. <br...@va...> - 2001-07-13 16:29:09
|
Scott McMillan wrote: > > I am having trouble with glDrawRangeElements (again) with version > 3.5. The attached test program renders three GL_POLYGONs. By > pressing 'v' it cycles through using glVertex3f (the initial mode), > glDrawRangeElements, and glDrawElements. There is a problem with > the glDrawRangeElements. > > This leads me to my second question. glDrawRangeElements was > either broken or did not exist (I cannot remember which) in > version 3.1 or earlier. I used to use MESA_MAJOR_VERSION and > MESA_MINOR_VERSION to determine what I was working with. These > seem to be gone now, and I was wondering if this was temporary or > if I am supposed to be using one of the many replacements: > XMESA_MAJOR_VERSION, OSMESA_MAJOR_VERSION, etc... I think you should call glGetString(GL_VERSION) and examine the Mesa version number it returns. Afterall, you want to know the version at runtime, not compile time, right? The MESA_MINOR/MAJOR_VERSION tokens really weren't appropriate, so I removed them a while back. -Brian |