Fix segfault when destroying context

m_texCoords was not initialized in the GLEScontext constructor, so when
destructing it resulted in an illegal free.
This commit is contained in:
Yochai Shefi Simchon
2011-06-13 14:07:36 +03:00
committed by Guy Zadickario
parent 03da50800f
commit 6a40d94db4

View File

@@ -34,7 +34,7 @@ void GLEScmContext::init() {
m_initialized = true; m_initialized = true;
} }
GLEScmContext::GLEScmContext():GLEScontext(),m_pointsIndex(-1), m_clientActiveTexture(0) { GLEScmContext::GLEScmContext():GLEScontext(),m_texCoords(NULL),m_pointsIndex(-1), m_clientActiveTexture(0) {
m_map[GL_COLOR_ARRAY] = new GLESpointer(); m_map[GL_COLOR_ARRAY] = new GLESpointer();
m_map[GL_NORMAL_ARRAY] = new GLESpointer(); m_map[GL_NORMAL_ARRAY] = new GLESpointer();