Ian Romanick <[email protected]> writes:

> From: Ian Romanick <[email protected]>
>
> v2: Add proper core-profile and GLES3 filtering.

> diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c
> index 6ad0787..f8938a5 100644
> --- a/src/mesa/main/bufferobj.c
> +++ b/src/mesa/main/bufferobj.c
> @@ -1142,7 +1142,7 @@ _mesa_MapBufferARB(GLenum target, GLenum access)
>     switch (access) {
>     case GL_READ_ONLY_ARB:
>        accessFlags = GL_MAP_READ_BIT;
> -      valid_access = (ctx->API == API_OPENGL);
> +      valid_access = _mesa_is_desktop_gl(ctx);
>        break;
>     case GL_WRITE_ONLY_ARB:
>        accessFlags = GL_MAP_WRITE_BIT;
> @@ -1150,7 +1150,7 @@ _mesa_MapBufferARB(GLenum target, GLenum access)
>        break;
>     case GL_READ_WRITE_ARB:
>        accessFlags = GL_MAP_READ_BIT | GL_MAP_WRITE_BIT;
> -      valid_access = (ctx->API == API_OPENGL);
> +      valid_access = _mesa_is_desktop_gl(ctx);
>        break;
>     default:
>        valid_access = false;

This hunk should be in 3/4.

Other than these two notes, I think this series is:

Reviewed-by: Eric Anholt <[email protected]>

Attachment: pgp6VUN9KV7aD.pgp
Description: PGP signature

_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to