Skip to content

Commit

Permalink
Enable parallel shader compilation on more devices
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelflinger committed Aug 9, 2023
1 parent 018d6f8 commit a34a9c0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions filament/backend/src/opengl/platforms/PlatformEGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,11 +255,13 @@ Driver* PlatformEGL::createDriver(void* sharedContext, const Platform::DriverCon
}

bool PlatformEGL::isExtraContextSupported() const noexcept {
return ext.egl.KHR_no_config_context;
return true;
}

void PlatformEGL::createContext(bool shared) {
EGLContext context = eglCreateContext(mEGLDisplay, EGL_NO_CONFIG_KHR,
EGLConfig config = ext.egl.KHR_no_config_context ? EGL_NO_CONFIG_KHR : mEGLConfig;

EGLContext context = eglCreateContext(mEGLDisplay, config,
shared ? mEGLContext : EGL_NO_CONTEXT, mContextAttribs.data());

if (UTILS_UNLIKELY(context == EGL_NO_CONTEXT)) {
Expand Down

0 comments on commit a34a9c0

Please sign in to comment.