mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Non-SDL: Add opengl3 support
This commit is contained in:
parent
87ac32edea
commit
4838eb2f7d
10 changed files with 107 additions and 139 deletions
|
@ -3239,19 +3239,9 @@ COpenGLCacheHandler *COpenGLDriver::getCacheHandler() const
|
|||
return CacheHandler;
|
||||
}
|
||||
|
||||
} // end namespace
|
||||
} // end namespace
|
||||
|
||||
#endif // _IRR_COMPILE_WITH_OPENGL_
|
||||
|
||||
namespace irr
|
||||
{
|
||||
namespace video
|
||||
{
|
||||
|
||||
IVideoDriver *createOpenGLDriver(const SIrrlichtCreationParameters ¶ms, io::IFileSystem *io, IContextManager *contextManager)
|
||||
{
|
||||
#ifdef _IRR_COMPILE_WITH_OPENGL_
|
||||
COpenGLDriver *ogl = new COpenGLDriver(params, io, contextManager);
|
||||
|
||||
if (!ogl->initDriver()) {
|
||||
|
@ -3260,10 +3250,8 @@ IVideoDriver *createOpenGLDriver(const SIrrlichtCreationParameters ¶ms, io::
|
|||
}
|
||||
|
||||
return ogl;
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
} // end namespace
|
||||
} // end namespace
|
||||
} // end namespace video
|
||||
} // end namespace irr
|
||||
#endif // opengl
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue