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"); }
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"); }