mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
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@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
(cherry picked from commit 3ef9e43865)
This commit is contained in:
parent
b56c93dfff
commit
c01f896062
3 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue