[Mesa-dev] [PATCH 05/14] mesa_glinterop: replace GL types with their native counterpart.

Emil Velikov emil.l.velikov at gmail.com
Tue May 24 14:32:47 UTC 2016


From: Emil Velikov <emil.velikov at collabora.com>

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
We could even use the explicitly sized integer types in here if people
prefer. I don't mind either way.
---
 include/GL/mesa_glinterop.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/GL/mesa_glinterop.h b/include/GL/mesa_glinterop.h
index 0543574..7e57dda 100644
--- a/include/GL/mesa_glinterop.h
+++ b/include/GL/mesa_glinterop.h
@@ -50,6 +50,7 @@
 #ifndef MESA_GLINTEROP_H
 #define MESA_GLINTEROP_H
 
+#include <stddef.h>
 #include <GL/glx.h>
 #include <EGL/egl.h>
 
@@ -202,8 +203,8 @@ typedef struct _mesa_glinterop_export_out {
     * Parameters specified by glTexBufferRange for GL_TEXTURE_BUFFER are
     * applied to these and can shrink the range further.
     */
-   GLintptr buf_offset;
-   GLsizeiptr buf_size;
+   ptrdiff_t buf_offset;
+   ptrdiff_t buf_size;
 
    /* Parameters specified by glTextureView. If the object is not a texture
     * view, default parameters covering the whole texture will be returned.
-- 
2.8.2



More information about the mesa-dev mailing list