Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Create build directory and run CMake
run: |
sudo apt-get -y update
sudo apt-get -y install freeglut3-dev
sudo apt-get -y install freeglut3-dev libegl1-mesa-dev
cmake -S . -B cmake_build_dir -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=cmake_install_dir -DCOIN_BUILD_LEGACY_GL_RENDERER=ON -DCOIN_BUILD_TESTS=ON -DCOIN_STRICT_WARNINGS=ON
- name: Build project
run: cmake --build cmake_build_dir --target install --config Release --parallel
Expand Down
6 changes: 6 additions & 0 deletions src/glue/gl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@
initialization spit out lots of info about the underlying OpenGL
implementation.

- COIN_EGL: set to "1" to select EGL for offscreen contexts, or to "0"
to select GLX when both bindings are available. If unset, Coin selects
the binding associated with the current context and otherwise defaults to
GLX.

- COIN_PREFER_GLPOLYGONOFFSET_EXT: when set to "1" and both
glPolygonOffset() and glPolygonOffsetEXT() are available, the
latter will be used. This can be useful to work around a
Expand Down Expand Up @@ -4384,6 +4389,7 @@ cc_glglue_context_create_offscreen(unsigned int width, unsigned int height)
#elif defined(HAVE_WGL)
return wglglue_context_create_offscreen(width, height);
#else
check_egl();
#if defined(HAVE_EGL)
if (COIN_USE_EGL > 0) return eglglue_context_create_offscreen(width, height);
#endif
Expand Down
Loading
Loading