mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 20:16:16 +02:00
FIxing one more issue with compilation on ubuntu regarding the template functions specializationand the namespace
This commit is contained in:
parent
dd9d758da1
commit
ad0b0cfade
1 changed files with 8 additions and 5 deletions
|
@ -3169,12 +3169,15 @@ 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) {
|
||||
|
|
Loading…
Reference in a new issue