Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixes in some sample scripts

  • Loading branch information...
commit ca70a5f34505916611925a025a0971fcabd306f0 1 parent 67e0a5f
@ccgus authored
View
2  plugins/imagetools/samples/opencl.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];
View
2  plugins/imagetools/samples/openclDesaturate.jstalk
@@ -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];
Please sign in to comment.
Something went wrong with that request. Please try again.