Skip to content
Snippets Groups Projects
Commit d9b53bbf authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Fix a few instances of missing PYOPENCL_CL_CASTABLE_THIS

parent f3ee7e63
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -15,9 +15,9 @@ gl_texture::get_gl_texture_info(cl_gl_texture_info param_name) const ...@@ -15,9 +15,9 @@ gl_texture::get_gl_texture_info(cl_gl_texture_info param_name) const
{ {
switch (param_name) { switch (param_name) {
case CL_GL_TEXTURE_TARGET: case CL_GL_TEXTURE_TARGET:
return pyopencl_get_int_info(GLenum, GLTexture, this, param_name); return pyopencl_get_int_info(GLenum, GLTexture, PYOPENCL_CL_CASTABLE_THIS, param_name);
case CL_GL_MIPMAP_LEVEL: case CL_GL_MIPMAP_LEVEL:
return pyopencl_get_int_info(GLint, GLTexture, this, param_name); return pyopencl_get_int_info(GLint, GLTexture, PYOPENCL_CL_CASTABLE_THIS, param_name);
default: default:
throw clerror("MemoryObject.get_gl_texture_info", CL_INVALID_VALUE); throw clerror("MemoryObject.get_gl_texture_info", CL_INVALID_VALUE);
} }
......
...@@ -51,7 +51,7 @@ memory_object::get_info(cl_uint param_name) const ...@@ -51,7 +51,7 @@ memory_object::get_info(cl_uint param_name) const
#endif #endif
#if PYOPENCL_CL_VERSION >= 0x2000 #if PYOPENCL_CL_VERSION >= 0x2000
case CL_MEM_USES_SVM_POINTER: case CL_MEM_USES_SVM_POINTER:
return pyopencl_get_int_info(cl_bool, MemObject, this, param_name); return pyopencl_get_int_info(cl_bool, MemObject, PYOPENCL_CL_CASTABLE_THIS, param_name);
#endif #endif
default: default:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment