mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	gl_stream_buffer: Only flush the host buffer if anything was written.
This might happen in the new TBO upload path.
This commit is contained in:
		
							parent
							
								
									831d4f9aeb
								
							
						
					
					
						commit
						0838c87dac
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -87,7 +87,7 @@ std::tuple<u8*, GLintptr, bool> OGLStreamBuffer::Map(GLsizeiptr size, GLintptr a | |||
| void OGLStreamBuffer::Unmap(GLsizeiptr size) { | ||||
|     ASSERT(size <= mapped_size); | ||||
| 
 | ||||
|     if (!coherent) { | ||||
|     if (!coherent && size > 0) { | ||||
|         glFlushMappedBufferRange(gl_target, buffer_pos - mapped_offset, size); | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue