glGetString

Hello,
I’m experiencing a crash in visual studio 2010 when calling this function

const GLubyte *pszGLExtensions = glGetString(GL_EXTENSIONS);

Unhandled exception at 0x0f478050 in OGLESTExtureStreaming.exe: 0xC0000005: Access violation reading location 0x00000000.

Is this function supported from emulation sdk ?

thank you in advance


I’m using OGLES_WINDOWS_X86EMULATION_2.09.29.064.
I have tried adding the same line on examples/demo and it crash each time (demos run well without).




glGetString requires that you have a valid rendering context when it’s called. Are you calling it before your GL initialization code?


Hello Chris,
My bad, i put it after eglCreateContext but before invoking eglMakeCurrent. My apologies. Thank you for the quick answer.




last question if possible :slight_smile:
Naivly, and by any chance, is the GL_IMG_texture_stream available with the emulated driver ? my understanding from other thread is that it’s OEM dependent and need some DDK licensing schemes.

Good day



No, GL_IMG_texture_stream is not currently supported by the emulator.