OGL32CTX: Enable glsl based on GL major version.
This commit is contained in:
parent
787866909d
commit
605becfbdc
@ -413,13 +413,12 @@ void IrrDriver::initDevice()
|
||||
m_scene_manager = m_device->getSceneManager();
|
||||
m_gui_env = m_device->getGUIEnvironment();
|
||||
m_video_driver = m_device->getVideoDriver();
|
||||
m_glsl =
|
||||
#if defined(__APPLE__)
|
||||
#else
|
||||
m_video_driver->queryFeature(video::EVDF_ARB_GLSL) &&
|
||||
m_video_driver->queryFeature(video::EVDF_TEXTURE_NPOT) &&
|
||||
#endif
|
||||
UserConfigParams::m_pixel_shaders;
|
||||
|
||||
int GLMajorVersion;
|
||||
glGetIntegerv(GL_MAJOR_VERSION, &GLMajorVersion);
|
||||
printf("OPENGL VERSION IS %d\n", GLMajorVersion);
|
||||
m_glsl = (GLMajorVersion >= 3) && UserConfigParams::m_pixel_shaders;
|
||||
|
||||
|
||||
// This remaps the window, so it has to be done before the clear to avoid flicker
|
||||
m_device->setResizable(false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user