From a8c0eb215b496817e2262104c800b2e0d6a2105e Mon Sep 17 00:00:00 2001 From: Nicolai Hähnle Date: Tue, 5 Dec 2017 11:03:35 +0100 Subject: dri_interface: document error behavior of mapImage This function is meant to return NULL on error, unlike some other APIs (such as mmap()), which return MAP_FAILED. --- include/GL/internal/dri_interface.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h index 4f4795c7ae..3c8bbe5ff8 100644 --- a/include/GL/internal/dri_interface.h +++ b/include/GL/internal/dri_interface.h @@ -1562,6 +1562,8 @@ struct __DRIimageExtensionRec { * Returns the byte stride in *stride, and an opaque pointer to data * tracking the mapping in **data, which must be passed to unmapImage(). * + * Returns NULL on error. + * * \since 12 */ void *(*mapImage)(__DRIcontext *context, __DRIimage *image, -- cgit v1.2.3