mirror of
				https://git.zaroz.cloud/nintendo-back-up/yuzu/yuzu-mainline.git
				synced 2025-03-21 01:53:15 +00:00 
			
		
		
		
	gl_resource_manager: Correct MakeStreamCopy
This commit is contained in:
		
							parent
							
								
									58c8a44e7a
								
							
						
					
					
						commit
						36665ce0b2
					
				@ -149,8 +149,7 @@ void OGLBuffer::Release() {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void OGLBuffer::MakeStreamCopy(std::size_t buffer_size) {
 | 
			
		||||
    if (handle == 0 || buffer_size == 0)
 | 
			
		||||
        return;
 | 
			
		||||
    ASSERT_OR_EXECUTE((handle == 0 || buffer_size == 0), { return; });
 | 
			
		||||
 | 
			
		||||
    glNamedBufferData(handle, buffer_size, nullptr, GL_STREAM_COPY);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -186,7 +186,7 @@ public:
 | 
			
		||||
    /// Deletes the internal OpenGL resource
 | 
			
		||||
    void Release();
 | 
			
		||||
 | 
			
		||||
    // Converts the buffer into a persistant storage buffer
 | 
			
		||||
    // Converts the buffer into a stream copy buffer with a fixed size
 | 
			
		||||
    void MakeStreamCopy(std::size_t buffer_size);
 | 
			
		||||
 | 
			
		||||
    GLuint handle = 0;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user