mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 12:33:27 +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,11 +3169,14 @@ 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) {
|
||||
if (args) {
|
||||
args->_elementsTouched ++;
|
||||
// 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 ++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue