Open Bug 1239446 Opened 10 years ago Updated 3 years ago

Set a max-resource-size limit for WebGL resources

Categories

(Core :: Graphics: CanvasWebGL, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: jgilbert, Unassigned)

References

Details

(Whiteboard: [gfx-noted])

MAX_TEXTURE_SIZE and friends don't really capture what we want. MAX_TEXTURE_SIZE, if it allows 1024x16384 textures, also allows 16384x16384 to be requested. While this may cause a GL_OOM, it doesn't always. Sometimes the driver will thrash around trying to defragment enough memory to provide for an unreasonable request like this. We should mime D3D's resource limit formula, and unconditionally generate GL_OOM for anything above that.
Type: defect → enhancement
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.