16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 03:09:18 +02:00

make imgui version runtime selectable

This commit is contained in:
milek7
2022-04-13 22:15:43 +02:00
parent 5395e6c060
commit 129bc9059c
5 changed files with 30 additions and 62 deletions

View File

@@ -4392,17 +4392,10 @@ opengl_renderer::Init_caps() {
+ " Vendor: " + gl_vendor
+ " OpenGL Version: " + gl_version );
#ifdef EU07_USEIMGUIIMPLOPENGL2
if( !GLAD_GL_VERSION_1_5 ) {
ErrorLog( "Requires openGL >= 1.5" );
if( !GLAD_GL_VERSION_2_1 ) {
ErrorLog( "Requires openGL >= 2.1" );
return false;
}
#else
if( !GLAD_GL_VERSION_3_0 ) {
ErrorLog( "Requires openGL >= 3.0" );
return false;
}
#endif
char* extensions = (char*)glGetString( GL_EXTENSIONS );
if (extensions)