The initial failed assertion issue of this bug report can be traced to file StelSphericalGeometry.cpp:
319 //! @param texCoords Texture coordinates of vertices in the triangle.
320 //! Must be NULL for this overload.
321 void appendTriangle(StelVertexBuffer<SphericalRegion::PlainVertex>* buffer,
322 const Triplet<Vec3f>& vertices, const Triplet<Vec2f>* t exCoords)
323 {
324 #ifndef NDEBUG
325 Q_ASSERT_X(texCoords == NULL, Q_FUNC_INFO,
326 "Got texCoords even though building buffer without textu re coords");
The appendTriangle method is improperly called from:
If texCoord is null, denoting that the vertex buffer was produced with no texture, a non-null texcoord pointer is nevertheless passed to appendTriangle() which according to comment on line 320 is not correct.
The initial failed assertion issue of this bug report can be traced to file StelSphericalGe ometry. cpp:
319 //! @param texCoords Texture coordinates of vertices in the triangle. StelVertexBuffe r<SphericalRegi on::PlainVertex >* buffer, X(texCoords == NULL, Q_FUNC_INFO,
320 //! Must be NULL for this overload.
321 void appendTriangle(
322 const Triplet<Vec3f>& vertices, const Triplet<Vec2f>* t exCoords)
323 {
324 #ifndef NDEBUG
325 Q_ASSERT_
326 "Got texCoords even though building buffer without textu re coords");
The appendTriangle method is improperly called from:
360 template<class V> lTriangle buffer, triangle, texCoords);
361 void projectSpherica
...
430 appendTriangle(
Which is itself called from:
619 if (NULL != texCoords) ->a+texCoords- >b)*0.5; lTriangle( projector, clippingCap, &va, texCoords ? &ta : 0, buffer, maxSqDistortion, nbI+1, true, false, true);
620 {
621 ta.a=(texCoords
622 ta.b=texCoords->b;
623 ta.c=texCoords->c;
624 }
625 projectSpherica
If texCoord is null, denoting that the vertex buffer was produced with no texture, a non-null texcoord pointer is nevertheless passed to appendTriangle() which according to comment on line 320 is not correct.
To fix this, calls like: lTriangle( projector, clippingCap, &va, &ta, buffer, maxSqDistortion, nbI+1, true, false, true); lTriangle( projector, clippingCap, &va, texCoords ? &ta : 0, buffer, maxSqDistortion, nbI+1, true,
625 projectSpherica
Could be replaced with:
625 projectSpherica
Otherwise, why not remove the assertion if there is no ill effect?