Source/ThirdParty/ANGLE/src/libGLESv2/Context.cpp
GLenum Context::getError()
{
    if (mInvalidEnum)
    {
        mInvalidEnum = false;

        return GL_INVALID_ENUM;
    }

    if (mInvalidValue)
    {
        mInvalidValue = false;

        return GL_INVALID_VALUE;
    }

    if (mInvalidOperation)
    {
        mInvalidOperation = false;

        return GL_INVALID_OPERATION;
    }

    if (mOutOfMemory)
    {
        mOutOfMemory = false;

        return GL_OUT_OF_MEMORY;
    }

    if (mInvalidFramebufferOperation)
    {
        mInvalidFramebufferOperation = false;

        return GL_INVALID_FRAMEBUFFER_OPERATION;
    }

    return GL_NO_ERROR;
}
// Get one of the recorded errors and clear its flag, if any.
// [OpenGL ES 2.0.24] section 2.5 page 13.
Get one of the recorded errors and clear its flag, if any.
Get one of the recorded errors and clear its flag if any .
GLenum Context::getError()
{
    if (mInvalidEnum)
    {
        mInvalidEnum = false;
        return GL_INVALID_ENUM;
    }
    if (mInvalidValue)
    {
        mInvalidValue = false;
        return GL_INVALID_VALUE;
    }
    if (mInvalidOperation)
    {
        mInvalidOperation = false;
        return GL_INVALID_OPERATION;
    }
    if (mOutOfMemory)
    {
        mOutOfMemory = false;
        return GL_OUT_OF_MEMORY;
    }
    if (mInvalidFramebufferOperation)
    {
        mInvalidFramebufferOperation = false;
        return GL_INVALID_FRAMEBUFFER_OPERATION;
    }
    return GL_NO_ERROR;
}
GLenum Context :: getError ( ) { if ( mInvalidEnum ) { mInvalidEnum = false ; return GL_INVALID_ENUM ; } if ( mInvalidValue ) { mInvalidValue = false ; return GL_INVALID_VALUE ; } if ( mInvalidOperation ) { mInvalidOperation = false ; return GL_INVALID_OPERATION ; } if ( mOutOfMemory ) { mOutOfMemory = false ; return GL_OUT_OF_MEMORY ; } if ( mInvalidFramebufferOperation ) { mInvalidFramebufferOperation = false ; return GL_INVALID_FRAMEBUFFER_OPERATION ; } return GL_NO_ERROR ; }
Get one of the recorded errors and clear its flag, if any.
Get one of the recorded errors and clear its flag if any .