[Mesa-dev] [PATCH 6/9] dispatch: Make a header to go along with querymatrix.c.

Chad Versace chad.versace at linux.intel.com
Wed Oct 31 15:27:10 PDT 2012


On 10/30/2012 10:42 AM, Paul Berry wrote:
> This patch creates a header querymatrix.h, to allow functions defined
> in querymatrix.c to be used from other .c files.  It also switches
> from the nonstandard GL_APIENTRY to GLAPIENTRY.
> ---
>  src/mesa/main/querymatrix.c | 12 +++++-------
>  src/mesa/main/querymatrix.h | 39 +++++++++++++++++++++++++++++++++++++++
>  2 files changed, 44 insertions(+), 7 deletions(-)
>  create mode 100644 src/mesa/main/querymatrix.h
> 
> diff --git a/src/mesa/main/querymatrix.c b/src/mesa/main/querymatrix.c
> index 2843d55..27842ae 100644

> +extern void GLAPIENTRY _mesa_GetIntegerv(GLenum pname, GLint *params);
> +extern void GLAPIENTRY _mesa_GetFloatv(GLenum pname, GLfloat *params);

I think the local declarations of the Get functions should be removed. Instead,
just #include "main/get.h".


More information about the mesa-dev mailing list