-
Notifications
You must be signed in to change notification settings - Fork 51
Crash when creating mesh with fplbase_stdlib on Android #7
Comments
On your API target, those functions should be natively available, i.e we do:
Only the stubs should declare them as variables that can be NULL. The init (which shouldn't run on your machine) is here:
Can you check if |
It doesn't run, i.e. I checked the |
Given your idea, I fixed it by removing I could set a PR with this fix, but I'm not sure how to check for |
Wow, I guess this is really a linker problem then? It sees two definitions of the function, and somehow decides to make it point to the uninitialized one from Which is weird, because I'd think they'd look like different kind of symbols to the linker, given that one is not necessarily a function pointer variable. Anyway, as to how to fix this.. @stewartmiles, do you know how to make this conditional? |
I think the easiest way to conditionally compile In
|
I get a crash when creating a mesh from a set of vertices, precisely on
glGenVertexArrays
fplbase/src/mesh_gl.cpp
Line 82 in e3c0933
My device supports OpenGL ES 3.2 and I think
fplbase_stdlib
is able to tell that at least the major version of the context is 3. However, if I force it to assume that the context is on version 2 (by commenting all these linesfplbase/src/environment_stdlib.cpp
Lines 49 to 52 in 8fb2efd
I'm targeting
android-25
, with minimumandroid-24
and my device is anandroid-25
, ABIarmeabi-v7a
.I feel like I'm missing calling some setup function to initialize OpenGL ES 3 functions, or maybe the proper header
GLES3/gl3.h
should be included on fplbase for latests Android APIs, but where?The text was updated successfully, but these errors were encountered: