Since RenderDoc only supports opengl 3.2+
Which platform are you running on?
I believe that SDL initializes the greatest available OpenGL context version in most cases but this might be different on macOS where running in a newer GL version requires a “limited profile” that might remove features
Okay it looks like SDL might default to a compatibility profile for the current system and won’t force things up to a higher OpenGL version on its own.
The following steps should allow you to build Lime from the source with the OpenGL version forced up to 3.2 but it would be nice if we devised a way to try this without any source changes.
- Setup a development version of Lime
git clone https://github.com/openfl/lime
cd lime
git submodule init
git submodule update
haxelib dev lime .
- Open project/src/backend/sd/SDLWindow.cpp locally and add the following (near line 89):
#ifdef HX_WINDOWS
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 2);
#endif
-
Use
lime rebuild windows
to rebuild the native binaries for Windows -
(Optional) Run
lime dev lime
to disable your clone and use the haxelib version of Lime again when you want