C++: disable renderer-femto-wgpu feature by default

Just like with Rust.

This Fixes the C++ opengl_texture example. Also improve advice for C++ OpenGL examples to explicitly select the FemtoVG GL renderer

Fixes #8901
This commit is contained in:
Simon Hausmann 2025-07-11 09:21:02 +02:00 committed by Simon Hausmann
parent a9a4dfa4eb
commit 5c3a98d0c9
3 changed files with 3 additions and 3 deletions

View file

@ -99,7 +99,7 @@ define_cargo_dependent_feature(backend-winit-x11 "Enable support for the winit c
define_cargo_dependent_feature(backend-winit-wayland "Enable support for the winit create to interact only with the wayland windowing system on Unix. Enable this option and turn off SLINT_FEATURE_BACKEND_WINIT for a smaller build with just wayland support." OFF "NOT SLINT_FEATURE_FREESTANDING")
define_cargo_dependent_feature(renderer-femtovg "Enable support for the OpenGL ES 2.0 based FemtoVG rendering engine." ON "NOT SLINT_FEATURE_FREESTANDING")
define_cargo_dependent_feature(renderer-femtovg-wgpu "Enable support for the WGPU based FemtoVG rendering engine." ON "NOT SLINT_FEATURE_FREESTANDING")
define_cargo_dependent_feature(renderer-femtovg-wgpu "Enable support for the WGPU based FemtoVG rendering engine." OFF "NOT SLINT_FEATURE_FREESTANDING")
define_cargo_dependent_feature(renderer-skia "Enable support for the Skia based rendering engine." OFF "NOT SLINT_FEATURE_FREESTANDING")
define_cargo_dependent_feature(renderer-skia-opengl "Enable support for the Skia based rendering engine with its OpenGL backend." OFF "NOT SLINT_FEATURE_FREESTANDING")
define_cargo_dependent_feature(renderer-skia-vulkan "Enable support for the Skia based rendering engine with its Vulkan backend." OFF "NOT SLINT_FEATURE_FREESTANDING")

View file

@ -382,7 +382,7 @@ int main()
if (*error == slint::SetRenderingNotifierError::Unsupported) {
fprintf(stderr,
"This example requires the use of a GL renderer. Please run with the "
"environment variable SLINT_BACKEND=winit set.\n");
"environment variable SLINT_BACKEND=winit-femtovg set.\n");
} else {
fprintf(stderr, "Unknown error calling set_rendering_notifier\n");
}

View file

@ -170,7 +170,7 @@ int main()
if (*error == slint::SetRenderingNotifierError::Unsupported) {
fprintf(stderr,
"This example requires the use of a GL renderer. Please run with the "
"environment variable SLINT_BACKEND=winit set.\n");
"environment variable SLINT_BACKEND=winit-femtovg set.\n");
} else {
fprintf(stderr, "Unknown error calling set_rendering_notifier\n");
}