Fix crash when rendering ODS without depth export (fixes #418)

This commit is contained in:
Jonas Herzig
2020-11-22 13:00:37 +01:00
parent 36276d32b6
commit ee02944391

View File

@@ -141,8 +141,10 @@ public class ODSFrameCapturer implements FrameCapturer<ODSOpenGlFrame> {
for (Channel channel : Channel.values()) {
CubicOpenGlFrame leftFrame = leftChannels.get(channel);
CubicOpenGlFrame rightFrame = rightChannels.get(channel);
if (leftFrame != null && rightFrame != null) {
result.put(channel, new ODSOpenGlFrame(leftFrame, rightFrame));
}
}
return result;
}
return null;