Commit 5529b00a authored by Aida Jonikienė's avatar Aida Jonikienė Committed by Alexandre Julliard

opengl32: Add a FIXME when doing a mapped buffer copy.

The copies of mapped buffers introduce significant performance overhead.
parent ebb5bd64
......@@ -1855,10 +1855,15 @@ static void unmap_named_buffer( TEB *teb, GLint buffer )
static NTSTATUS wow64_map_buffer( TEB *teb, GLint buffer, GLenum target, void *ptr, SIZE_T size,
GLbitfield access, PTR32 *ret )
{
static unsigned int once;
if (*ret) /* wow64 pointer provided, map buffer to it */
{
if (!(access & (GL_MAP_INVALIDATE_RANGE_BIT | GL_MAP_INVALIDATE_BUFFER_BIT)))
{
if (!once++)
FIXME( "Doing a copy of a mapped buffer (expect performance issues)\n" );
TRACE( "Copying %#zx from buffer at %p to wow64 buffer %p\n", size, ptr, UlongToPtr(*ret) );
memcpy( UlongToPtr(*ret), ptr, size );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment