Mesa (master): egl: Update MaxSize when a dynamic array is grown.

Chia-I Wu olv at kemper.freedesktop.org
Wed Jun 30 03:52:56 PDT 2010


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

Author: Chia-I Wu <olv at lunarg.com>
Date:   Wed Jun 30 18:49:36 2010 +0800

egl: Update MaxSize when a dynamic array is grown.

---

 src/egl/main/eglarray.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/egl/main/eglarray.c b/src/egl/main/eglarray.c
index e4faaf4..41550bb 100644
--- a/src/egl/main/eglarray.c
+++ b/src/egl/main/eglarray.c
@@ -26,6 +26,7 @@ _eglGrowArray(_EGLArray *array)
    }
 
    array->Elements = elems;
+   array->MaxSize = new_size;
 
    return EGL_TRUE;
 }



More information about the mesa-commit mailing list