From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38394) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Za3Jt-0000p0-Ec for qemu-devel@nongnu.org; Thu, 10 Sep 2015 10:59:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Za3Jq-0006nA-9B for qemu-devel@nongnu.org; Thu, 10 Sep 2015 10:59:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37310) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Za3Jq-0006my-4K for qemu-devel@nongnu.org; Thu, 10 Sep 2015 10:59:22 -0400 Message-ID: <1441897159.11233.29.camel@redhat.com> From: Gerd Hoffmann Date: Thu, 10 Sep 2015 16:59:19 +0200 In-Reply-To: References: <1441797654-15350-1-git-send-email-kraxel@redhat.com> <1441797654-15350-2-git-send-email-kraxel@redhat.com> <1441891346.11233.1.camel@redhat.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 1/9] shaders: initialize vertexes once List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?ISO-8859-1?Q?Marc-Andr=E9?= Lureau Cc: QEMU On Do, 2015-09-10 at 15:42 +0200, Marc-Andr=C3=A9 Lureau wrote: > Hi >=20 > On Thu, Sep 10, 2015 at 3:22 PM, Gerd Hoffmann wrot= e: > >> > + glBindBuffer (GL_ARRAY_BUFFER, 0); > >> > + glBindVertexArray (0); > >> > + glDeleteBuffers (1, &buffer); > >> > + > >> > >> extra space before ( > > > > Fixed. > > > >> Is the unbinding necessary? > > > > Unbinding? Do you mam the DeleteBuffers? > > >=20 > The glBind..(.., 0) >=20 > I think they shouldn't be necessary unless you have some other gl > context sensitive code. Just good style copied from sample code. Probably it's not really needed here. cheers, Gerd