Error not shown, but window is not created Raspberry Pi 4
Hi!
I got a working opengl code with userland on Raspberry Pi 2 and 3, but window is not created on Raspberry Pi 4: https://github.com/eneiva/dtracker
There is not error message, thus I don't know what to look for. Just, execution is blocked after line 42 of picam.cpp file from code above. Display don't change, don't show egl window... just show desktop normally. I have checked that camera works, and the follow lines have been executed:
InitGraphics(convertToHSI);
GfxTexture textures[4];
for(int texidx = 0; texidx < num_levels; texidx++) textures[texidx].Create(MAIN_TEXTURE_WIDTH >> texidx, MAIN_TEXTURE_HEIGHT >> texidx);
I can only suppose that something is wrong in InitGraphics(convertToHSI);. I updated userland yesterday, because sow there was a solution for issue:
[Raspberry Pi 4] EGL Error : Could not create the egl surface #557
Thank you!
- Raspberry Pi4
- Raspbian "10 (buster)"
- 4.19.66-v7l
Versions of Pi up to the Pi3 had a vendor (Broadcom) provided OpenGLES stack running on the GPU.
Pi4 has changed to use the Linux standard Mesa libraries to provide OpenGL and OpenGLES. This requires a number of minor changes to the graphics setup. As linked in #557, please look at https://www.raspberrypi.org/forums/viewtopic.php?f=68&t=243611 for details.
This is an issue in the dtracker app, not with userland.