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.
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.
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.
915 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
611 GDB gets version error when attempting to debug with the Presense SDK (IDE)
572 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
578 Understanding How to Configure Google API Key
618 Uncaught (inpromise) Error on Electron: An object could not be cloned
© 2024 OneMinuteCode. All rights reserved.