Merge "Issue #1371 fix offscreen rendering on graphics cards that don't support luminance." into development
Former-commit-id:e23061295b
[formerlyf995ad1bf8
] [formerlyd6aab54778
] [formerlyf5d5049fcf
[formerlyd6aab54778
[formerly 56508db2887fffae12811b1c834a7b0d3fec43d9]]] Former-commit-id:f5d5049fcf
Former-commit-id: a7513776b842baf196175e903c6e2933e87f303b [formerlyd81ee4c577
] Former-commit-id:d41ba19239
This commit is contained in:
commit
e45de01e8f
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