• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Error with the draw of a shape

Yoyojava

Lurker
Feb 14, 2017
8
3
Hello,

I try to draw a triangle in my app by using the tutorial in the android developer web site (https://developer.android.com/training/graphics/opengl/environment.html) but my triangle it is not draw and I have an error message:
distrib/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetAttribLocation:995 error 0x502
distrib/android-emugl/host/libs/Translator/GLES_V2/GLESv2Imp.cpp:glGetUniformLocation:1633 error 0x502

I think it's come frome my class Triangle but I don't found the mistake. I put a screenshot of my class Triangle.

thank you
 

Attachments

  • classTriangle.png
    classTriangle.png
    61.2 KB · Views: 86

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones