GPU_DEPTH24_STENCIL8 and GPU_DEPTH_COMPONENT24 are deprecated in Blender 5.0. Internally they will be removed. When used via python they are automatically converted to their DEPTH32F variant and a deprecation warning will be displayed. Pull Request: https://projects.blender.org/blender/blender/pulls/140644