st-api: Clean-up OpenGL profile handling
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 1 Dec 2011 22:24:55 +0000 (14:24 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 23 Dec 2011 16:49:47 +0000 (08:49 -0800)
commit358ecff1ea0fa8432fd46bd3deeb8d2d694b5550
treed8e285471e173a607ce1da802a5dbe64a7e1978c
parented4a65c3cfdf88afba48860be34ce26f7c371869
st-api: Clean-up OpenGL profile handling

There seems to have been two different ways to communicate the
profile.  There were flags and there were profiles.  I've opted to
remove the profile flags and use ST_PROFILE_DEFAULT (compatibility
profile) and ST_PROFILE_OPENGL_CORE (core profile) consistently
instead.

Also change the values of the ST_CONTEXT_FLAG_DEBUG and
ST_CONTEXT_FLAG_FORWARD_COMPATIBLE flags to match the WGL and GLX
values.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Chia-I Wu <olv@lunarg.com>
src/gallium/include/state_tracker/st_api.h
src/gallium/state_trackers/glx/xlib/xm_api.c
src/gallium/state_trackers/wgl/stw_context.c