Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

[Impeller] Fix GL depth state.#51040

Merged
bdero merged 5 commits intoflutter:mainfrom
bdero:bdero/gles-depth-fixes
Feb 28, 2024
Merged

[Impeller] Fix GL depth state.#51040
bdero merged 5 commits intoflutter:mainfrom
bdero:bdero/gles-depth-fixes

Conversation

@bdero
Copy link
Copy Markdown
Contributor

@bdero bdero commented Feb 28, 2024

Resolves flutter/flutter#136322.

This patch fixes problems with GL depth (in service of #50856):

  • The depth + stencil masks weren't being set prior to clearing.
  • When the driver identifies as desktop GL rather than ES, use glClearDepth and glDepthRange rather than glClearDepthf and glDepthRangef.

Loading
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Impeller] OpenGL: Use glClearDepth and glDepthRange on desktop GL.

2 participants