summaryrefslogtreecommitdiff
path: root/Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp')
-rw-r--r--Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp b/Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp
index 86704bc15..c6b1e2825 100644
--- a/Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp
+++ b/Source/WebCore/platform/graphics/texmap/TextureMapperGL.cpp
@@ -38,11 +38,7 @@
#if PLATFORM(QT)
#include "NativeImageQt.h"
-#if HAVE(QT5)
#include <QOpenGLContext>
-#else
-#include <QGLContext>
-#endif // QT_VERSION
#elif OS(WINDOWS)
#include <windows.h>
#elif OS(MAC_OS_X)
@@ -62,19 +58,11 @@ namespace WebCore {
struct TextureMapperGLData {
struct SharedGLData : public RefCounted<SharedGLData> {
#if PLATFORM(QT)
-#if QT_VERSION >= 0x050000
typedef QOpenGLContext* GLContext;
static GLContext getCurrentGLContext()
{
return QOpenGLContext::currentContext();
}
-#else
- typedef const QGLContext* GLContext;
- static GLContext getCurrentGLContext()
- {
- return QGLContext::currentContext();
- }
-#endif
#elif OS(WINDOWS)
typedef HGLRC GLContext;
static GLContext getCurrentGLContext()