Example #1
0
    void EGLContext::_updateInternalResources(EGLDisplay eglDisplay, ::EGLConfig glconfig, ::EGLSurface drawable)
    {
        mDrawable = drawable;
        mConfig = glconfig;
        mEglDisplay = eglDisplay;

        setCurrent();

        // Initialise GL3W
        if (gleswInit())
            LogManager::getSingleton().logMessage("Failed to initialize GL3W");
    }
Example #2
0
    void DiEGLContext::CreateInternalResources(EGLDisplay eglDisplay, ::EGLConfig glconfig, ::EGLSurface drawable, ::EGLContext shareContext)
    {
        mDrawable = drawable;
        mConfig = glconfig;
        mEglDisplay = eglDisplay;

        mContext = mGLUtil->CreateNewContext(mEglDisplay, mConfig, shareContext);

        if (!mContext)
        {
            DI_WARNING("Unable to create a suitable EGLContext");
        }

        BeginContext();

        // Initialise GL3W
        if (gleswInit())
            DI_WARNING("Failed to initialize GL3W");
    }