[Mesa-dev] [PATCH 10/11] mesa: Add GetProgramiv support for GL_PROGRAM_BINARY_LENGTH

Brian Paul brianp at vmware.com
Wed Jan 2 12:53:00 PST 2013


On 12/19/2012 05:14 PM, Ian Romanick wrote:
> From: Ian Romanick<ian.d.romanick at intel.com>
>
> Signed-off-by: Ian Romanick<ian.d.romanick at intel.com>
> ---
>   src/mesa/main/shaderapi.c | 3 +++
>   1 file changed, 3 insertions(+)
>
> diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c
> index 39a883e..c7934d7 100644
> --- a/src/mesa/main/shaderapi.c
> +++ b/src/mesa/main/shaderapi.c
> @@ -595,6 +595,9 @@ get_programiv(struct gl_context *ctx, GLuint program, GLenum pname, GLint *param
>
>         *params = shProg->BinaryRetreivableHint;
>         return;
> +   case GL_PROGRAM_BINARY_LENGTH:
> +      *params = 0;
> +      return;
>      default:
>         break;
>      }

Does this query need an extension/API check?

-Brian



More information about the mesa-dev mailing list