summarylogtreecommitdiffstats
path: root/hdospray.patch
blob: f4844c26934ccffe40be134081a279f6ecc6a825 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
diff --git a/hdOSPRay/rendererPlugin.h b/hdOSPRay/rendererPlugin.h
index 0c29367..4bb3f36 100644
--- a/hdOSPRay/rendererPlugin.h
+++ b/hdOSPRay/rendererPlugin.h
@@ -20,9 +20,9 @@ public:
     virtual void
     DeleteRenderDelegate(HdRenderDelegate* renderDelegate) override;
 
-    virtual bool IsSupported() const override;
+    virtual bool IsSupported(bool gpuEnabled = true) const override;
 
 private:
     HdOSPRayRendererPlugin(const HdOSPRayRendererPlugin&) = delete;
     HdOSPRayRendererPlugin& operator=(const HdOSPRayRendererPlugin&) = delete;
-};
\ No newline at end of file
+};

diff --git a/hdOSPRay/rendererPlugin.cpp b/hdOSPRay/rendererPlugin.cpp
index 39ee34b..9b75149 100644
--- a/hdOSPRay/rendererPlugin.cpp
+++ b/hdOSPRay/rendererPlugin.cpp
@@ -81,7 +81,7 @@ HdOSPRayRendererPlugin::DeleteRenderDelegate(HdRenderDelegate* renderDelegate)
 }

 bool
-HdOSPRayRendererPlugin::IsSupported() const
+HdOSPRayRendererPlugin::IsSupported(bool gpuEnabled) const
 {
     return true;
 }