forked from eden-emu/eden
		
	opengl: Sanitize antialiasing config
This commit is contained in:
		
							parent
							
								
									eabc1afbd5
								
							
						
					
					
						commit
						c5a006cb24
					
				
					 1 changed files with 7 additions and 1 deletions
				
			
		|  | @ -442,7 +442,13 @@ void RendererOpenGL::DrawScreen(const Layout::FramebufferLayout& layout) { | |||
| 
 | ||||
|     glBindTextureUnit(0, screen_info.display_texture); | ||||
| 
 | ||||
|     const auto anti_aliasing = Settings::values.anti_aliasing.GetValue(); | ||||
|     auto anti_aliasing = Settings::values.anti_aliasing.GetValue(); | ||||
|     if (anti_aliasing > Settings::AntiAliasing::LastAA) { | ||||
|         LOG_ERROR(Render_OpenGL, "Invalid antialiasing option selected {}", anti_aliasing); | ||||
|         anti_aliasing = Settings::AntiAliasing::None; | ||||
|         Settings::values.anti_aliasing.SetValue(anti_aliasing); | ||||
|     } | ||||
| 
 | ||||
|     if (anti_aliasing != Settings::AntiAliasing::None) { | ||||
|         glEnablei(GL_SCISSOR_TEST, 0); | ||||
|         auto viewport_width = screen_info.texture.width; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Narr the Reg
						Narr the Reg