--- OpenCL/OpenCL.xs 2011/11/17 04:17:43 1.11 +++ OpenCL/OpenCL.xs 2011/11/17 06:22:29 1.12 @@ -332,7 +332,7 @@ XPUSH_NEW_OBJ ("OpenCL::Buffer", mem); void -image2d (OpenCL::Context this, cl_mem_flags flags, cl_channel_order channel_order, cl_channel_type channel_type, size_t width, size_t height, size_t row_pitch, SV *data) +image2d (OpenCL::Context this, cl_mem_flags flags, cl_channel_order channel_order, cl_channel_type channel_type, size_t width, size_t height, size_t row_pitch = 0, SV *data = &PL_sv_undef) PPCODE: STRLEN len; char *ptr = SvPVbyte (data, len); @@ -341,7 +341,7 @@ XPUSH_NEW_OBJ ("OpenCL::Image2D", mem); void -image3d (OpenCL::Context this, cl_mem_flags flags, cl_channel_order channel_order, cl_channel_type channel_type, size_t width, size_t height, size_t depth, size_t row_pitch, size_t slice_pitch, SV *data) +image3d (OpenCL::Context this, cl_mem_flags flags, cl_channel_order channel_order, cl_channel_type channel_type, size_t width, size_t height, size_t depth, size_t row_pitch = 0, size_t slice_pitch = 0, SV *data = &PL_sv_undef) PPCODE: STRLEN len; char *ptr = SvPVbyte (data, len);