Skip to content

Commit

Permalink
Fully disable ANGLE (with hack)
Browse files Browse the repository at this point in the history
  • Loading branch information
TyHolc committed Dec 12, 2024
1 parent 164464d commit d66d7ac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions ui/gl/gl_display.cc
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,7 @@ bool GLDisplayEGL::InitializeDisplay(bool supports_angle,
std::vector<DisplayType> init_displays,
EGLDisplayPlatform native_display,
gl::GLDisplayEGL* existing_display) {
supports_angle = false;
if (display_ != EGL_NO_DISPLAY)
return true;

Expand Down
2 changes: 0 additions & 2 deletions ui/ozone/platform/starboard/surface_factory_starboard.cc
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,13 @@ std::vector<gl::GLImplementationParts>
SurfaceFactoryStarboard::GetAllowedGLImplementations() {
return std::vector<gl::GLImplementationParts>{
gl::GLImplementationParts(gl::kGLImplementationEGLGLES2),
gl::GLImplementationParts(gl::kGLImplementationEGLANGLE),
};
}

GLOzone* SurfaceFactoryStarboard::GetGLOzone(
const gl::GLImplementationParts& implementation) {
switch (implementation.gl) {
case gl::kGLImplementationEGLGLES2:
case gl::kGLImplementationEGLANGLE:
return egl_implementation_.get();
default:
return nullptr;
Expand Down

0 comments on commit d66d7ac

Please sign in to comment.