mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
st/nine: Remove errors on unsupported lock flags
Some applications seem to pass undefined flags... And we shouldn't return an error. Found investigating: https://github.com/iXit/wine-nine-standalone/issues/100 Signed-off-by: Axel Davy <davyaxel0@gmail.com> Acked-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10160>
This commit is contained in:
parent
70f8d78aa7
commit
138615a094
2 changed files with 0 additions and 12 deletions
|
|
@ -259,12 +259,6 @@ NineBuffer9_Lock( struct NineBuffer9 *This,
|
|||
OffsetToLock, SizeToLock, Flags);
|
||||
|
||||
user_assert(ppbData, E_POINTER);
|
||||
user_assert(!(Flags & ~(D3DLOCK_DISCARD |
|
||||
D3DLOCK_DONOTWAIT |
|
||||
D3DLOCK_NO_DIRTY_UPDATE |
|
||||
D3DLOCK_NOSYSLOCK |
|
||||
D3DLOCK_READONLY |
|
||||
D3DLOCK_NOOVERWRITE)), D3DERR_INVALIDCALL);
|
||||
|
||||
if (SizeToLock == 0) {
|
||||
SizeToLock = This->size - OffsetToLock;
|
||||
|
|
|
|||
|
|
@ -453,12 +453,6 @@ NineSurface9_LockRect( struct NineSurface9 *This,
|
|||
(resource && (resource->flags & NINE_RESOURCE_FLAG_LOCKABLE)),
|
||||
D3DERR_INVALIDCALL);
|
||||
#endif
|
||||
user_assert(!(Flags & ~(D3DLOCK_DISCARD |
|
||||
D3DLOCK_DONOTWAIT |
|
||||
D3DLOCK_NO_DIRTY_UPDATE |
|
||||
D3DLOCK_NOOVERWRITE |
|
||||
D3DLOCK_NOSYSLOCK | /* ignored */
|
||||
D3DLOCK_READONLY)), D3DERR_INVALIDCALL);
|
||||
user_assert(!((Flags & D3DLOCK_DISCARD) && (Flags & D3DLOCK_READONLY)),
|
||||
D3DERR_INVALIDCALL);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue