Commit f4cbd110 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

wined3d: Always set GL_PIXEL_PACK_BUFFER binding before downloading texture data.

parent c5773b8c
......@@ -2695,6 +2695,8 @@ static void wined3d_texture_gl_download_data_slow_path(struct wined3d_texture_gl
if (temporary_mem)
{
GL_EXTCALL(glBindBuffer(GL_PIXEL_PACK_BUFFER, 0));
checkGLcall("glBindBuffer");
mem = temporary_mem;
}
else if (bo)
......@@ -2705,6 +2707,8 @@ static void wined3d_texture_gl_download_data_slow_path(struct wined3d_texture_gl
}
else
{
GL_EXTCALL(glBindBuffer(GL_PIXEL_PACK_BUFFER, 0));
checkGLcall("glBindBuffer");
mem = data->addr;
}
......@@ -2918,6 +2922,11 @@ static void wined3d_texture_gl_download_data(struct wined3d_context *context,
checkGLcall("glBindBuffer");
offset += dst_bo->buffer_offset;
}
else
{
GL_EXTCALL(glBindBuffer(GL_PIXEL_PACK_BUFFER, 0));
checkGLcall("glBindBuffer");
}
if (src_texture->resource.format_flags & WINED3DFMT_FLAG_COMPRESSED)
{
......
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