Skip to content

glDiscardFramebufferEXT called with incorrect parameters when a non-default framebuffer is bound #175588

@planetmarshall

Description

@planetmarshall

Steps to reproduce

  1. Run flutter run ... --enable-impeller on a platform with support for glDiscardFramebufferEXT

Expected results

The application runs successfully

Actual results

The following error is reported

[FATAL:flutter/impeller/renderer/backend/gles/proc_table_gles.h(43)] Fatal GL Error GL_INVALID_ENUM(1280) encountered on call to glDiscardFramebufferEXT

Code sample

Any trivial sample will suffice

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[!] Flutter (Channel [user-branch], 3.37.0-1.0.pre-158, on Arch Linux 6.16.7-arch1-1, locale en_GB.UTF-8) [34ms]
    ! Flutter version 3.37.0-1.0.pre-158 on channel [user-branch] at ...
      Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
      If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/setup.
    • Framework revision 9d8a7184c6 (12 minutes ago), 2025-09-18 13:41:00 +0100
    • Engine revision ea906b5dc9
    • Dart version 3.10.0 (build 3.10.0-213.0.dev)
    • DevTools version 2.50.0
    • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets, omit-legacy-version-file, enable-lldb-debugging
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[✗] Android toolchain - develop for Android devices [32ms]
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/to/linux-android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.


[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome) [14ms]
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Linux toolchain - develop for Linux desktop [246ms]
    • clang version 20.1.8
    • cmake version 4.1.1
    • ninja version 1.12.1
    • pkg-config version 2.5.1
    ! Unable to access driver information using 'eglinfo'.
      It is likely available from your distribution (e.g.: apt install mesa-utils)

[✓] Connected device (1 available) [31ms]
    • Linux (desktop) • linux • linux-x64 • Arch Linux 6.16.7-arch1-1

[✓] Network resources [774ms]
    • All expected network resources are available.

! Doctor found issues in 3 categories.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listcustomer: bluee: impellerImpeller rendering backend issues and features requestsengineflutter/engine related. See also e: labels.team-engineOwned by Engine teamtriaged-engineTriaged by Engine teamwaiting for PR to land (fixed)A fix is in flight

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions