mesa_glinterop: replace GL types with their native counterpart.
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 3 May 2016 11:13:43 +0000 (12:13 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 24 May 2016 22:02:56 +0000 (23:02 +0100)
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Tested-by: Tom Stellard <thomas.stellard@amd.com>
include/GL/mesa_glinterop.h

index 05435744cbcce3386a073a368ff1f881cb923337..7e57dda2d5a289387a445587be818ab6eb15df37 100644 (file)
@@ -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.