Christoph Bumiller <e0425...@student.tuwien.ac.at> writes:
> diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
> index 31a559e..e71f6e1 100644
> --- a/src/mesa/main/teximage.c
> +++ b/src/mesa/main/teximage.c

> +/** GL_ARB_texture_buffer_object */
> +void GLAPIENTRY
> +_mesa_TexBuffer(GLenum target, GLenum internalFormat, GLuint buffer)
> +{
> +   struct gl_buffer_object *bufObj;
> +
> +   GET_CURRENT_CONTEXT(ctx);
> +
> +   if (!ctx->Extensions.ARB_texture_buffer_object) {
> +      _mesa_error(ctx, GL_INVALID_OPERATION, "glTexBuffer");
> +      return;
> +   }

The check for also ctx->API == API_OPENGL_CORE here has been dropped, so
I think the i965 driver would start accepting this function in compat
contexts when it shouldn't.

If that check gets re-added, this is
Reviewed-by: Eric Anholt <e...@anholt.net>

Attachment: pgpBtFbRTIRYx.pgp
Description: PGP signature

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to