Removed the unneeded makeCurrent overload

Thu, 09 Feb 2017 13:17:22 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Thu, 09 Feb 2017 13:17:22 +0200
changeset 1107
97279c658e2b
parent 1106
7541b0209057
child 1108
90d6f4b7782e

Removed the unneeded makeCurrent overload

src/glRenderer.cpp file | annotate | diff | comparison | revisions
src/glRenderer.h file | annotate | diff | comparison | revisions
--- a/src/glRenderer.cpp	Thu Feb 09 13:13:46 2017 +0200
+++ b/src/glRenderer.cpp	Thu Feb 09 13:17:22 2017 +0200
@@ -1184,12 +1184,6 @@
 	return m_mousePositionF;
 }
 
-void GLRenderer::makeCurrent()
-{
-	QGLWidget::makeCurrent();
-	initializeOpenGLFunctions();
-}
-
 int GLRenderer::depthNegateFactor() const
 {
 	return g_cameraInfo[camera()].negatedDepth ? -1 : 1;
--- a/src/glRenderer.h	Thu Feb 09 13:13:46 2017 +0200
+++ b/src/glRenderer.h	Thu Feb 09 13:17:22 2017 +0200
@@ -96,7 +96,6 @@
 	bool isDrawOnly() const;
 	bool isPicking() const;
 	Qt::KeyboardModifiers keyboardModifiers() const;
-	void makeCurrent();
 	bool mouseHasMoved() const;
 	QPoint const& mousePosition() const;
 	QPointF const& mousePositionF() const;

mercurial