summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/lower_texture_projection.cpp
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2017-09-18 15:30:51 -0500
committerIan Romanick <[email protected]>2017-10-02 14:46:02 -0700
commit6d1765c63aed1b814b29051c702f8e79ead6dbed (patch)
treecd8acdee3c4414b68c940bc6ab6e2f54369aa1b6 /src/compiler/glsl/lower_texture_projection.cpp
parent3cc997c7c81759446f4478d70252015fbe0ed9f5 (diff)
glsl: Don't pass NULL to ir_assignment constructor when not necessary
Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Alejandro PiƱeiro <[email protected]>
Diffstat (limited to 'src/compiler/glsl/lower_texture_projection.cpp')
-rw-r--r--src/compiler/glsl/lower_texture_projection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/glsl/lower_texture_projection.cpp b/src/compiler/glsl/lower_texture_projection.cpp
index 698e5b36617..db847f8a8c3 100644
--- a/src/compiler/glsl/lower_texture_projection.cpp
+++ b/src/compiler/glsl/lower_texture_projection.cpp
@@ -69,7 +69,7 @@ lower_texture_projection_visitor::visit_leave(ir_texture *ir)
ir->projector->type,
ir->projector,
NULL);
- ir_assignment *assign = new(mem_ctx) ir_assignment(deref, expr, NULL);
+ ir_assignment *assign = new(mem_ctx) ir_assignment(deref, expr);
base_ir->insert_before(assign);
deref = new(mem_ctx) ir_dereference_variable(var);