Adding a setting for cornerstone default image renderer

This commit is contained in:
Bruno Alves de Faria committed 2017-08-23 11:25:58 -03:00
1 parent edd6ff862d
commit df5cd20a78
7 files changed
+16 -9

No files matched your search

@@ -92,12 +92,8 @@ const loadDisplaySetIntoViewport = (data, templateData) => {
// Enable Cornerstone for the viewport element
const options = {
renderer: 'webgl'
renderer: OHIF.cornerstone.renderer
};
// NOTE: This uses the experimental WebGL renderer for Cornerstone!
// If you have problems, replace it with this line instead:
// cornerstone.enable(element);
cornerstone.enable(element, options);
// Get the handler functions that will run when loading has finished or thrown