<p dir="ltr">Please note in the commit message exactly what is broken.</p>
<div class="gmail_quote">On Jun 16, 2015 11:15, "Anuj Phogat" <<a href="mailto:anuj.phogat@gmail.com">anuj.phogat@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Signed-off-by: Anuj Phogat <<a href="mailto:anuj.phogat@gmail.com">anuj.phogat@gmail.com</a>><br>
Cc: <<a href="mailto:mesa-stable@lists.freedesktop.org">mesa-stable@lists.freedesktop.org</a>><br>
---<br>
 src/mesa/main/readpix.c | 2 ++<br>
 1 file changed, 2 insertions(+)<br>
<br>
diff --git a/src/mesa/main/readpix.c b/src/mesa/main/readpix.c<br>
index caa2648..a9416ef 100644<br>
--- a/src/mesa/main/readpix.c<br>
+++ b/src/mesa/main/readpix.c<br>
@@ -160,10 +160,12 @@ _mesa_readpixels_needs_slow_path(const struct gl_context *ctx, GLenum format,<br>
       srcType = _mesa_get_format_datatype(rb->Format);<br>
<br>
       if ((srcType == GL_INT &&<br>
+           _mesa_is_enum_format_integer(format) &&<br>
            (type == GL_UNSIGNED_INT ||<br>
             type == GL_UNSIGNED_SHORT ||<br>
             type == GL_UNSIGNED_BYTE)) ||<br>
           (srcType == GL_UNSIGNED_INT &&<br>
+           _mesa_is_enum_format_integer(format) &&<br>
            (type == GL_INT ||<br>
             type == GL_SHORT ||<br>
             type == GL_BYTE))) {<br>
--<br>
1.9.3<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</blockquote></div>