From c854157c9ef0ae5ea96afaf69c0e0f7d0ff61f34 Mon Sep 17 00:00:00 2001 From: Benjamin Kraft Date: Thu, 3 Feb 2022 13:28:55 +0100 Subject: [PATCH] fixed opengl errors --- headers/Mandelbrot.h | 4 ++-- headers/OutputWidget.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/headers/Mandelbrot.h b/headers/Mandelbrot.h index fc332f6..aed8856 100644 --- a/headers/Mandelbrot.h +++ b/headers/Mandelbrot.h @@ -2,9 +2,9 @@ #pragma once #include -#include +#include -class Mandelbrot : public QObject, protected QOpenGLFunctions_3_3_Core { +class Mandelbrot : public QObject, protected QOpenGLExtraFunctions { Q_OBJECT public: void init(); diff --git a/headers/OutputWidget.h b/headers/OutputWidget.h index f9797cb..e76d66c 100644 --- a/headers/OutputWidget.h +++ b/headers/OutputWidget.h @@ -6,7 +6,7 @@ #include #include "Mandelbrot.h" -class OutputWidget : public QOpenGLWidget, protected QOpenGLFunctions_3_3_Core { +class OutputWidget : public QOpenGLWidget, protected QOpenGLExtraFunctions { Q_OBJECT public: explicit OutputWidget(QWidget* parent): QOpenGLWidget(parent) {}