Files
Sönke Holz e225bb4255 LibGL: Make null textures have a size of 0x0
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.
2026-10-28 15:15:37 +01:00
..