mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	This commit is contained in:
		
							parent
							
								
									41de95fd27
								
							
						
					
					
						commit
						89b2fbbae0
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		|  | @ -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; | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci