I have this strange problem, which I've ignored for quite some time...
I develop in debug mode, which works fine. But whenever I switch to release mode the following part of my code
[source lang="cpp"] GLenum err = glewInit(); if (err != GLEW_OK) LOGI("GLEW not initialized."); if (!GLEW_VERSION_2_1) LOGI("GLEW doesn't support OpenGL 2.1");[/source]
produces this message:
INFO: GLEW doesn't support OpenGL 2.1
I have this line in my header (glew.h is between <>):
[source lang="cpp"]#include glew.h#pragma comment(lib, "glew32.lib")[/source]
I include these directories:
C:\api\FMOD Programmers API Windows\api\inc;
C:\Program Files (x86)\FMOD SoundSystem\FMOD Programmers API Windows\api\inc;
C:\api\DevIL\include\IL;$(IncludePath)and these libraries:
C:\api\FMOD Programmers API Windows\api\lib;
C:\Program Files (x86)\FMOD SoundSystem\FMOD Programmers API Windows\api\lib;
I've had copied debug include and library entries to release mode, so they should be the same.
Any ideas, why in release mode glew doesn't add support for OpenGL2.1?
Edited by SM ForeveR, 11 October 2012 - 01:43 PM.