<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:mattst88@gmail.com" title="Matt Turner <mattst88@gmail.com>"> <span class="fn">Matt Turner</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTOURBUG - Severe noise corruption observed while running WebGL “Fluid Simulation ”"
href="https://bugs.freedesktop.org/show_bug.cgi?id=87345">bug 87345</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>REOPENED
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>NOTOURBUG
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTOURBUG - Severe noise corruption observed while running WebGL “Fluid Simulation ”"
href="https://bugs.freedesktop.org/show_bug.cgi?id=87345#c10">Comment # 10</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTOURBUG - Severe noise corruption observed while running WebGL “Fluid Simulation ”"
href="https://bugs.freedesktop.org/show_bug.cgi?id=87345">bug 87345</a>
from <span class="vcard"><a class="email" href="mailto:mattst88@gmail.com" title="Matt Turner <mattst88@gmail.com>"> <span class="fn">Matt Turner</span></a>
</span></b>
<pre>(In reply to qiang.miao from <a href="show_bug.cgi?id=87345#c9">comment #9</a>)
<span class="quote">> Can't agree with you
> Why the same code can work correctly on Windows?
>
> If these variables areundefined variables like you said
> WebGL will report error and draw nothing
>
> + vec2 uv = vec2(0, 0);
> vec2 motion = decode2( texture2D(sampler_fluid, uv))*pixelSize*0.75;
>
> - vec2 uv = uv - motion; // add fluid motion
> + uv = uv - motion; // add fluid motion
>
>
> - vec2 gz; // blue blur2 gradient vector
> + vec2 gz = vec2(0, 0); // blue blur2 gradient vector
>
> Those variables are defined without initial value
> There is something wrong with shader compiler on how to handle default value</span >
No.
The GLSL spec says "Reading a variable before writing (or initializing) it is
legal, however the value is undefined."</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>