From patchwork Mon Jul 25 13:56:40 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: alexandros.frantzis@linaro.org X-Patchwork-Id: 3088 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 804B023E54 for ; Mon, 25 Jul 2011 13:57:37 +0000 (UTC) Received: from mail-qy0-f180.google.com (mail-qy0-f180.google.com [209.85.216.180]) by fiordland.canonical.com (Postfix) with ESMTP id 41E84A183B4 for ; Mon, 25 Jul 2011 13:57:37 +0000 (UTC) Received: by mail-qy0-f180.google.com with SMTP id 30so2963572qyk.11 for ; Mon, 25 Jul 2011 06:57:37 -0700 (PDT) Received: by 10.229.25.212 with SMTP id a20mr3470004qcc.148.1311602256990; Mon, 25 Jul 2011 06:57:36 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.229.217.78 with SMTP id hl14cs77893qcb; Mon, 25 Jul 2011 06:57:36 -0700 (PDT) Received: by 10.204.35.207 with SMTP id q15mr1393019bkd.244.1311602255996; Mon, 25 Jul 2011 06:57:35 -0700 (PDT) Received: from mail-fx0-f44.google.com (mail-fx0-f44.google.com [209.85.161.44]) by mx.google.com with ESMTPS id 18si7042659fat.105.2011.07.25.06.57.35 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 25 Jul 2011 06:57:35 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.161.44 is neither permitted nor denied by best guess record for domain of alexandros.frantzis@linaro.org) client-ip=209.85.161.44; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.161.44 is neither permitted nor denied by best guess record for domain of alexandros.frantzis@linaro.org) smtp.mail=alexandros.frantzis@linaro.org Received: by mail-fx0-f44.google.com with SMTP id 6so6802455fxe.17 for ; Mon, 25 Jul 2011 06:57:35 -0700 (PDT) Received: by 10.223.64.66 with SMTP id d2mr6733908fai.116.1311602255560; Mon, 25 Jul 2011 06:57:35 -0700 (PDT) Received: from localhost (77.49.93.204.dsl.dyn.forthnet.gr [77.49.93.204]) by mx.google.com with ESMTPS id p17sm3809818fak.1.2011.07.25.06.57.34 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 25 Jul 2011 06:57:35 -0700 (PDT) From: alexandros.frantzis@linaro.org To: patches@linaro.org Subject: [PATCH 13/21] gl: Remove unnecessary call to glDisableClientState() Date: Mon, 25 Jul 2011 16:56:40 +0300 Message-Id: <1311602208-5973-13-git-send-email-alexandros.frantzis@linaro.org> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1311602208-5973-1-git-send-email-alexandros.frantzis@linaro.org> References: <1311602208-5973-1-git-send-email-alexandros.frantzis@linaro.org> From: Alexandros Frantzis This function has no effect when using shaders and is not supported at all in GLES2. Signed-off-by: Chris Wilson --- src/cairo-gl-device.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/src/cairo-gl-device.c b/src/cairo-gl-device.c index 92cd82a..6dcf835 100644 --- a/src/cairo-gl-device.c +++ b/src/cairo-gl-device.c @@ -89,8 +89,6 @@ _gl_flush (void *device) ctx->dispatch.BindBuffer (GL_ARRAY_BUFFER, 0); - glDisableClientState (GL_VERTEX_ARRAY); - glDisable (GL_SCISSOR_TEST); glDisable (GL_BLEND);