File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
source/renderer/platform/ogl Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 44
55using namespace mce ::Platform;
66
7- const char * OGL::ERROR_MSG = " Error initializing GL extensions. OpenGL 1.5 or later is required. Update your graphics drivers!" ;
7+ #ifdef FEATURE_GFX_SHADERS
8+ #define MIN_GL_VERSION " 2.0"
9+ #define ERROR_MSG_EXTRA " Try switching to a non-shader build, or update your graphics drivers!"
10+ #else
11+ #define MIN_GL_VERSION " 1.5"
12+ #define ERROR_MSG_EXTRA " Update your graphics drivers!"
13+ #endif
14+
15+ const char * OGL::ERROR_MSG = " Error initializing GL extensions. OpenGL " MIN_GL_VERSION " or later is required." ERROR_MSG_EXTRA;
816
917bool OGL::InitBindings ()
1018{
@@ -26,7 +34,7 @@ void* OGL::GetProcAddress(const char* name)
2634 result = (void *)wglGetProcAddress (name);
2735 if (result == nullptr )
2836 {
29- HMODULE handle = GetModuleHandle (" opengl32.dll" );
37+ static HMODULE handle = GetModuleHandle (" opengl32.dll" );
3038 if (handle != NULL )
3139 {
3240 result = (void *)GetProcAddress (handle, name);
You can’t perform that action at this time.
0 commit comments