OpenGL on Android Lollipop crashes glDrawArrays() call

Asked 2 years ago, Updated 2 years ago, 104 views

Implementation for Android Lollipop

KitKat works fine, but it crashes when I start the application with Lollipop.

When I followed the log, the crash occurred in the glDrawArrays() call in the OpenGL function.

glPushMatrix();
glLoadIdentity();
glVertexPointer(3,GL_FLOAT,0,ver);
glColorPointer(4,GL_FLOAT, 0, color);
glDrawArrays (GL_TRIANGLE_STRIP, 0, 4); // crash
glPopMatrix();

crashed when calling .This is a warning that KitKat didn't have.

WARNING:Couldn't find glCurrentPaletteMatrixOES in procAddrs table
WARNING:Couldn't find glLoadPaletteFromModelViewMatrixOES in procAddrs table
WARNING:Couldn't find glMatrixIndexPointerOES in procAddrs table
WARNING:Couldn't find glWeightPointerOES in procAdds table

When I searched, there were no other examples.

If you know it, could you tell me how to solve it?
Thank you for your cooperation.

android opengl-es

2022-09-30 17:02

2 Answers

Looking at the source code, I think it's OpenGLES 1.X, but
1. There seems to be a lot of reports that X crashes with Lollipop.
I also have a lot of questions about stackoverflow in English…

I think the only way to do this is to wait for the Android version to be upgraded or reprogrammed with the higher version of OpenGLES.


2022-09-30 17:02

The required parameters may not have been initialized when glDrawArrays was invoked.
I can't say for sure because there's no description of where the function listed in Warning is used, but I feel like there's an incorrect value in the Matrix relationship.
You should check again to see if the device officially supports the extension.
Also, I think it would be helpful to check if each gl function has set an error.


2022-09-30 17:02

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.