emulator GLESv2: fixed (#16) NenaMark crashes on exit
The GL2Encoder::m_compressedTextureFormats member wasn't initialized, so the d'tor would sometimes crash trying to delete it. Also init m_num_compressedTextureFormats. Change-Id: Iae423c16a84a4e454e0e1167f7478f9e2f6183c0
This commit is contained in:
committed by
Guy Zadickario
parent
62d074d9f8
commit
118af85051
@@ -9,7 +9,11 @@ static GLubyte *gExtensionsString= (GLubyte *) ""; // no extensions at this poin
|
||||
|
||||
GL2Encoder::GL2Encoder(IOStream *stream) : gl2_encoder_context_t(stream)
|
||||
{
|
||||
m_initialized = false;
|
||||
m_state = NULL;
|
||||
m_num_compressedTextureFormats = 0;
|
||||
m_compressedTextureFormats = NULL;
|
||||
//overrides
|
||||
m_glFlush_enc = set_glFlush(s_glFlush);
|
||||
m_glPixelStorei_enc = set_glPixelStorei(s_glPixelStorei);
|
||||
m_glGetString_enc = set_glGetString(s_glGetString);
|
||||
|
||||
Reference in New Issue
Block a user