mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-11 05:39:08 +08:00
This commit is contained in:
parent
41de95fd27
commit
89b2fbbae0
@ -384,7 +384,9 @@ sub InitGL {
|
|||||||
sub Render {
|
sub Render {
|
||||||
my ($self, $dc) = @_;
|
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->SetCurrent($self->GetContext);
|
||||||
$self->InitGL;
|
$self->InitGL;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user