mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 02:37:51 -06:00
Simplified the code base by requiring wxWidgets >= 3.0
This commit is contained in:
parent
1385018724
commit
ed46cfa19d
11 changed files with 58 additions and 110 deletions
|
@ -943,22 +943,12 @@ sub mouse_to_3d {
|
|||
|
||||
sub GetContext {
|
||||
my ($self) = @_;
|
||||
|
||||
if (Wx::wxVERSION >= 2.009) {
|
||||
return $self->{context} ||= Wx::GLContext->new($self);
|
||||
} else {
|
||||
return $self->SUPER::GetContext;
|
||||
}
|
||||
return $self->{context} ||= Wx::GLContext->new($self);
|
||||
}
|
||||
|
||||
sub SetCurrent {
|
||||
my ($self, $context) = @_;
|
||||
|
||||
if (Wx::wxVERSION >= 2.009) {
|
||||
return $self->SUPER::SetCurrent($context);
|
||||
} else {
|
||||
return $self->SUPER::SetCurrent;
|
||||
}
|
||||
return $self->SUPER::SetCurrent($context);
|
||||
}
|
||||
|
||||
sub UseVBOs {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue