raspberrypi / userland

Source code for ARM side libraries for interfacing to Raspberry Pi GPU.
BSD 3-Clause "New" or "Revised" License
2.05k stars 1.09k forks source link

glGetString returns error on RPi without vc4 #633

Open limbouser opened 4 years ago

limbouser commented 4 years ago

I'm trying a Yocto build for RPi, when I disable vc4, and try to run an openGL application, I get an error saying it can't resolve glGetString(GL_VERSION). When I looked for the cause of that error, it said I doesn't have a proper openGL implementation. Any ideas on how I can get past it? (Enabling vc4 is not an option for me)(I'm posting this here cos RPi uses userland display libraries when vc4 is disabled)

JamesH65 commented 4 years ago

Do you mean you have disabled FKMS on the Pi4? If so, you have no 3D support/driver, so gl calls will not work correctly.

On the Pi3 you could use the older userland code talking to the VC4 3D HW, the FKMS driver is disabled by default,

limbouser commented 4 years ago

Actually I'm using a Raspberry Pi 3 and is working on Yocto images, not Raspbian. When I turn on the fkms the glGetString error doesn't occur, but when it's disable, I am having the glGetString error.