Constellation.cpp   Constellation.cpp 
skipping to change at line 128 skipping to change at line 128
{ {
if (!nameFader.getInterstate()) if (!nameFader.getInterstate())
return; return;
sPainter.setColor(labelColor[0], labelColor[1], labelColor[2], nameF ader.getInterstate()); sPainter.setColor(labelColor[0], labelColor[1], labelColor[2], nameF ader.getInterstate());
sPainter.drawText(XYname[0], XYname[1], nameI18, 0., -sPainter.getFo ntMetrics().width(nameI18)/2, 0, false); sPainter.drawText(XYname[0], XYname[1], nameI18, 0., -sPainter.getFo ntMetrics().width(nameI18)/2, 0, false);
} }
void Constellation::drawArtOptim(StelPainter& sPainter, const SphericalRegi on& region) const void Constellation::drawArtOptim(StelPainter& sPainter, const SphericalRegi on& region) const
{ {
const float intensity = artFader.getInterstate(); const float intensity = artFader.getInterstate();
if (artTexture && intensity && region.intersects(artPolygon)) if (artTexture && intensity && region.intersects(boundingCap))
{ {
sPainter.setColor(intensity,intensity,intensity); sPainter.setColor(intensity,intensity,intensity);
// The texture is not fully loaded // The texture is not fully loaded
if (artTexture->bind()==false) if (artTexture->bind()==false)
return; return;
sPainter.drawSphericalRegion(&artPolygon, StelPainter::Spher
icalPolygonDrawModeTextureFill); sPainter.drawStelVertexArray(artPolygon);
} }
} }
// Draw the art texture // Draw the art texture
void Constellation::drawArt(StelPainter& sPainter) const void Constellation::drawArt(StelPainter& sPainter) const
{ {
glBlendFunc(GL_ONE, GL_ONE); glBlendFunc(GL_ONE, GL_ONE);
sPainter.enableTexture2d(true); sPainter.enableTexture2d(true);
glEnable(GL_BLEND); glEnable(GL_BLEND);
glEnable(GL_CULL_FACE); glEnable(GL_CULL_FACE);
 End of changes. 2 change blocks. 
3 lines changed or deleted 3 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/