wined3d: Don't use GL_MAP_FLUSH_EXPLICIT_BIT without GL_MAP_WRITE_BIT.

This commit is contained in:
Stefan Dösinger 2010-02-08 12:24:36 +01:00 committed by Alexandre Julliard
parent 8625f0cdbf
commit 24e2308670

View file

@ -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))
{