[Mesa-dev] [PATCH 1/9] mesa api_exec: add comment regarding GetPointerv & CORE profiles

Ian Romanick idr at freedesktop.org
Thu Oct 25 11:18:41 PDT 2012


On 10/24/2012 02:20 PM, Jordan Justen wrote:
> GetPointerv was de-deprecated in 893ddb.
>
> Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
> ---
>   src/mesa/main/api_exec.c |    4 ++++
>   1 file changed, 4 insertions(+)
>
> diff --git a/src/mesa/main/api_exec.c b/src/mesa/main/api_exec.c
> index a670fba..d21c99e 100644
> --- a/src/mesa/main/api_exec.c
> +++ b/src/mesa/main/api_exec.c
> @@ -326,6 +326,10 @@ _mesa_create_exec_table(struct gl_context *ctx)
>         SET_InterleavedArrays(exec, _mesa_InterleavedArrays);
>      }
>      if (ctx->API != API_OPENGLES2) {
> +      /* Note glGetPointerv is deprecated in GL CORE 3.1 through 4.2, but
> +         was re-added in GL CORE 4.3. We will just keep the function
> +         around in all GL CORE contexts.
> +       */

Each line of the comment should start with *

       /* Note glGetPointerv is deprecated in GL CORE 3.1 through 4.2, but
        * was re-added in GL CORE 4.3. We will just keep the function
        * around in all GL CORE contexts.
        */

>         SET_GetPointerv(exec, _mesa_GetPointerv);
>      }
>      SET_IsTexture(exec, _mesa_IsTexture);
>



More information about the mesa-dev mailing list