diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2010-06-20 09:34:20 +1000 |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2010-06-20 09:34:20 +1000 |
commit | c5d08e29a631a9351ede610e4ed1d9e2c5ab5d65 (patch) | |
tree | 468e2d92b9908f2015d9db4cbbbbb2e5c3beb8d9 | |
parent | a892a269da3d3d1260683c7fd7d1cb373ddbcbc2 (diff) |
Fix QCLDevice::maximumImage2DSize() on 64-bit platforms.
The function was querying for an int instead of a size_t.
-rw-r--r-- | src/opencl/qcldevice.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/opencl/qcldevice.cpp b/src/opencl/qcldevice.cpp index 528b73c..956e25a 100644 --- a/src/opencl/qcldevice.cpp +++ b/src/opencl/qcldevice.cpp @@ -407,13 +407,13 @@ QSize QCLDevice::maximumImage2DSize() const { if (!qt_cl_paramBool(m_id, CL_DEVICE_IMAGE_SUPPORT)) return QSize(); - return QSize(qt_cl_paramInt(m_id, CL_DEVICE_IMAGE2D_MAX_WIDTH), - qt_cl_paramInt(m_id, CL_DEVICE_IMAGE2D_MAX_HEIGHT)); + return QSize(qt_cl_paramSize(m_id, CL_DEVICE_IMAGE2D_MAX_WIDTH), + qt_cl_paramSize(m_id, CL_DEVICE_IMAGE2D_MAX_HEIGHT)); } /*! Returns the maximum size of 3D images that are supported - by this device; or a (0, 0, 0) if images are not supported. + by this device; or (0, 0, 0) if images are not supported. \sa maximumImage2DSize(), hasImage3D() */ |