summaryrefslogtreecommitdiffstats
path: root/src/glx/render2.c
diff options
context:
space:
mode:
authorNeil Roberts <[email protected]>2015-07-04 22:40:58 +0100
committerNeil Roberts <[email protected]>2015-07-06 11:52:10 -0700
commit18039078e0254c7cb5e15b7186be05e2e4c10f38 (patch)
treefa142afbb8051437d9d22914145d0ff00c73618f /src/glx/render2.c
parentd9ab95b365f058a46bc43a8cb96b6fff10a13faf (diff)
glsl: Add missing check for whether an expression is an add operation
There is a piece of code that is trying to match expressions of the form (mul (floor (add (abs x) 0.5) (sign x))). However the check for the add expression wasn't checking whether it had the expected operation. It looks like this was just an oversight because it doesn't match the pattern for the rest of the code snippet. The existing line to check whether add_expr!=NULL was added as part of a coverity fix in 3384179f. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91226 Cc: Matt Turner <[email protected]> Cc: "10.6" <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/glx/render2.c')
0 files changed, 0 insertions, 0 deletions