mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Workaround for buggy Intel HD Graphics OpenGL drivers:
Fall back to OpenGL 1.1 by a "use_legacy_opengl" preferences switch. https://github.com/prusa3d/Slic3r/issues/233 https://github.com/prusa3d/Slic3r/issues/268 https://github.com/prusa3d/Slic3r/issues/619
This commit is contained in:
parent
61e6f23ed2
commit
743fc9dbd0
3 changed files with 24 additions and 2 deletions
|
@ -72,6 +72,13 @@ sub new {
|
|||
'if they are marked as incompatible with the active printer',
|
||||
default => $app_config->get("show_incompatible_presets"),
|
||||
));
|
||||
$optgroup->append_single_option_line(Slic3r::GUI::OptionsGroup::Option->new(
|
||||
opt_id => 'use_legacy_opengl',
|
||||
type => 'bool',
|
||||
label => 'Use legacy OpenGL 1.1 rendering',
|
||||
tooltip => 'If you have rendering issues caused by a buggy OpenGL 2.0 driver, you may try to check this checkbox. This will disable the layer height editing, so it is likely better to upgrade your graphics driver.',
|
||||
default => $app_config->get("use_legacy_opengl"),
|
||||
));
|
||||
|
||||
my $sizer = Wx::BoxSizer->new(wxVERTICAL);
|
||||
$sizer->Add($optgroup->sizer, 0, wxEXPAND | wxBOTTOM | wxLEFT | wxRIGHT, 10);
|
||||
|
@ -90,7 +97,8 @@ sub _accept {
|
|||
my ($self) = @_;
|
||||
|
||||
if (defined($self->{values}{no_controller}) ||
|
||||
defined($self->{values}{no_defaults})) {
|
||||
defined($self->{values}{no_defaults}) ||
|
||||
defined($self->{values}{use_legacy_opengl})) {
|
||||
Slic3r::GUI::warning_catcher($self)->("You need to restart Slic3r to make the changes effective.");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue