Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2015-03-30 15:44:31 +0300
committerAntony Riakiotakis <kalast@gmail.com>2015-03-30 15:45:14 +0300
commitc6ce8200dd3f3b67029cfd5578f21d206cff219e (patch)
tree471d1174f49086376da87f2ca2fb4292eef3ea72 /source/blender/gpu
parent79a68617b3fbf2d714cde0a8964572a9a7f2a759 (diff)
Attempt to fix T44056, dof high quality shader error in ATI cards.
ATI driver does not like declaration of gl_FragColor and glFragData in the same source file (even though only one of the two is ever referenced), just use one of the two.
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/shaders/gpu_shader_fx_dof_hq_frag.glsl4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_fx_dof_hq_frag.glsl b/source/blender/gpu/shaders/gpu_shader_fx_dof_hq_frag.glsl
index 8c2aff45679..e315d2fb97a 100644
--- a/source/blender/gpu/shaders/gpu_shader_fx_dof_hq_frag.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_fx_dof_hq_frag.glsl
@@ -107,7 +107,7 @@ void accumulate_pass(void) {
if (dot(particlecoord, particlecoord) > r * r)
discard;
- gl_FragColor = color;
+ gl_FragData[0] = color;
}
#define MERGE_THRESHOLD 4.0
@@ -151,7 +151,7 @@ void final_pass(void) {
finalcolor = mix(finalcolor, nearcolor, nearweight / totalweight);
}
- gl_FragColor = finalcolor;
+ gl_FragData[0] = finalcolor;
}
void main()