You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to port PTAMM to android, whitch uses OpenGL API. When the application run, I got the following log information about LIBGL :
I/LIBGL: LIBGL:loaded: libGLESv1_CM.so
I/LIBGL: LIBGL:loaded: libEGL.so E/libEGL: call to OpenGL ES API with no current context (logged once per thread) E/libEGL: call to OpenGL ES API with no current context (logged once per thread)
D/libEGL: eglInitialize EGLDisplay = 0xff96769c
I/LIBGL: LIBGL: Extension GL_OES_blend_subtract detected and used
I/LIBGL: LIBGL: Extension GL_OES_blend_func_separate detected and used
I/LIBGL: LIBGL: Extension GL_OES_blend_equation_separate detected and used
I/LIBGL: LIBGL: Extension GL_EXT_blend_minmax detected and used
I/LIBGL: LIBGL: Extension GL_OES_point_sprite detected and used
I/LIBGL: LIBGL: Extension GL_OES_point_size_array detected
I/LIBGL: LIBGL: Extension GL_OES_element_index_uint detected
I/LIBGL: LIBGL: Extension GL_OES_framebuffer_object detected and used
I/LIBGL: LIBGL: Extension GL_OES_packed_depth_stencil detected and used
I/LIBGL: LIBGL: Extension GL_OES_depth24 detected and used
I/LIBGL: LIBGL: Extension GL_OES_rgb8_rgba8 detected and used
I/LIBGL: LIBGL: Extension GL_EXT_texture_format_BGRA8888 detected
I/LIBGL: LIBGL: Extension GL_OES_texture_cube_map detected and used
I/LIBGL: LIBGL: Max texture size: 16384
I/LIBGL: LIBGL: Texture Units: 8, Max lights: 8
I/LIBGL: LIBGL: Implementation Read is GL_RGBA/GL_UNSIGNED_BYTE
I/LIBGL: LIBGL: Current folder is:/
I haven't checked the entire source code but I suspect the issue is with the GLES 1.1 context creation.
There is a limit of gl4es on Android for now: there is no real glX support, so gl4es is not abble to create the GLES 1.1 context by itself.
Most (all?) existing use of gl4es on Android use SDL or SDL2 and let it create that context.
So you have to create a GLES 1.1 context before calling any gl function in your Android app.
(the gl itself looks fine and should run in gl4es)
@ptitSeb
Finally, I find the problem has nothing to do with the GLES 1.1 context creation.
I use GLSurfaceView in JAVA code to create GLES 1.1 context.
Although the error log shows every time when the app runs :
E/libEGL: call to OpenGL ES API with no current context (logged once per thread)
E/libEGL: call to OpenGL ES API with no current context (logged once per thread)
In fact the opengl functions can work fine.
The problem is some other bugs and have nothing to do with gl4es.
Sorry about that ...
Besides, I find that GL_TEXTURE_RECTANGLE_ARB does not work with gl4es, while GL_TEXTURE_2D works fine.
I try to port PTAMM to android, whitch uses OpenGL API. When the application run, I got the following log information about LIBGL :
About the app, related native code :
And the related log:
I don't know what is wrong. Error when LIBGL initializing ? Or the way I call OpenGL API ?
The text was updated successfully, but these errors were encountered: