mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Removed includes of QOpenGLFunctions
This commit is contained in:
parent
6b8dfd3f7b
commit
6459548aba
@ -44,7 +44,6 @@
|
|||||||
#include <QPointer>
|
#include <QPointer>
|
||||||
#include <QEvent>
|
#include <QEvent>
|
||||||
#include <QOpenGLContext>
|
#include <QOpenGLContext>
|
||||||
#include <QOpenGLFunctions>
|
|
||||||
#include <QPlatformSurfaceEvent>
|
#include <QPlatformSurfaceEvent>
|
||||||
|
|
||||||
namespace cvfqt {
|
namespace cvfqt {
|
||||||
|
@ -42,7 +42,6 @@
|
|||||||
#include "QMVWidget.h"
|
#include "QMVWidget.h"
|
||||||
|
|
||||||
#include <QMouseEvent>
|
#include <QMouseEvent>
|
||||||
#include <QOpenGLFunctions>
|
|
||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
|
|
||||||
|
|
||||||
@ -134,9 +133,8 @@ void QMVWidget::paintGL()
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Reddish background for empty widgets
|
// Reddish background for empty widgets
|
||||||
QOpenGLFunctions* funcs = context()->functions();
|
glClearColor(0.9f, 0.5f, 0.5f, 1.0f);
|
||||||
funcs->glClearColor(0.9f, 0.5f, 0.5f, 1.0f);
|
glClear(GL_COLOR_BUFFER_BIT);
|
||||||
funcs->glClear(GL_COLOR_BUFFER_BIT);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
cvf::OpenGLUtils::popOpenGLState(currentOglContext);
|
cvf::OpenGLUtils::popOpenGLState(currentOglContext);
|
||||||
|
Loading…
Reference in New Issue
Block a user