mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 13:27:35 +00:00
wined3d: Don't use GL_MAP_FLUSH_EXPLICIT_BIT without GL_MAP_WRITE_BIT.
This commit is contained in:
parent
8625f0cdbf
commit
24e2308670
1 changed files with 2 additions and 2 deletions
|
@ -1061,9 +1061,9 @@ static DWORD buffer_sanitize_flags(DWORD flags)
|
|||
|
||||
static GLbitfield buffer_gl_map_flags(DWORD d3d_flags)
|
||||
{
|
||||
GLbitfield ret = GL_MAP_FLUSH_EXPLICIT_BIT;
|
||||
GLbitfield ret = 0;
|
||||
|
||||
if (!(d3d_flags & WINED3DLOCK_READONLY)) ret |= GL_MAP_WRITE_BIT;
|
||||
if (!(d3d_flags & WINED3DLOCK_READONLY)) ret = GL_MAP_WRITE_BIT | GL_MAP_FLUSH_EXPLICIT_BIT;
|
||||
|
||||
if (d3d_flags & (WINED3DLOCK_DISCARD | WINED3DLOCK_NOOVERWRITE))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue