Results 1 to 2 of 2

Thread: Android: eglCreateWindowSurface - invalid arguments

  1. #1

    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:
    Code :
            mSurface = eglCreateWindowSurface(mDisplay, 
                                              lConfig, mApplication->window, NULL);
    And this is the error message:
    Code :
            Invalid arguments ' Candidates are: 
                void * eglCreateWindowSurface(void *, void *, 
                                              unsigned long int, const int *) '
    Hope someone here can shed some light on it.

  2. #2

    Re: Android: eglCreateWindowSurface - invalid arguments

    Replacing 'mApplication->window' for 'EGLNativeWindowType window' solved the problem.

Similar Threads

  1. eglCreateWindowSurface fails with EGL_BAD_MATCH
    By Teraslilja in forum OpenGL ES 2X - for programmable 3D graphics pipelines
    Replies: 0
    Last Post: 05-12-2011, 08:03 AM
  2. eglCreateWindowSurface
    By othouven in forum Cross API and window system integration
    Replies: 3
    Last Post: 11-17-2009, 04:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •