Santiago (Jacques) Lema wrote...
I need to handle things differently in my apps if CoreImage is
accelerated by the GPU or not. However I found no simple solution
to get whether yes or not it is supported. How does the "System
informations" app get it's CoreImage acceleration info?
Currently I have setlled with checking if
GL_EXT_ARB_fragment_program is available. But that would be true
for a FX5200 which is too slow and not used in reality. Of course I
still allow the user to chose what method he wants to use for
display but I'd like to set a proper default.
So so far I just do this:
const GLubyte* strExt = glGetString (GL_EXTENSIONS);
const GLubyte* extname = (GLubyte*) "GL_EXT_ARB_fragment_program";
pixelShadersSupported = (BOOL)gluCheckExtension(extname, strExt);
Anything better, safer?