summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2015-02-28 11:14:02 -0800
committerMatt Turner <[email protected]>2015-03-02 10:24:33 -0800
commit491d42135ad0e5670756216154f2ba9fc79d4ba7 (patch)
treefb510f5f3eb3c8d504f0caea71b9b8f2532678a9 /src/mesa/main
parent87109acbed9c9b52f33d58ca06d9048d0ac7a215 (diff)
mesa: Correct backwards NULL check.
Cc: "10.4, 10.5" <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/shaderapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c
index dd536cd07d2..5731d581a9d 100644
--- a/src/mesa/main/shaderapi.c
+++ b/src/mesa/main/shaderapi.c
@@ -1739,7 +1739,7 @@ _mesa_GetProgramBinary(GLuint program, GLsizei bufSize, GLsizei *length,
* Ensure that length always points to valid storage to avoid multiple NULL
* pointer checks below.
*/
- if (length != NULL)
+ if (length == NULL)
length = &length_dummy;