summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/radeon/radeon_common_context.c
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2013-12-19 11:04:29 -0800
committerIan Romanick <ian.d.romanick@intel.com>2014-01-27 14:21:43 -0700
commit33214679bb632a80d4339ffa0f28f7620d510658 (patch)
tree4ac763c47b62b63e143b5bf11fdeeb1d33a661c2 /src/mesa/drivers/dri/radeon/radeon_common_context.c
parentaf0b34783e4e4f2a5d03444738a785f15bbb755b (diff)
downloadexternal_mesa3d-33214679bb632a80d4339ffa0f28f7620d510658.zip
external_mesa3d-33214679bb632a80d4339ffa0f28f7620d510658.tar.gz
external_mesa3d-33214679bb632a80d4339ffa0f28f7620d510658.tar.bz2
radeon / r200: Pass the API into _mesa_initialize_context
Otherwise an application that requested an OpenGL ES 1.x context would actually get a desktop OpenGL context. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Cc: "9.1 9.2 10.0" <mesa-stable@lists.freedesktop.org> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/drivers/dri/radeon/radeon_common_context.c')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_common_context.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_common_context.c b/src/mesa/drivers/dri/radeon/radeon_common_context.c
index 925a077..54db9d5 100644
--- a/src/mesa/drivers/dri/radeon/radeon_common_context.c
+++ b/src/mesa/drivers/dri/radeon/radeon_common_context.c
@@ -126,6 +126,7 @@ static void radeonInitDriverFuncs(struct dd_function_table *functions)
* including the Mesa context itself.
*/
GLboolean radeonInitContext(radeonContextPtr radeon,
+ gl_api api,
struct dd_function_table* functions,
const struct gl_config * glVisual,
__DRIcontext * driContextPriv,
@@ -147,7 +148,7 @@ GLboolean radeonInitContext(radeonContextPtr radeon,
else
shareCtx = NULL;
- if (!_mesa_initialize_context(&radeon->glCtx, API_OPENGL_COMPAT,
+ if (!_mesa_initialize_context(&radeon->glCtx, api,
glVisual, shareCtx,
functions))
return GL_FALSE;