Merge "Issue #1371 fix offscreen rendering on graphics cards that don't support luminance." into development
Former-commit-id:f5d5049fcf
[formerlyd6aab54778
[formerly 56508db2887fffae12811b1c834a7b0d3fec43d9]] Former-commit-id:d6aab54778
Former-commit-id:f995ad1bf8
This commit is contained in:
commit
e23061295b
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue