Skip to content

Commit 61c2d04

Browse files
jspanchukwrobot
authored andcommitted
Merge topic 'disable-lic-gles'
5fae8fc ci: remove unnecessary cache setting for RenderingLICOpenGL2 327f327 docs: remove unnecessary options from cmake command for wasm b478ca7 Disable RenderingLICOpenGL2 when using GLES Acked-by: Kitware Robot <[email protected]> Acked-by: buildbot <[email protected]> Reviewed-by: Sankhesh Jhaveri <[email protected]> Merge-request: !12102
2 parents f655b2a + 5fae8fc commit 61c2d04

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

.gitlab/ci/configure_wasm_common.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ set(VTK_MODULE_ENABLE_VTK_IOPostgreSQL NO CACHE STRING "") # no postgresql
3636
set(VTK_MODULE_ENABLE_VTK_RenderingExternal NO CACHE STRING "") # gl code incompatible with gles 3.0
3737
set(VTK_MODULE_ENABLE_VTK_RenderingFFMPEGOpenGL2 NO CACHE STRING "") # no ffmpeg
3838
set(VTK_MODULE_ENABLE_VTK_RenderingFreeTypeFontConfig NO CACHE STRING "") # no fontconfig
39-
set(VTK_MODULE_ENABLE_VTK_RenderingLICOpenGL2 NO CACHE STRING "") # gl code incompatible with gles 3.0
4039
set(VTK_MODULE_ENABLE_VTK_RenderingMatplotlib NO CACHE STRING "") # no matplotlib
4140
set(VTK_MODULE_ENABLE_VTK_RenderingOpenVR NO CACHE STRING "") # no openvr
4241
set(VTK_MODULE_ENABLE_VTK_RenderingOpenXR NO CACHE STRING "") # no openxr

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,12 @@ if (VTK_ENABLE_WRAPPING)
408408
"via `VTK_ENABLE_WRAPPING`")
409409
endif ()
410410

411+
if (VTK_OPENGL_USE_GLES)
412+
# Do not build modules that require desktop OpenGL when GLES is requested.
413+
list(APPEND vtk_rejected_modules
414+
VTK::RenderingLICOpenGL2)
415+
endif ()
416+
411417
if (vtk_requested_modules)
412418
list(REMOVE_DUPLICATES vtk_requested_modules)
413419
endif ()

Documentation/docs/advanced/build_wasm_emscripten.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ $ emcmake cmake \
7474
-G "Ninja" \
7575
-DCMAKE_BUILD_TYPE=Release \
7676
-DBUILD_SHARED_LIBS:BOOL=OFF \
77-
-DVTK_ENABLE_WEBGPU:BOOL=ON \
78-
-DVTK_MODULE_ENABLE_VTK_RenderingLICOpenGL2:STRING=DONT_WANT
7977
```
8078

8179
In order to run the unit tests, please enable testing with `-DVTK_BUILD_TESTING=WANT`. Additionally,

0 commit comments

Comments
 (0)