Fix RenderingDevice::get_driver_resource
crash or incorrect result with certain resources
#27029
Loading