• Henri Verbeet's avatar
    wined3d: Just use glBufferSubData() in buffer_direct_upload(). · 602a23a6
    Henri Verbeet authored
    It might seem like a good idea to try to use glMapBufferRange() in
    buffer_direct_upload(), but it really isn't. The interesting cases for
    glMapBufferRange() are GL_MAP_INVALIDATE_BUFFER_BIT or
    GL_MAP_UNSYNCHRONIZED_BIT, but the only way for those to be set here
    would be for the buffer to be mapped with WINED3D_MAP_DISCARD or
    WINED3D_MAP_NOOVERWRITE before the buffer object was created. In that
    case the GPU is obviously not using the buffer object, so
    glMapBufferRange() doesn't help. On the other hand, if the buffer is
    currently in use by the application and neither WINED3D_MAP_DISCARD nor
    WINED3D_MAP_NOOVERWRITE is set, glMapBufferRange() would need to wait
    for the GPU to finish using the buffer object, while glBufferSubData()
    may decide not to.
    Signed-off-by: 's avatarHenri Verbeet <hverbeet@codeweavers.com>
    Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
    602a23a6
Name
Last commit
Last update
..
Makefile.in Loading commit data...
arb_program_shader.c Loading commit data...
ati_fragment_shader.c Loading commit data...
buffer.c Loading commit data...
context.c Loading commit data...
cs.c Loading commit data...
device.c Loading commit data...
directx.c Loading commit data...
drawprim.c Loading commit data...
gl_compat.c Loading commit data...
glsl_shader.c Loading commit data...
nvidia_texture_shader.c Loading commit data...
palette.c Loading commit data...
query.c Loading commit data...
resource.c Loading commit data...
sampler.c Loading commit data...
shader.c Loading commit data...
shader_sm1.c Loading commit data...
shader_sm4.c Loading commit data...
state.c Loading commit data...
stateblock.c Loading commit data...
surface.c Loading commit data...
swapchain.c Loading commit data...
texture.c Loading commit data...
utils.c Loading commit data...
version.rc Loading commit data...
vertexdeclaration.c Loading commit data...
view.c Loading commit data...
wined3d.spec Loading commit data...
wined3d_gl.h Loading commit data...
wined3d_main.c Loading commit data...
wined3d_private.h Loading commit data...