Issue #1371 fix offscreen rendering on graphics cards that don't support luminance.
Former-commit-id: 4c620ffc4a6df585c67b41868ec1b28dab21a7e4
This commit is contained in:
parent
50f2d6ab93
commit
73dbed5bfc
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