wined3d: Explicitly check for dynamic usage in wined3d_texture_use_pbo().
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
1b7f06acb1
commit
a93120c340
|
@ -32,8 +32,8 @@ WINE_DECLARE_DEBUG_CHANNEL(winediag);
|
|||
|
||||
static BOOL wined3d_texture_use_pbo(const struct wined3d_texture *texture, const struct wined3d_gl_info *gl_info)
|
||||
{
|
||||
return (texture->resource.access & (WINED3D_RESOURCE_ACCESS_CPU
|
||||
| WINED3D_RESOURCE_ACCESS_MAP)) == WINED3D_RESOURCE_ACCESS_MAP
|
||||
return !(texture->resource.access & WINED3D_RESOURCE_ACCESS_CPU)
|
||||
&& texture->resource.usage & WINED3DUSAGE_DYNAMIC
|
||||
&& gl_info->supported[ARB_PIXEL_BUFFER_OBJECT]
|
||||
&& !texture->resource.format->conv_byte_count
|
||||
&& !(texture->flags & (WINED3D_TEXTURE_PIN_SYSMEM | WINED3D_TEXTURE_COND_NP2_EMULATED));
|
||||
|
|
Loading…
Reference in New Issue