Skip to content

Commit

Permalink
Small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alxvth committed Oct 4, 2023
1 parent 21e7c08 commit ec608f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions ExampleViewOpenGL/src/ExampleGLWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ ExampleGLWidget::ExampleGLWidget() :
setAcceptDrops(true);

QSurfaceFormat surfaceFormat;

surfaceFormat.setRenderableType(QSurfaceFormat::OpenGL);

// Ask for an different OpenGL versions depending on OS
Expand Down Expand Up @@ -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();
}
Expand Down
8 changes: 4 additions & 4 deletions ExampleViewOpenGL/src/ExampleGLWidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ class ExampleGLWidget : public QOpenGLWidget, protected QOpenGLFunctions
void setData(const std::vector<hdps::Vector2f>& 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();

Expand Down

0 comments on commit ec608f9

Please sign in to comment.