GL_READ_FRAMEBUFFER isn't defined when compiling for Wayland Thanks Stefan for the report. Also, import GL_FRAMEBUFFER overrides from other GL files, so that it points to the proper extension (_OES or _EXT if applicable).