Mesa (9.0): mesa: Pass GL context to _mesa_create_save_table

Ian Romanick idr at kemper.freedesktop.org
Fri Sep 28 18:06:54 UTC 2012


Module: Mesa
Branch: 9.0
Commit: c01f89606214e1b630c9a58c5dafc1aca2b97f40
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c01f89606214e1b630c9a58c5dafc1aca2b97f40

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Wed Sep  5 08:12:18 2012 -0700

mesa: Pass GL context to _mesa_create_save_table

This isn't used by this patch, but it will be necessary for several
follow-on patches.  Separating this out will make it easier to reorder
patches later.

NOTE: This is a candidate for the 9.0 branch

Signed-off-by: Ian Romanick <ian.d.romanick at intel.com>
Reviewed-by: Eric Anholt <eric at anholt.net>
(cherry picked from commit 3ef9e43865f38e9c8c5681768645513ce26e0488)

---

 src/mesa/main/context.c |    2 +-
 src/mesa/main/dlist.c   |    2 +-
 src/mesa/main/dlist.h   |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index feddbaa..c0e6bc7 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -1009,7 +1009,7 @@ _mesa_initialize_context(struct gl_context *ctx,
    switch (ctx->API) {
    case API_OPENGL:
 #if FEATURE_dlist
-      ctx->Save = _mesa_create_save_table();
+      ctx->Save = _mesa_create_save_table(ctx);
       if (!ctx->Save) {
          _mesa_reference_shared_state(ctx, &ctx->Shared, NULL);
 	 free(ctx->Exec);
diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c
index 5a813e9..0d94f39 100644
--- a/src/mesa/main/dlist.c
+++ b/src/mesa/main/dlist.c
@@ -9933,7 +9933,7 @@ exec_MultiModeDrawElementsIBM(const GLenum * mode,
  * struct.
  */
 struct _glapi_table *
-_mesa_create_save_table(void)
+_mesa_create_save_table(const struct gl_context *ctx)
 {
    struct _glapi_table *table;
 
diff --git a/src/mesa/main/dlist.h b/src/mesa/main/dlist.h
index 8900843..03053f9 100644
--- a/src/mesa/main/dlist.h
+++ b/src/mesa/main/dlist.h
@@ -63,7 +63,7 @@ extern void _mesa_delete_list(struct gl_context *ctx, struct gl_display_list *dl
 
 extern void _mesa_save_vtxfmt_init( GLvertexformat *vfmt );
 
-extern struct _glapi_table *_mesa_create_save_table(void);
+extern struct _glapi_table *_mesa_create_save_table(const struct gl_context *);
 
 extern void _mesa_install_dlist_vtxfmt(struct _glapi_table *disp,
                                        const GLvertexformat *vfmt);




More information about the mesa-commit mailing list