# glGetString

**URL:** <https://forums.imgtec.com/t/glgetstring/1329>\
**Category:** PowerVR Insider\
**Created:** [March 12, 2012, 10:13am UTC](https://forums.imgtec.com/t/glgetstring/1329 "2012-03-12T10:13:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gpgnews](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@gpgnews](https://forums.imgtec.com/u/gpgnews)\
**Post date:** [March 12, 2012, 10:13am UTC](https://forums.imgtec.com/t/glgetstring/1329/1 "2012-03-12T10:13:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![gpgnews](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@gpgnews](https://forums.imgtec.com/u/gpgnews)\
**Post date:** [March 12, 2012, 10:30am UTC](https://forums.imgtec.com/t/glgetstring/1329/2 "2012-03-12T10:30:31Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![ChrisPenrose](https://avatars.discourse-cdn.com/v4/letter/c/e36b37/32.png) [@ChrisPenrose](https://forums.imgtec.com/u/ChrisPenrose)\
**Post date:** [March 12, 2012, 10:54am UTC](https://forums.imgtec.com/t/glgetstring/1329/3 "2012-03-12T10:54:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![gpgnews](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@gpgnews](https://forums.imgtec.com/u/gpgnews)\
**Post date:** [March 12, 2012, 11:01am UTC](https://forums.imgtec.com/t/glgetstring/1329/4 "2012-03-12T11:01:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![gpgnews](https://avatars.discourse-cdn.com/v4/letter/g/dbc845/32.png) [@gpgnews](https://forums.imgtec.com/u/gpgnews)\
**Post date:** [March 12, 2012, 11:11am UTC](https://forums.imgtec.com/t/glgetstring/1329/5 "2012-03-12T11:11:31Z")

</div>

last question if possible 🙂  
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

---

<div class="post-metadata">

**Author:** ![ChrisPenrose](https://avatars.discourse-cdn.com/v4/letter/c/e36b37/32.png) [@ChrisPenrose](https://forums.imgtec.com/u/ChrisPenrose)\
**Post date:** [March 12, 2012, 11:31am UTC](https://forums.imgtec.com/t/glgetstring/1329/6 "2012-03-12T11:31:41Z")

</div>

No, GL\_IMG\_texture\_stream is not currently supported by the emulator.
