corjan
Posts: 3
Joined: Fri Sep 25, 2015 7:04 am

eglInitialize

Wed Feb 05, 2020 12:59 pm

Hi,


I downloaded the latest Buster release, and compiled our openGL ES2 code (without Desktop) that was working on an older Jessie build.

On the Buster release though, the eglInitialize returns EGL_NOT_INITIALIZED. The documentation says that the display cannot be initialized.
https://www.khronos.org/registry/EGL/sd ... lize.xhtml

The code I use is around the EGL and vc_dispmanx_ functions, very similar to this:
https://github.com/peepo/openGL-RPi-tut ... Screen.cpp


Is this something that should be backwards compatible on Buster, or should I stick with Jessie for the Pi 3 and 2?

Corjan

Daniel Gessel
Posts: 121
Joined: Sun Dec 03, 2017 1:47 am
Location: Boston area, MA, US
Contact: Website Twitter

Re: eglInitialize

Wed Feb 05, 2020 1:43 pm

Which driver are you running? Legacy, FKMS or KMS?

fruitoftheloom
Posts: 23132
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: eglInitialize

Wed Feb 05, 2020 2:38 pm

corjan wrote:
Wed Feb 05, 2020 12:59 pm
Hi,


I downloaded the latest Buster release, and compiled our openGL ES2 code (without Desktop) that was working on an older Jessie build.

On the Buster release though, the eglInitialize returns EGL_NOT_INITIALIZED. The documentation says that the display cannot be initialized.
https://www.khronos.org/registry/EGL/sd ... lize.xhtml

The code I use is around the EGL and vc_dispmanx_ functions, very similar to this:
https://github.com/peepo/openGL-RPi-tut ... Screen.cpp


Is this something that should be backwards compatible on Buster, or should I stick with Jessie for the Pi 3 and 2?

Corjan

Raspbian Stretch / Buster is considerably different to Wheezy / Jessie.

Therefore as even Stretch is approaching end of life, it is worth pursuing fixing in Buster.
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

corjan
Posts: 3
Joined: Fri Sep 25, 2015 7:04 am

Re: eglInitialize

Wed Feb 05, 2020 3:05 pm

HI,


Thanks for your response!

It is set to the default, Legacy.

I would like to update to Buster, but this is preventing me from doing so unfortunately. Ironically, it works fine now on the Pi 4 :).


Corjan

Daniel Gessel
Posts: 121
Joined: Sun Dec 03, 2017 1:47 am
Location: Boston area, MA, US
Contact: Website Twitter

Re: eglInitialize

Wed Feb 05, 2020 3:27 pm

corjan wrote:
Wed Feb 05, 2020 3:05 pm
It is set to the default, Legacy.
...
Ironically, it works fine now on the Pi 4 :).
Hmm, that throws me as I thought the dispmanx stuff didn’t work on Pi4 and maybe Buster was defaulting to fKMS on Pi3...

My understanding is we’re all supposed to migrate to KMS, so I started there and don’t have enough experience with dispmanx to help. The reference sample for kms seems to be kmscube, in case you want to consider it.

Return to “OpenGLES”