Original Post
Hi,
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:
[indent=1]C:\api\FMOD Programmers API Windows\api\inc;
[indent=1]C:\Program Files (x86)\FMOD SoundSystem\FMOD Programmers API Windows\api\inc;
[indent=1]C:\Binaries\DevIL-SDK-x86-1.7.8\include\IL;
[indent=1]C:\api\Glew\include\GL;
[indent=1]C:\api\DevIL\include\IL;$(IncludePath)
and these libraries:
[indent=1]C:\api\Glew\lib;
[indent=1]C:\api\DevIL\lib;
[indent=1]C:\api\FMOD Programmers API Windows\api\lib;
[indent=1]C:\Program Files (x86)\FMOD SoundSystem\FMOD Programmers API Windows\api\lib;
[indent=1]C:\Binaries\DevIL-SDK-x86-1.7.8\lib;$(LibraryPath)
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?
Thanks, Martin.
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:
[indent=1]C:\api\FMOD Programmers API Windows\api\inc;
[indent=1]C:\Program Files (x86)\FMOD SoundSystem\FMOD Programmers API Windows\api\inc;
[indent=1]C:\Binaries\DevIL-SDK-x86-1.7.8\include\IL;
[indent=1]C:\api\Glew\include\GL;
[indent=1]C:\api\DevIL\include\IL;$(IncludePath)
and these libraries:
[indent=1]C:\api\Glew\lib;
[indent=1]C:\api\DevIL\lib;
[indent=1]C:\api\FMOD Programmers API Windows\api\lib;
[indent=1]C:\Program Files (x86)\FMOD SoundSystem\FMOD Programmers API Windows\api\lib;
[indent=1]C:\Binaries\DevIL-SDK-x86-1.7.8\lib;$(LibraryPath)
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?
Thanks, Martin.