mesa: Correct backwards NULL check.

Cc: "10.4, 10.5" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
(cherry picked from commit 491d42135a)
This commit is contained in:
Matt Turner 2015-02-28 11:14:02 -08:00 committed by Emil Velikov
parent a369361f9e
commit 644bbf88ec

View file

@ -1696,7 +1696,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;