summaryrefslogtreecommitdiffstats
path: root/src/runtime/shaders/compositor_ms2.frag
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2018-05-23 17:54:26 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2018-05-23 17:54:33 +0200
commit41ccb47065b9ba4418d792644415a424270b256f (patch)
tree7a1ae164efc44b4cd74344fb88d13fe1158576c4 /src/runtime/shaders/compositor_ms2.frag
parent8bb3378d0d7c82eb1896ac043570ddab7c2edae9 (diff)
parentb81bba4795eea06d4dcbf39c99f986de2654077d (diff)
Merge remote-tracking branch 'origin/2.0'v2.0.0-beta2
Diffstat (limited to 'src/runtime/shaders/compositor_ms2.frag')
-rw-r--r--src/runtime/shaders/compositor_ms2.frag5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/runtime/shaders/compositor_ms2.frag b/src/runtime/shaders/compositor_ms2.frag
index 40b50d4..f920a7b 100644
--- a/src/runtime/shaders/compositor_ms2.frag
+++ b/src/runtime/shaders/compositor_ms2.frag
@@ -1,14 +1,15 @@
#version 310 es
+precision highp float;
in vec2 texCoord;
-uniform sampler2DMS tex;
+uniform highp sampler2DMS tex;
out vec4 fragColor;
void main()
{
- ivec2 tc = ivec2(floor(textureSize(tex) * texCoord));
+ ivec2 tc = ivec2(floor(vec2(textureSize(tex)) * texCoord));
vec4 c = texelFetch(tex, tc, 0) + texelFetch(tex, tc, 1);
c /= 2.0;
// This discard, while not necessarily ideal for some GPUs, is necessary to