Skip to content

Commit 7b72b2c

Browse files
committed
🐛 Fixed is supported function for render doc #7
1 parent d9ad9fa commit 7b72b2c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Plugin/PluginInteropUnityCUDA/src/unity_plugin.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ extern "C"
6464
return false;
6565
}
6666

67+
s_DeviceType = s_Graphics->GetRenderer();
68+
6769
if (s_DeviceType == kUnityGfxRendererNull)
6870
{
6971

@@ -76,7 +78,9 @@ extern "C"
7678
s_DeviceType != kUnityGfxRendererOpenGLES20 &&
7779
s_DeviceType != kUnityGfxRendererOpenGLES30)
7880
{
79-
Log::log().debugLogError("Graphics API is not supported yet.");
81+
Log::log().debugLogError("Graphics API " +
82+
std::to_string(s_DeviceType) +
83+
" is not supported yet.");
8084
return false;
8185
}
8286
return true;

0 commit comments

Comments
 (0)