Page 1 of 1

OpenGL EGL not working on Pi4??

Posted: Wed Aug 14, 2019 5:59 am
by kingbox1
Hi All
My programe is using OpenGL EGL, it works on pi3 and crashes on pi4 , it crashes at eglGetDisplay(EGL_DEFAULT_DISPLAY). I tried to build those sample code under /opt/vc which also uses EGL, however those applications output shows that it can not be run at pi4. So pi4 does not support EGL???

Re: OpenGL EGL not working on Pi4??

Posted: Wed Aug 14, 2019 8:31 am
by PeterO
This has been covered several times now...

This example got me going on the right track... https://wiki.maemo.org/SimpleGL_example

PeterO

Re: OpenGL EGL not working on Pi4??

Posted: Sat Aug 17, 2019 3:19 am
by pjbesl444
Thank you very much for this pointer. Just what I was looking for.

Re: OpenGL EGL not working on Pi4??

Posted: Thu Jan 16, 2020 9:30 am
by aren2000
pjbesl444 wrote:
Sat Aug 17, 2019 3:19 am
Thank you very much for this pointer. Just what I was looking for.
Have you solved this problem? I looked at that example and copy to my project , but it still crashed at that location。btw, i use pi4 :oops:

Re: OpenGL EGL not working on Pi4??

Posted: Thu Jan 16, 2020 10:04 am
by PeterO
I just recompiled the example on a Pi4 and it runs fine.
PeterO

Re: OpenGL EGL not working on Pi4??

Posted: Fri Jan 17, 2020 8:19 am
by aren2000
PeterO wrote:
Thu Jan 16, 2020 10:04 am
I just recompiled the example on a Pi4 and it runs fine.
PeterO
thank u! :D

At last, I found out that I linked the wrong library file and it crashed

Re: OpenGL EGL not working on Pi4??

Posted: Fri Jan 17, 2020 8:25 am
by PeterO
Did you see tweet from Eben ?
https://twitter.com/EbenUpton/status/12 ... 6679391232
"@Raspberry_Pi 4 is now OpenGL ES 3.1 conformant. Thanks to all our friends at @thekhronosgroup
and @igalia for their help in getting this done."

PeterO

Re: OpenGL EGL not working on Pi4??

Posted: Fri Feb 07, 2020 10:50 pm
by rmills232
PeterO wrote:
Wed Aug 14, 2019 8:31 am
This has been covered several times now...

This example got me going on the right track... https://wiki.maemo.org/SimpleGL_example

PeterO
Did anyone manage to get this working on the Rpi 3, I'm having trouble with that.