Fix: EEVEE: Crash with >16 AOVs

Null check the result of `get_aov_texture`.
Reported in #127059.
This commit is contained in:
Miguel Pozo
2024-09-03 13:27:06 +02:00
parent e34d9eeac7
commit 1340aa615a

View File

@@ -99,6 +99,10 @@ float *Film::read_aov(ViewLayerAOV *aov)
{
GPUTexture *pass_tx = this->get_aov_texture(aov);
if (pass_tx == nullptr) {
return nullptr;
}
GPU_memory_barrier(GPU_BARRIER_TEXTURE_UPDATE);
return (float *)GPU_texture_read(pass_tx, GPU_DATA_FLOAT, 0);