mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-10-11 22:32:55 +02:00
This commit is contained in:
1 parent
41de95fd27
commit
89b2fbbae0
1 file changed
+4
-2
@@ -383,8 +383,10 @@ 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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user