Kenneth Graunke <kenn...@whitecape.org> writes: > The main GL context's swtnl_im field is the VBO module's vbo_context > structure. Using the name "swtnl" in the name is confusing since > some drivers use hardware texturing and lighting, but still rely on the > VBO module for drawing. > > Signed-off-by: Kenneth Graunke <kenn...@whitecape.org> > --- > src/mesa/main/mtypes.h | 2 +- > src/mesa/vbo/vbo_context.c | 4 ++-- > src/mesa/vbo/vbo_context.h | 2 +- > 3 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h > index 8c38aa7..7900897 100644 > --- a/src/mesa/main/mtypes.h > +++ b/src/mesa/main/mtypes.h > @@ -3613,7 +3613,7 @@ struct gl_context > void *swrast_context; > void *swsetup_context; > void *swtnl_context; > - void *swtnl_im; > + void *vbo_context; > struct st_context *st; > void *aelt_context; > /*@}*/
Could we forward declare struct vbo_context and use the actual type here? That would clarify things even further, and avoid gratuitous casting.
pgpRpGeLsI2mN.pgp
Description: PGP signature
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev