ptitSeb / gl4es

GL4ES is a OpenGL 2.1/1.5 to GL ES 2.0/1.1 translation library, with support for Pandora, ODroid, OrangePI, CHIP, Raspberry PI, Android, Emscripten and AmigaOS4.
http://ptitseb.github.io/gl4es/
MIT License
682 stars 154 forks source link

undefined symbol: glGetSynciv #210

Open jgmdev opened 3 years ago

jgmdev commented 3 years ago

Since Kodi advertises that it should work on opengl 2.0 I tried running it with GL4ES but it seems glGetSynciv isn't wrapped over the GLES glGetSynciv. Looking at documentation it seems that both desktop GL and GLES versions are identical.

Tried adding it but not sure if the gles.h and gles.c are auto generated by some kind of tool...

ptitSeb commented 3 years ago

This is only in GLES 3.0+, not before (well, there is probably an extension for this). I need to see how to implement (or fake implement) it.

gles.h and gles.c are indeed generated. Process is a bit tricky for now, not completly automated :(

jgmdev commented 3 years ago

In my case libmali implements glGetSynciv so it would be a 1 on 1 call but I guess that for other hardware an alternative implementation would be needed.

ptitSeb commented 3 years ago

The symbol is present because libmali.so implement all EGL and GLES lib in 1 lib. I'm still unsure if that symbol "works" with an GLESv2 context (probably, but I think it's safer to use the GLES Extension)