mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	Minor improvement, reuse context
This commit is contained in:
		
							parent
							
								
									89b2fbbae0
								
							
						
					
					
						commit
						95c121f4c7
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -387,7 +387,7 @@ sub Render { | |||
|     # 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($context); | ||||
|     $self->InitGL; | ||||
| 
 | ||||
|     glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alessandro Ranellucci
						Alessandro Ranellucci