diff options
author | Marek Olšák <marek.olsak@amd.com> | 2020-09-28 08:53:42 -0400 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2020-12-01 11:52:10 +0000 |
commit | 3175b63a0dfa290430f9f7eb651387788933a02b (patch) | |
tree | 0bf61b7de9e1b75dbba5f083e522ea08f759ae3c /src/mesa/tnl | |
parent | 9c84ca574d43b47932f32fc7cb67a21cec7ffe8c (diff) |
mesa: don't allocate matrices with malloc
There is no reason for it. This removes a pointer indirection.
Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6946>
Diffstat (limited to 'src/mesa/tnl')
-rw-r--r-- | src/mesa/tnl/t_context.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/mesa/tnl/t_context.c b/src/mesa/tnl/t_context.c index 1b787180e36..cd79e968ef1 100644 --- a/src/mesa/tnl/t_context.c +++ b/src/mesa/tnl/t_context.c @@ -113,8 +113,6 @@ _tnl_DestroyContext( struct gl_context *ctx ) struct tnl_shine_tab *s, *tmps; TNLcontext *tnl = TNL_CONTEXT(ctx); - _math_matrix_dtr(&tnl->_WindowMap); - /* Free lighting shininess exponentiation table */ foreach_s( s, tmps, tnl->_ShineTabList ) { free( s ); |