Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 410902 Details for
Bug 559472
dev-games/ogre-1.9.0 does not build with gcc-5.2.0
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Move the definition of the offending template to the header.
1.9.0-03_move_stowed_template_func.patch (text/plain), 2.48 KB, created by
Sven Eden
on 2015-09-03 05:15:09 UTC
(
hide
)
Description:
Move the definition of the offending template to the header.
Filename:
MIME Type:
Creator:
Sven Eden
Created:
2015-09-03 05:15:09 UTC
Size:
2.48 KB
patch
obsolete
>--- a/OgreMain/include/OgreProgressiveMeshGenerator.h 2015-09-03 04:58:34.119585218 +0200 >+++ b/OgreMain/include/OgreProgressiveMeshGenerator.h 2015-09-03 04:58:39.342585320 +0200 >@@ -215,7 +215,40 @@ > void tuneContainerSize(); > void addVertexData(VertexData* vertexData, bool useSharedVertexLookup); > template<typename IndexType> >- void addIndexDataImpl(IndexType* iPos, const IndexType* iEnd, VertexLookupList& lookup, unsigned short submeshID); >+ void addIndexDataImpl(IndexType* iPos, const IndexType* iEnd, VertexLookupList& lookup, unsigned short submeshID) >+ { >+ >+ // Loop through all triangles and connect them to the vertices. >+ for (; iPos < iEnd; iPos += 3) { >+ // It should never reallocate or every pointer will be invalid. >+ OgreAssert(mTriangleList.capacity() > mTriangleList.size(), ""); >+ mTriangleList.push_back(PMTriangle()); >+ PMTriangle* tri = &mTriangleList.back(); >+ tri->isRemoved = false; >+ tri->submeshID = submeshID; >+ for (int i = 0; i < 3; i++) { >+ // Invalid index: Index is bigger then vertex buffer size. >+ OgreAssert(iPos[i] < lookup.size(), ""); >+ tri->vertexID[i] = iPos[i]; >+ tri->vertex[i] = lookup[iPos[i]]; >+ } >+ if (tri->isMalformed()) { >+#if OGRE_DEBUG_MODE >+ stringstream str; >+ str << "In " << mMeshName << " malformed triangle found with ID: " << getTriangleID(tri) << ". " << >+ std::endl; >+ printTriangle(tri, str); >+ str << "It will be excluded from LOD level calculations."; >+ LogManager::getSingleton().stream() << str.str(); >+#endif >+ tri->isRemoved = true; >+ mIndexBufferInfoList[tri->submeshID].indexCount -= 3; >+ continue; >+ } >+ tri->computeNormal(); >+ addTriangleToEdges(tri); >+ } >+ } > void addIndexData(IndexData* indexData, bool useSharedVertexLookup, unsigned short submeshID); > > void computeCosts(); >--- a/OgreMain/src/OgreProgressiveMeshGenerator.cpp 2015-09-03 04:58:34.879585233 +0200 >+++ b/OgreMain/src/OgreProgressiveMeshGenerator.cpp 2015-09-03 04:58:43.944585409 +0200 >@@ -219,6 +219,8 @@ > } > vbuf->unlock(); > } >+/// Called from OgreQueuedProgressiveMeshGenerator.cpp, so it can not be defined in here. >+#if 0 > template<typename IndexType> > void ProgressiveMeshGenerator::addIndexDataImpl(IndexType* iPos, const IndexType* iEnd, > VertexLookupList& lookup, >@@ -256,6 +258,7 @@ > addTriangleToEdges(tri); > } > } >+#endif // 0 > > void ProgressiveMeshGenerator::addIndexData(IndexData* indexData, bool useSharedVertexLookup, unsigned short submeshID) > {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 559472
: 410902