[Mesa-dev] [PATCH v4 3/7] mesa: add support for using API_OPENGL_CORE

Eric Anholt eric at anholt.net
Mon Jul 30 13:00:44 PDT 2012


Jordan Justen <jordan.l.justen at intel.com> writes:
> diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c
> index 15de321..2a39693 100644
> --- a/src/mesa/main/get.c
> +++ b/src/mesa/main/get.c
> @@ -391,6 +391,7 @@ extra_NV_read_buffer_api_gl[] = {
>  #define API_OPENGL_BIT (1 << API_OPENGL)
>  #define API_OPENGLES_BIT (1 << API_OPENGLES)
>  #define API_OPENGLES2_BIT (1 << API_OPENGLES2)
> +#define API_OPENGL_CORE_BIT (1 << API_OPENGL_CORE)
>  
>  /* This is the big table describing all the enums we accept in
>   * glGet*v().  The table is partitioned into six parts: enums
> @@ -405,7 +406,9 @@ extra_NV_read_buffer_api_gl[] = {
>  static const struct value_desc values[] = {
>     /* Enums shared between OpenGL, GLES1 and GLES2 */
>     { 0, 0, TYPE_API_MASK,
> -     API_OPENGL_BIT | API_OPENGLES_BIT | API_OPENGLES2_BIT, NO_EXTRA},
> +     API_OPENGL_BIT | API_OPENGLES_BIT |API_OPENGLES2_BIT |

weird little bit of whitespace loss there.

> diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c
> index efa63b0..fee5669 100644
> --- a/src/mesa/main/varray.c
> +++ b/src/mesa/main/varray.c
> @@ -92,7 +92,7 @@ type_to_bit(const struct gl_context *ctx, GLenum type)
>     case GL_DOUBLE:
>        return DOUBLE_BIT;
>     case GL_FIXED:
> -      return ctx->API == API_OPENGL ? FIXED_GL_BIT : FIXED_ES_BIT;
> +      return (_mesa_is_desktop_gl(ctx)) ? FIXED_GL_BIT : FIXED_ES_BIT;

funny extra parens.

other than that, the series is:

Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20120730/926b8ec8/attachment.pgp>


More information about the mesa-dev mailing list