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:
Stas Gurtovoy
2011-06-20 16:15:47 +03:00
committed by Guy Zadickario
parent 62d074d9f8
commit 118af85051
2 changed files with 5 additions and 0 deletions

View File

@@ -453,6 +453,7 @@ GLEncoder::GLEncoder(IOStream *stream) : gl_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);