FIxing one more issue with compilation on ubuntu regarding the template functions specializationand the namespace

This commit is contained in:
Sam Gateau 2015-05-26 11:40:35 -07:00
parent dd9d758da1
commit ad0b0cfade

View file

@ -3169,13 +3169,16 @@ public:
};
template <> const render::ItemKey render::payloadGetKey(const MyFirstStuff::Pointer& stuff) { return ItemKey::Builder::opaqueShape(); }
template <> const render::Item::Bound render::payloadGetBound(const MyFirstStuff::Pointer& stuff) { return Item::Bound(); }
template <> void render::payloadRender(const MyFirstStuff::Pointer& stuff, RenderArgs* args) {
// For Ubuntu, the compiler want's the Payload's functions to be specialized in the "render" namespace explicitely...
namespace render {
template <> const ItemKey payloadGetKey(const MyFirstStuff::Pointer& stuff) { return ItemKey::Builder::opaqueShape(); }
template <> const Item::Bound payloadGetBound(const MyFirstStuff::Pointer& stuff) { return Item::Bound(); }
template <> void payloadRender(const MyFirstStuff::Pointer& stuff, RenderArgs* args) {
if (args) {
args->_elementsTouched ++;
}
}
}
void Application::displaySide(RenderArgs* renderArgs, Camera& theCamera, bool selfAvatarOnly) {
activeRenderingThread = QThread::currentThread();