diff --git a/ExampleViewOpenGL/src/ExampleGLWidget.cpp b/ExampleViewOpenGL/src/ExampleGLWidget.cpp index 643e5e1..40c5371 100644 --- a/ExampleViewOpenGL/src/ExampleGLWidget.cpp +++ b/ExampleViewOpenGL/src/ExampleGLWidget.cpp @@ -17,7 +17,6 @@ ExampleGLWidget::ExampleGLWidget() : setAcceptDrops(true); QSurfaceFormat surfaceFormat; - surfaceFormat.setRenderableType(QSurfaceFormat::OpenGL); // Ask for an different OpenGL versions depending on OS @@ -135,7 +134,6 @@ void ExampleGLWidget::paintGL() // Reset the blending function glEnable(GL_BLEND); - //glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA); _pointRenderer.render(); } diff --git a/ExampleViewOpenGL/src/ExampleGLWidget.h b/ExampleViewOpenGL/src/ExampleGLWidget.h index 225129b..63e6935 100644 --- a/ExampleViewOpenGL/src/ExampleGLWidget.h +++ b/ExampleViewOpenGL/src/ExampleGLWidget.h @@ -26,11 +26,11 @@ class ExampleGLWidget : public QOpenGLWidget, protected QOpenGLFunctions void setData(const std::vector& points, float pointSize, float pointOpacity); protected: - void initializeGL() Q_DECL_OVERRIDE; - void resizeGL(int w, int h) Q_DECL_OVERRIDE; - void paintGL() Q_DECL_OVERRIDE; + void initializeGL() override; + void resizeGL(int w, int h) override; + void paintGL() override; void cleanup(); - + signals: void initialized();