Skip to main content
2 of 5
edited tags
Tetrad
  • 30.1k
  • 12
  • 96
  • 143

Android device - C++ OpenGL 2: eglCreateWindowSurface invalid

I am trying to debug and run OGLES on Native C++ in my Android device in order to implement a native 3D game for mobile smart phones. 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.

ThreaderSlash
  • 175
  • 1
  • 1
  • 7