Hey guys. I have a quick problem that I’m hoping someone can help me with. I’m running cocos2dx 2.2 and I’m receiving a huge number of the following errors that causes eclipse to almost freeze:
<__load_uniform_matrix:801>: GL_INVALID_OPERATION D/cocos2d-x debug info(8393): OpenGL error 0x0502 in /Users/zachkauffman/Desktop/repository/android/proj.android/../../cocos2dx/cocos2dx/sprite_nodes/CCSprite.cpp draw 584
This happens after I press a button that calls a JNI function to log in to facebook. I get the facebook prompt “**** would like to access your profile”, I hit “OK” and the screen goes black and I get all of those OpenGL errors. I have seen threads in here about similar problems, but none of the solutions helped. Am I doing something wrong?
Here is my code:
`//called appropriately from c++, me is this activity and yet I get a ton of opengl errors
//even when I take away the runonuithread I still get the same errors.
public static void JNI_FB_LOGIN()
{
me.runOnUiThread(new Runnable() {
public void run() {
Session session = Session.getActiveSession();
if (!session.isOpened() && !session.isClosed()) {
session.openForRead(new Session.OpenRequest(Draw.me).setCallback(statusCallback));
} else {
Session.openActiveSession(Draw.me, true, statusCallback);
}
}
});
}
`
Any ideas?