summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-11-23 20:20:03 +0100
committerMarek Olšák <[email protected]>2012-11-29 01:07:26 +0100
commit249f86e3f88d667437130a2badfe139d3144fcc9 (patch)
tree0e8fa22252c41d7bb08ce6aadf176f58036b3ee8 /src/gallium/state_trackers
parentf9429e30aa899520f41d4ba0f1a4534e7e6c9d95 (diff)
st/mesa: add support for GL core profiles
The rest of the plumbing was in place already. I have tested this by turning on all GL 3.1 features. The drivers not supporting GL 3.1 will fail to create a core profile as they should. Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r--src/gallium/state_trackers/dri/common/dri_context.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/dri/common/dri_context.c b/src/gallium/state_trackers/dri/common/dri_context.c
index b91303d3e7b..360174b056d 100644
--- a/src/gallium/state_trackers/dri/common/dri_context.c
+++ b/src/gallium/state_trackers/dri/common/dri_context.c
@@ -82,7 +82,9 @@ dri_create_context(gl_api api, const struct gl_config * visual,
attribs.profile = ST_PROFILE_OPENGL_ES2;
break;
case API_OPENGL:
- attribs.profile = ST_PROFILE_DEFAULT;
+ case API_OPENGL_CORE:
+ attribs.profile = api == API_OPENGL ? ST_PROFILE_DEFAULT
+ : ST_PROFILE_OPENGL_CORE;
attribs.major = major_version;
attribs.minor = minor_version;