Mesa (10.4): Revert "mesa: Correct backwards NULL check."

Emil Velikov evelikov at kemper.freedesktop.org
Fri Mar 6 19:42:33 UTC 2015


Module: Mesa
Branch: 10.4
Commit: 93edf3e7dc4740e97ef42e2911ed5b9d165e6c2c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=93edf3e7dc4740e97ef42e2911ed5b9d165e6c2c

Author: Emil Velikov <emil.l.velikov at gmail.com>
Date:   Fri Mar  6 18:40:09 2015 +0000

Revert "mesa: Correct backwards NULL check."

This reverts commit a598a9bdfe9f5d0ed35ca89a55cf74a2b678e8e1.

The patch was applied without the required dependencies.

---

 src/mesa/main/shaderapi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/main/shaderapi.c b/src/mesa/main/shaderapi.c
index 94f6b76..6657820 100644
--- a/src/mesa/main/shaderapi.c
+++ b/src/mesa/main/shaderapi.c
@@ -1704,7 +1704,7 @@ _mesa_GetProgramBinary(GLuint program, GLsizei bufSize, GLsizei *length,
     *
     *     "If <length> is NULL, then no length is returned."
     */
-   if (length == NULL)
+   if (length != NULL)
       *length = 0;
 
    (void) binaryFormat;




More information about the mesa-commit mailing list