Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Add a warning message about using software rendering
  • Loading branch information
robert-ancell committed May 28, 2025
commit f444e723e736847d8d957e776d7c92a2014311cc
6 changes: 6 additions & 0 deletions engine/src/flutter/shell/platform/linux/fl_engine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,12 @@ static FlEngine* fl_engine_new_full(FlDartProject* project,
const gchar* renderer = g_getenv("FLUTTER_LINUX_RENDERER");
if (g_strcmp0(renderer, "software") == 0) {
self->compositor = FL_COMPOSITOR(fl_compositor_software_new(self));
Comment thread
robert-ancell marked this conversation as resolved.
g_warning(
"Using the software renderer. Not all features are supported. This is "
"not recommended.\n"
"\n"
"To switch back to the default renderer, unset the "
"FLUTTER_LINUX_RENDERER environment variable.");
} else {
if (renderer != nullptr && strcmp(renderer, "opengl") != 0) {
g_warning("Unknown renderer type '%s', defaulting to opengl", renderer);
Expand Down