This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

eglGetError() = 12291 (0x00003003)

Hi

I am a beginner inOpenGL ES 2.0,and get a problem,

After decompress Mali_OpenGL_ES_2.0_SDK_for_Linux_On_ARM_v1.2.0.9310_Linux.tar.gz

and install Sourcery CodeBench Lite Edition for ARM (arm-2013.05-24-arm-none-linux-gnueabi.bin),

build the sample (Cube) 

                      bash build-x86-linux.sh Cube            succeed

cd build/x86/Cube

ls

                         assets  Cube

                   ./Cube

                        Error: eglGetError() = 12291 (0x00003003) at  /home/pass2014/Software/Mali_OpenGL_ES_2.0_SDK_for_Linux_On_ARM_v1.2.0/samples/linux/Cube/Cube.cpp:177


code

int main(void)

{

    /* Intialize the Platform object for platform specific functions. */

    Platform* platform = Platform::getInstance();

    /* Initialize windowing system. */

    platform->createWindow(WINDOW_W, WINDOW_H);

    /* Initialize EGL. */

    EGLRuntime::initializeEGL(EGLRuntime::OPENGLES2);

   EGL_CHECK(eglMakeCurrent(EGLRuntime::display, EGLRuntime::surface, EGLRuntime::surface, EGLRuntime::context));                //line 177

    /* Initialize OpenGL ES graphics subsystem. */

    setupGraphics(WINDOW_W, WINDOW_H);

    /* Timer variable to calculate FPS. */

    Timer fpsTimer;

    fpsTimer.reset();

    bool end = false;

    /* The rendering loop to draw the scene. */

    while(!end)

    {

        /* If something has happened to the window, end the sample. */

        if(platform->checkWindow() != Platform::WINDOW_IDLE)

        {

            end = true;

        }

       

        /* Calculate FPS. */

        float fFPS = fpsTimer.getFPS();

        if(fpsTimer.isTimePassed(1.0f))

        {

            LOGI("FPS:\t%.1f\n", fFPS);

        }

        /* Render a single frame */

        renderFrame();

    

        /*

         * Push the EGL surface color buffer to the native window.

         * Causes the rendered graphics to be displayed on screen.

         */

        eglSwapBuffers(EGLRuntime::display, EGLRuntime::surface);

    }

    /* Shut down OpenGL ES. */

    /* Shut down Text. */

    delete text;

    /* Shut down EGL. */

    EGLRuntime::terminateEGL();

    /* Shut down windowing system. */

    platform->destroyWindow();

    /* Shut down the Platform object. */

    delete platform;

    return 0;

}

What should I do to fix the problem?

Thanks

Parents Reply Children