summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-08-06 17:26:00 +0000
committermidipix <writeonce@midipix.org>2019-08-06 17:26:00 +0000
commit7740eaccdddb94070a69b45cbd7b37d68940b393 (patch)
tree7b354200f672f8ea2f90a95bec46b2a0533dbd9f
parentf9e9dfda7f6a9accddeffa927c3355dff8e492ac (diff)
downloadntapi-7740eaccdddb94070a69b45cbd7b37d68940b393.tar.bz2
ntapi-7740eaccdddb94070a69b45cbd7b37d68940b393.tar.xz
__ntapi_blt_obtain(): fix optimized code path (do not reset *blkid).
-rw-r--r--src/blitter/ntapi_blt_block.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blitter/ntapi_blt_block.c b/src/blitter/ntapi_blt_block.c
index 803e723..7fd0094 100644
--- a/src/blitter/ntapi_blt_block.c
+++ b/src/blitter/ntapi_blt_block.c
@@ -98,7 +98,7 @@ int32_t __fastcall __ntapi_blt_obtain(
if (blitter->info.blocks_avail == 0)
return NT_STATUS_ALLOCATE_BUCKET;
else if ((bit = *blkid % (8*sizeof(size_t))) == 0)
- return __ntapi_blt_acquire(blitter,blkid);
+ return __blt_acquire(blitter,blkid);
for (n=0,mask=(uintptr_t)-1; n<bit; n++)
mask ^= ((size_t)1 << n);