~guillaume-chereau/stellarium/no-partial-draw

« back to all changes in this revision

Viewing changes to plugins/Satellites/src/Satellites.cpp

  • Committer: Bogdan Marinov
  • Date: 2014-03-16 12:34:48 UTC
  • Revision ID: bogdan.marinov84@gmail.com-20140316123448-89sddec9jb6o9j18
Satellites: use QOpenGLFunctions instead of OpenGL 1.2
for compatiblity with ANGLE on Windows

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
{
86
86
        setObjectName("Satellites");
87
87
        configDialog = new SatellitesDialog();
88
 
        QOpenGLFunctions_1_2::initializeOpenGLFunctions();
 
88
        QOpenGLFunctions::initializeOpenGLFunctions();
89
89
}
90
90
 
91
91
void Satellites::deinit()
1604
1604
                // Compute 2D pos and return if outside screen
1605
1605
                if (!prj->project(pos, screenpos))
1606
1606
                        return;
1607
 
                glColor3f(0.4f,0.5f,0.8f);
 
1607
                painter.setColor(0.4f,0.5f,0.8f);
1608
1608
                texPointer->bind();
1609
1609
 
1610
1610
                glEnable(GL_TEXTURE_2D);