<div dir="ltr">I'm confused which hunk you talking about. Can you be more specific?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 9, 2015 at 8:47 AM, Anuj Phogat <span dir="ltr"><<a href="mailto:anuj.phogat@gmail.com" target="_blank">anuj.phogat@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Wed, Mar 4, 2015 at 4:41 PM, Laura Ekstrand <<a href="mailto:laura@jlekstrand.net">laura@jlekstrand.net</a>> wrote:<br>
> Adds a useful comment and some whitespace. Fixes an error message.<br>
><br>
> v2: Review from Anuj Phogat<br>
> - Split rebase of Tex[ture]Buffer[Range]<br>
> ---<br>
> src/mesa/main/teximage.c | 12 ++++++++++--<br>
> 1 file changed, 10 insertions(+), 2 deletions(-)<br>
><br>
> diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c<br>
> index 706c76b..22574bd 100644<br>
> --- a/src/mesa/main/teximage.c<br>
> +++ b/src/mesa/main/teximage.c<br>
> @@ -5354,6 +5354,14 @@ _mesa_TexBufferRange(GLenum target, GLenum internalFormat, GLuint buffer,<br>
> buffer);<br>
> return;<br>
> } else {<br>
> +<br>
> + /* OpenGL 4.5 core spec (02.02.2015) says in Section 8.9 Buffer<br>
> + * Textures (PDF page 254):<br>
> + * "If buffer is zero, then any buffer object attached to the buffer<br>
> + * texture is detached, the values offset and size are ignored and<br>
> + * the state for offset and size for the buffer texture are reset to<br>
> + * zero."<br>
> + */<br>
> offset = 0;<br>
> size = 0;<br>
> }<br>
> @@ -5382,8 +5390,7 @@ _mesa_TextureBuffer(GLuint texture, GLenum internalFormat, GLuint buffer)<br>
> bufObj = NULL;<br>
><br>
> /* Get the texture object by Name. */<br>
> - texObj = _mesa_lookup_texture_err(ctx, texture,<br>
> - "glTextureBuffer(texture)");<br>
> + texObj = _mesa_lookup_texture_err(ctx, texture, "glTextureBuffer");<br>
> if (!texObj)<br>
> return;<br>
><br>
> @@ -5396,6 +5403,7 @@ _mesa_TextureBuffer(GLuint texture, GLenum internalFormat, GLuint buffer)<br>
> bufObj, 0, buffer ? -1 : 0, "glTextureBuffer");<br>
> }<br>
><br>
> +<br>
> static GLboolean<br>
> is_renderable_texture_format(struct gl_context *ctx, GLenum internalformat)<br>
> {<br>
</div></div>This hunk is unnecessary.<br>
<span class="HOEnZb"><font color="#888888">> --<br>
> 2.1.0<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" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>