diff options
author | Brian Paul <[email protected]> | 2011-02-08 19:25:04 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-02-08 19:25:04 -0700 |
commit | 6f2f449414e51e3b98f85e3fc916a7f3d42a99d4 (patch) | |
tree | d790bf5a50dcb01cb2d07f24db5b7f32e9b17e4c /src/mesa/main/context.c | |
parent | 5e4ca1ccc9029fd75bb7676dc128e33d12da9665 (diff) |
mesa: remove _mesa_create_context_for_api()
Just add the gl_api parameter to _mesa_create_context().
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r-- | src/mesa/main/context.c | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 488859aa2fe..a942314552e 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -1044,11 +1044,11 @@ _mesa_initialize_context(struct gl_context *ctx, * \return pointer to a new __struct gl_contextRec or NULL if error. */ struct gl_context * -_mesa_create_context_for_api(gl_api api, - const struct gl_config *visual, - struct gl_context *share_list, - const struct dd_function_table *driverFunctions, - void *driverContext) +_mesa_create_context(gl_api api, + const struct gl_config *visual, + struct gl_context *share_list, + const struct dd_function_table *driverFunctions, + void *driverContext) { struct gl_context *ctx; @@ -1071,22 +1071,6 @@ _mesa_create_context_for_api(gl_api api, /** - * Create an OpenGL context. - */ -struct gl_context * -_mesa_create_context(const struct gl_config *visual, - struct gl_context *share_list, - const struct dd_function_table *driverFunctions, - void *driverContext) -{ - return _mesa_create_context_for_api(API_OPENGL, visual, - share_list, - driverFunctions, - driverContext); -} - - -/** * Free the data associated with the given context. * * But doesn't free the struct gl_context struct itself. |