From b0b1a3a14b8120f517aeb98bef6dec8362d280c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Du=C5=A1an=20Poizl?= Date: Mon, 18 Apr 2022 10:50:19 +0200 Subject: [PATCH] Bumb GLSL version to 330 --- image.frag | 2 +- image.vert | 2 +- loadrunable.cpp | 1 - thumb.frag | 6 +----- thumb.vert | 2 +- 5 files changed, 4 insertions(+), 9 deletions(-) diff --git a/image.frag b/image.frag index fff497e..e44988d 100644 --- a/image.frag +++ b/image.frag @@ -1,4 +1,4 @@ -#version 130 +#version 330 uniform sampler2D qt_Texture0; uniform vec3 mtf_param; diff --git a/image.vert b/image.vert index 8cb0e37..9ffd760 100644 --- a/image.vert +++ b/image.vert @@ -1,4 +1,4 @@ -#version 130 +#version 330 uniform sampler2D qt_Texture0; in vec2 qt_Vertex; diff --git a/loadrunable.cpp b/loadrunable.cpp index b8d1a9a..3b5878a 100644 --- a/loadrunable.cpp +++ b/loadrunable.cpp @@ -12,7 +12,6 @@ #include #include "rawimage.h" #include "starfit.h" -#include LoadRunable::LoadRunable(const QString &file, Image *receiver, AnalyzeLevel level, bool thumbnail) : m_file(file), diff --git a/thumb.frag b/thumb.frag index 29ed1cf..0565bab 100644 --- a/thumb.frag +++ b/thumb.frag @@ -1,4 +1,4 @@ -#version 130 +#version 330 uniform sampler2DArray qt_Texture0; uniform vec3 mtf_param; @@ -18,8 +18,4 @@ void main(void) color = texture(qt_Texture0, qt_TexCoord0); color = MTF(color, mtf_param); if(invert)color = vec4(1.0) - color; - - //color = vec4(qt_TexCoord0, 0.0, 0.0); - - //color = vec4(mod(qt_TexCoord0.st, vec2(1.0)), 0, 1.0); } diff --git a/thumb.vert b/thumb.vert index 12b96b1..687eebe 100644 --- a/thumb.vert +++ b/thumb.vert @@ -1,4 +1,4 @@ -#version 130 +#version 330 in vec2 qt_Vertex; in vec2 qt_MultiTexCoord0;