Skip to content

Commit

Permalink
Put back a flag that I removed (TextureGroup#839)
Browse files Browse the repository at this point in the history
  • Loading branch information
Adlai-Holler authored Mar 16, 2018
1 parent e6c98d3 commit 15b695c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/ASCGImageBuffer.m
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ - (instancetype)initWithLength:(NSUInteger)length
{
if (self = [super init]) {
_length = length;
_isVM = NO;//(length >= vm_page_size);
_isVM = (length >= vm_page_size);
if (_isVM) {
_mutableBytes = mmap(NULL, length, PROT_WRITE | PROT_READ, MAP_ANONYMOUS | MAP_PRIVATE, VM_MAKE_TAG(VM_MEMORY_COREGRAPHICS_DATA), 0);
if (_mutableBytes == MAP_FAILED) {
Expand Down

0 comments on commit 15b695c

Please sign in to comment.