mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-09-29 00:43:15 +08:00
This commit is contained in:
parent
ca7668e1b3
commit
cf1b25dfc8
@ -383,7 +383,9 @@ sub InitGL {
|
||||
sub Render {
|
||||
my ($self, $dc) = @_;
|
||||
|
||||
return unless $self->GetContext;
|
||||
# prevent calling SetCurrent() when window is not shown yet
|
||||
return unless $self->IsShownOnScreen;
|
||||
return unless my $context = $self->GetContext;
|
||||
$self->SetCurrent($self->GetContext);
|
||||
$self->InitGL;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user