mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	gl_rasterizer: Fix texel buffer size overflow (#6458)
Co-authored-by: GPUCode <geoster3d@gmail.com>
This commit is contained in:
		
							parent
							
								
									81d24dd7fb
								
							
						
					
					
						commit
						1b944f3255
					
				
					 1 changed files with 1 additions and 2 deletions
				
			
		|  | @ -68,8 +68,7 @@ GLenum MakeAttributeType(Pica::PipelineRegs::VertexAttributeFormat format) { | |||
|     // which corresponds to GL_RG32F
 | ||||
|     GLint max_texel_buffer_size; | ||||
|     glGetIntegerv(GL_MAX_TEXTURE_BUFFER_SIZE, &max_texel_buffer_size); | ||||
|     LOG_INFO(Render_OpenGL, "Max texture buffer size: {}", max_texel_buffer_size); | ||||
|     return std::min<GLsizeiptr>(max_texel_buffer_size * 8, TEXTURE_BUFFER_SIZE); | ||||
|     return std::min<GLsizeiptr>(max_texel_buffer_size * 8ULL, TEXTURE_BUFFER_SIZE); | ||||
| } | ||||
| 
 | ||||
| } // Anonymous namespace
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue