Skip to content

Commit

Permalink
Fixed crash where flush was called on an already released rendering c…
Browse files Browse the repository at this point in the history
…ontext
  • Loading branch information
phoboslab committed Oct 8, 2012
1 parent f9a6571 commit 368b92c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Classes/Ejecta/EJApp.m
Expand Up @@ -319,8 +319,9 @@ - (JSValueRef)deleteTimer:(JSContextRef)ctxp argc:(size_t)argc argv:(const JSVal
- (void)setCurrentRenderingContext:(EJCanvasContext *)renderingContext {
if( renderingContext != currentRenderingContext ) {
[currentRenderingContext flushBuffers];
[currentRenderingContext release];
[renderingContext prepare];
currentRenderingContext = renderingContext;
currentRenderingContext = [renderingContext retain];
}
}

Expand Down

0 comments on commit 368b92c

Please sign in to comment.