Permalink
Browse files

Fixes in some sample scripts

  • Loading branch information...
ccgus committed Aug 4, 2012
1 parent 67e0a5f commit ca70a5f34505916611925a025a0971fcabd306f0
Showing with 2 additions and 2 deletions.
  1. +1 −1 plugins/imagetools/samples/opencl.jstalk
  2. +1 −1 plugins/imagetools/samples/openclDesaturate.jstalk
@@ -13,7 +13,7 @@ __kernel void test2(image2d_t img) {
var w = 400;
var h = 400;
-var context = [JSTOpenCLContext instance];
+var context = [[JSTOpenCLContext new] autorelease];
var program = [context programWithSource:src];
[program build];
@@ -16,7 +16,7 @@ __kernel void clDesaturate(image2d_t src, image2d_t dst, int width, int height)
}
""";
-var context = [JSTOpenCLContext new];
+var context = [[JSTOpenCLContext new] autorelease];
var program = [context programWithSource:src];
[program build];

0 comments on commit ca70a5f

Please sign in to comment.