<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Fri, Jun 15, 2018 at 11:19 AM <<a href="mailto:ramin.azarmehr@gmail.com">ramin.azarmehr@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Ramin Azarmehr <<a href="mailto:ramin.azarmehr@gmail.com" target="_blank">ramin.azarmehr@gmail.com</a>><br>
<br>
---<br>
 src/vrend_renderer.c | 17 ++++++++---------<br>
 1 file changed, 8 insertions(+), 9 deletions(-)<br>
<br>
diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c<br>
index 8b0a1e0..141fa18 100644<br>
--- a/src/vrend_renderer.c<br>
+++ b/src/vrend_renderer.c<br>
@@ -1466,15 +1466,14 @@ void vrend_fb_bind_texture(struct vrend_resource *res,<br>
    const struct util_format_description *desc = util_format_description(res->base.format);<br>
    GLenum attachment = GL_COLOR_ATTACHMENT0_EXT + idx;<br>
<br>
-   if (vrend_format_is_ds(res->base.format)) { {<br>
-         if (util_format_has_stencil(desc)) {<br>
-            if (util_format_has_depth(desc))<br>
-               attachment = GL_DEPTH_STENCIL_ATTACHMENT;<br>
-            else<br>
-               attachment = GL_STENCIL_ATTACHMENT;<br>
-         } else<br>
-            attachment = GL_DEPTH_ATTACHMENT;<br>
-      }<br>
+   if (vrend_format_is_ds(res->base.format)) {<br>
+      if (util_format_has_stencil(desc)) {<br>
+         if (util_format_has_depth(desc))<br>
+            attachment = GL_DEPTH_STENCIL_ATTACHMENT;<br>
+         else<br>
+            attachment = GL_STENCIL_ATTACHMENT;<br>
+      } else<br>
+         attachment = GL_DEPTH_ATTACHMENT;<br>
    }<br></blockquote><div><br></div><div><div style="background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">Reviewed-by: Gurchetan Singh <<a href="mailto:gurchetansingh@chromium.org" target="_blank" style="color:rgb(17,85,204)">gurchetansingh@chromium.org</a>></div><br class="gmail-Apple-interchange-newline"> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
    switch (res->target) {<br>
-- <br>
2.17.1<br>
<br>
_______________________________________________<br>
virglrenderer-devel mailing list<br>
<a href="mailto:virglrenderer-devel@lists.freedesktop.org" target="_blank">virglrenderer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/virglrenderer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/virglrenderer-devel</a><br>
</blockquote></div></div>