Commit 08e229e7 by Jamie Madill Committed by Commit Bot

translator: Return null uniform map if no HLSL.

This replaces the global empty map. BUG=angleproject:1459 Change-Id: If7d824cbf4492e722cbf99d1045402a26535af5c Reviewed-on: https://chromium-review.googlesource.com/394236Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent 76648fe2
......@@ -405,7 +405,6 @@ const std::map<std::string, unsigned int> *ShGetUniformRegisterMap(const ShHandl
return translator->getUniformRegisterMap();
#else
static std::map<std::string, unsigned int> map;
return &map;
return nullptr;
#endif // ANGLE_ENABLE_HLSL
}
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