From a2fad75855af0e0b719faaa295c35cd9b3f1bcf8 Mon Sep 17 00:00:00 2001 From: manuelk Date: Mon, 18 Jun 2012 15:25:49 -0700 Subject: [PATCH] Need to ifdef the CUDA registration (we need a better mechanism...) Closes #21. --- examples/mayaViewer/OpenSubdivDrawOverride.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/mayaViewer/OpenSubdivDrawOverride.cpp b/examples/mayaViewer/OpenSubdivDrawOverride.cpp index 5e1befa5..8d373366 100644 --- a/examples/mayaViewer/OpenSubdivDrawOverride.cpp +++ b/examples/mayaViewer/OpenSubdivDrawOverride.cpp @@ -580,7 +580,9 @@ MStatus initializePlugin( MObject obj ) //XXX:cleanup Need to register other kernel dispatchers. OpenSubdiv::OsdCpuKernelDispatcher::Register(); +#if OPENSUBDIV_HAS_CUDA OpenSubdiv::OsdCudaKernelDispatcher::Register(); +#endif return status; }