Commit d5b5b8bb authored by Martin Finkel's avatar Martin Finkel
Browse files

remove dead code

parent a77eff0e
......@@ -173,57 +173,6 @@ static void UNITY_INTERFACE_API OnRenderEvent(int eventID)
{
}
// void TextureUpdateCallback(int eventID, void* data)
// {
// DEBUG("Entering TextureUpdateCallback \n");
// auto event = static_cast<UnityRenderingExtEventType>(eventID);
// if (event == kUnityRenderingExtEventUpdateTextureBeginV2)
// {
// DEBUG("event is kUnityRenderingExtEventUpdateTextureBeginV2 \n");
// auto *pParams = reinterpret_cast<UnityRenderingExtTextureUpdateParamsV2*>(data);
// if(mp == NULL)
// return;
// RenderAPI* s_CurrentAPI = contexts.find(mp)->second;
// bool* updated;
// if (!s_CurrentAPI) {
// DEBUG("Error, no Render API \n");
// if (updated)
// *updated = false;
// return;
// }
// DEBUG("calling s_CurrentAPI->getVideoFrame(updated) \n");
// void* tex = s_CurrentAPI->getVideoFrame(updated);
// DEBUG("SWAPPING -=================== \n");
// pParams->format = kUnityRenderingExtFormatR8G8B8A8_UNorm;
// std::swap(tex, pParams->texData);
// }
// else if (event == kUnityRenderingExtEventUpdateTextureEndV2)
// {
// DEBUG("event is kUnityRenderingExtEventUpdateTextureEndV2 \n");
// auto *pParams = reinterpret_cast<UnityRenderingExtTextureUpdateParamsV2*>(data);
// if(pParams->texData != nullptr)
// {
// pParams->texData = nullptr;
// }
// }
// }
extern "C" UnityRenderingEvent UNITY_INTERFACE_EXPORT UNITY_INTERFACE_API GetRenderEventFunc()
{
return OnRenderEvent;
}
// extern "C" UnityRenderingEventAndData UNITY_INTERFACE_EXPORT UNITY_INTERFACE_API GetTextureUpdateCallback()
// {
// return TextureUpdateCallback;
// }
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment