[Mesa-dev] [PATCH] mesa: generate error if pbo offset is not aligned with the size of specified type

Brian Paul brianp at vmware.com
Mon Oct 17 07:29:47 PDT 2011


On 10/16/2011 07:59 PM, Yuanhan Liu wrote:
> v2: quote the spec; explicitly exclude the GL_BITMAP case to make code
>      more readable. (comments from Ian)
>
> v3: Cast the offset by GLintptr to remove the compile warning(comments
>      from Brian).
>
>      I also found that I should use _mesa_sizeof_packed_type() instead,
>      as it includes packed pixel type, like GL_UNSIGNED_SHORT_5_6_5.
>
> Signed-off-by: Yuanhan Liu<yuanhan.liu at linux.intel.com>
> ---


Reviewed-by: Brian Paul <brianp at vmware.com>



More information about the mesa-dev mailing list