Skip to content

Commit

Permalink
Merge pull request Gamua#54 from cburtbrown/master
Browse files Browse the repository at this point in the history
I think the usage of __block inside SPTexture.m may be wrong (causes crash for me)
  • Loading branch information
racarone committed Mar 31, 2016
2 parents 51a6931 + f628e84 commit bbe315c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sparrow/src/Classes/SPTexture.m
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ + (void)loadFromURL:(NSURL *)url generateMipmaps:(BOOL)mipmaps scale:(float)scal
{
[Sparrow.currentController executeInResourceQueue:^
{
__block NSError *loadError = nil;
NSError *loadError = nil;
NSString *cacheKey = [url absoluteString];
SPTexture *texture = [textureCache[cacheKey] retain];
GLsync waitUntilTextureLoaded = nil;
Expand Down

0 comments on commit bbe315c

Please sign in to comment.