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:
committed by
Guy Zadickario
parent
03da50800f
commit
6a40d94db4
@@ -34,7 +34,7 @@ void GLEScmContext::init() {
|
||||
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_NORMAL_ARRAY] = new GLESpointer();
|
||||
|
||||
Reference in New Issue
Block a user