Skip to content

WebXR renders black screen with error: GL_INVALID_FRAMEBUFFER_OPERATION: Framebuffer is incomplete: Stencil attachment has no stencil bits. #108903

@dsnopek

Description

@dsnopek

Tested versions

System information

Godot v4.5.beta (71a9948) - Pop!_OS 22.04 LTS on X11 - X11 display driver, Single-window, 3 monitors - OpenGL 3 (Compatibility) - NVIDIA GeForce RTX 4070 Ti - AMD Ryzen 9 7950X 16-Core Processor (32 threads) - 61.94 GiB memory

Issue description

After entering WebXR, only black is rendered. In the console, this error is spammed:

GL_INVALID_FRAMEBUFFER_OPERATION: Framebuffer is incomplete: Stencil attachment has no stencil bits.

This appears to be a regression from #80710

If I search/replace GL_DEPTH_STENCIL_ATTACHMENT to GL_DEPTH_ATTACHMENT then it works again!

So, I'm assuming there is some place that should be checking rt->depth_has_stencil that isn't? Or, maybe rt->depth_has_stencil isn't getting set correctly in the case of WebXR? This needs more investigation.

Steps to reproduce

Minimal reproduction project (MRP)

The demo project from godotengine/godot-demo-projects#1168

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Release Blocker

Status

Done

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions