[GEM-dev] GLEW and pix_texture

IOhannes m zmoelnig zmoelnig at iem.at
Wed Jan 25 10:35:49 CET 2006


chris clepper wrote:
> On 1/24/06, IOhannes m zmoelnig <zmoelnig at iem.at> wrote:
> 
> According to the docs there is one call to init GLEW which I seem to
> have done correctly.  The problem could be that the code is just
> asking if the extension is defined, and not if it is supported.  I
> think that needs to use a GLEW call to check for that.

well, glew will "define" every possible extension (e.g. 
"GL_APPLE_texture_range" will be defined), since this is a preprocessor 
thing and would just be an annoyance for a runtime checker.

the clause
<snip>
  #ifdef GL_APPLE_texture_range
  #endif
</snip>
has to be replaced by
<snap>
  if (GLEW_APPLE_texture_range){
  }
</snap>

if this is what you meant by having "to clean up some code based on 
platform assumptions in order to make it work", then i'd answer "YES".

btw, welcome to the joys of compiling things on platforms where the 
headers do not exactly match the installed libraries....

mfg.asdr
IOhannes




More information about the GEM-dev mailing list