diff options
author | Brian Paul <[email protected]> | 2008-06-16 10:03:05 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2008-06-16 10:03:05 -0600 |
commit | ec2d0decbd739df99cac4baba57fe0005bf4894d (patch) | |
tree | 050ef6df739104ecc8062d4a22454bc435c4f21d /src/mesa/swrast/s_context.c | |
parent | bbce58802d9bf94eadbb0d0c0211a0768f8302aa (diff) |
mesa: allocate pixel zoom arrays on heap, not stack
Fixes stack overflow on Windows.
Diffstat (limited to 'src/mesa/swrast/s_context.c')
-rw-r--r-- | src/mesa/swrast/s_context.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/swrast/s_context.c b/src/mesa/swrast/s_context.c index 8e6b28bb4c6..eab9ff3a9e7 100644 --- a/src/mesa/swrast/s_context.c +++ b/src/mesa/swrast/s_context.c @@ -832,6 +832,8 @@ _swrast_DestroyContext( GLcontext *ctx ) } FREE( swrast->SpanArrays ); + if (swrast->ZoomedArrays) + FREE( swrast->ZoomedArrays ); FREE( swrast->TexelBuffer ); FREE( swrast ); |