mirror of
https://github.com/SerenityOS/serenity.git
synced 2026-11-07 04:29:30 -10:00
GL spec 1.5, 3.8.11 Texture State and Proxy State: "Each initial texture array is null (zero width, height, and depth, zero border width, internal format 1, with the compressed flag set to FALSE, a zero compressed size, and zero-sized components)." GL spec 1.5, 3.8.1 Texture Image Specification: "An image with zero width, height, or depth indicates the null texture." Previously, retrieving the texture size for an uninitialized texture would have resulted in a crash. Since Texture2D initially has a null device image and device images are not allowed to be 0x0 (GPU::Image VERIFYs that), represent 0x0 textures by having a null device image.