Android: eglCreateWindowSurface - invalid arguments

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:

Replacing ‘mApplication->window’ for ‘EGLNativeWindowType window’ solved the problem. :mrgreen:

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.