[PATCH 4/5] opengl32: Store the OpenGL context version in the handle value.

Alexandre Julliard julliard at winehq.org
Fri Jan 16 10:31:33 CST 2015


Matteo Bruni <mbruni at codeweavers.com> writes:

> @@ -53,7 +53,14 @@ enum wgl_handle_type
>  {
>      HANDLE_CONTEXT = 0 << 12,
>      HANDLE_PBUFFER = 1 << 12,
> -    HANDLE_TYPE_MASK = 15 << 12
> +    HANDLE_TYPE_MASK = 7 << 12
> +};
> +
> +enum wgl_opengl_version
> +{
> +    OPENGL_1 = 0 << 15,
> +    OPENGL_3 = 1 << 15,
> +    OPENGL_VER_MASK = 1 << 15
>  };

That's certainly acceptable, but since it only applies to contexts I'm
wondering if it wouldn't be cleaner to add a CONTEXT_V3 type in the
existing enum.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list