mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 03:13:39 +00:00
Simplified the code base by requiring wxWidgets >= 3.0
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user