# eglGetDisplay() issue

**URL:** https://forums.imgtec.com/t/eglgetdisplay-issue/407
**Category:** PowerVR Insider
**Created:** [July 14, 2009, 7:10am UTC](https://forums.imgtec.com/t/eglgetdisplay-issue/407 "2009-07-14T07:10:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![kuroneko](https://avatars.discourse-cdn.com/v4/letter/k/b38774/32.png) [@kuroneko](https://forums.imgtec.com/u/kuroneko)
#### Post date: [July 14, 2009, 7:10am UTC](https://forums.imgtec.com/t/eglgetdisplay-issue/407/1 "2009-07-14T07:10:32Z")

</div>

I run both the GLES1.x and 2.0 SDKs on my machine. The example code uses a win32 specific display ID (in fact it’s the device context from the native window handle). That works. What doesn’t work is EGL’s default display (EGL\_DEFAULT\_DISPLAY). GLES does work in the background but I don’t get any display in the window.  
  
So is there a workaround or am I stuck with this?  
  
Personally I think it’s a slightly broken implementation. If the device context is required (which is reasonable) then it can always be obtained from the window surface’s native window handle at the point dpy/ctx/srf are made current. So there is no reason that the default display shouldn’t generate output.  
  
Thanks

---

<div class="post-metadata">

### Author: ![jacekc](https://avatars.discourse-cdn.com/v4/letter/j/ccd318/32.png) [@jacekc](https://forums.imgtec.com/u/jacekc)
#### Post date: [October 21, 2009, 1:33pm UTC](https://forums.imgtec.com/t/eglgetdisplay-issue/407/2 "2009-10-21T13:33:03Z")

</div>

Sorry for very late response.

Currently situation looks like the way you have described. So passing EGL\_DEFAULT\_DISPLAY may not work under Windows. This is known issue and will be subject to reimplementation in one of our next releases (Internally the bug report was filed , BRN28615).Â

Best regards,

---

<div class="post-metadata">

### Author: ![kuroneko](https://avatars.discourse-cdn.com/v4/letter/k/b38774/32.png) [@kuroneko](https://forums.imgtec.com/u/kuroneko)
#### Post date: [October 23, 2009, 12:08am UTC](https://forums.imgtec.com/t/eglgetdisplay-issue/407/3 "2009-10-23T00:08:11Z")

</div>

Thanks.
