[fixed] Compiling without OpenGL error

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
night_hawk
Posts: 153
Joined: Mon Mar 03, 2008 8:42 am
Location: Suceava - Romania
Contact:

[fixed] Compiling without OpenGL error

Post by night_hawk »

When undefining _IRR_COMPILE_WITH_OPENGL_, COpenGLDriver.cpp misses

Code: Select all

IVideoDriver* createOpenGLDriver(const irr::SIrrlichtCreationParameters& params,
	io::IFileSystem* io)
{
(line 3012)
because

Code: Select all

#include "SIrrCreationParameters.h"
in COpenGLDriver.h is under the #ifdef, thus giving a compiler error because it has no idea what SIrrlichtCreationParameters is.

In short, move the include above the #ifdef in COpenGLDriver.h so COpenGLDriver.cpp can compile correctly... (or something similar to fix this for everyone).

Error is valid for svn revision 1768.
Post Reply