PDA

View Full Version : Android: eglCreateWindowSurface - invalid arguments



threaderslash
04-07-2012, 12:58 PM
Hi Everybody!

I am trying to debug and run a OGLES on Native C++ in my Android device. The point is that I got an error and see no reason for that. Here is the line from the code that the debugger complains:


mSurface = eglCreateWindowSurface(mDisplay,
lConfig, mApplication->window, NULL);

And this is the error message:


Invalid arguments ' Candidates are:
void * eglCreateWindowSurface(void *, void *,
unsigned long int, const int *) '

Hope someone here can shed some light on it. :idea: :mrgreen:

threaderslash
04-08-2012, 05:59 AM
Replacing 'mApplication->window' for 'EGLNativeWindowType window' solved the problem. :mrgreen: