Merge "Issue #1371 fix offscreen rendering on graphics cards that don't support luminance." into development

Former-commit-id: f5d5049fcf [formerly d6aab54778 [formerly 56508db2887fffae12811b1c834a7b0d3fec43d9]]
Former-commit-id: d6aab54778
Former-commit-id: f995ad1bf8
This commit is contained in:
Nate Jensen 2012-12-04 14:16:23 -06:00 committed by Gerrit Code Review
commit e23061295b

View file

@ -218,13 +218,14 @@ public class GLOffscreenRenderingExtension extends GraphicsExtension<IGLTarget>
checkedLuminance = true;
try {
renderOffscreen(image);
renderOnscreen();
} catch (VizException e) {
// assume we don't support luminance
supportsLuminance = false;
// Reconstruct image
image = constructOffscreenImage(dataType, dimensions,
parameters);
} finally {
renderOnscreen();
}
}
return image;