Page MenuHome

Fix T98091 EEVEE: Volume: Crash caused by non-present grid
ClosedPublic

Authored by Clément Foucault (fclem) on Jun 7 2022, 5:48 PM.

Details

Summary

This was caused by the copy_m4_m4 trying to copy the object_to_texture
from drw_grid which was nullptr.

Fixing this also exposed that rendering such volumes (without any valid
grid attributes) is not supported and we should follow what Cycles does.

Diff Detail

Repository
rB Blender
Branch
blender-v3.2-release
Build Status
Buildable 22458
Build 22458: arc lint + arc unit

Event Timeline

Clément Foucault (fclem) requested review of this revision.Jun 7 2022, 5:48 PM
Clément Foucault (fclem) created this revision.
Brecht Van Lommel (brecht) requested changes to this revision.Jun 7 2022, 6:06 PM
Brecht Van Lommel (brecht) added inline comments.
source/blender/draw/intern/draw_volume.cc
151

I think this should be (drw_grid) ?. Otherwise this could still crash if the grid exists but failed to be allocated on the GPU.

This revision now requires changes to proceed.Jun 7 2022, 6:06 PM

Assuming you make that simple change, no need to wait for me to review again of course.

  • Address review comment
This revision is now accepted and ready to land.Jun 7 2022, 6:11 PM