From 61bb91a2e76d105d7bbbede3b339f01ac72463a5 Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Fri, 29 Oct 2010 15:49:25 +0100 Subject: [PATCH] gles2: disable vbos until while we rework backend The gles2 wrapper functions don't understand about the CoglBuffer API so they don't support attributes stored in a CoglVertexArray. Instead of teaching the backend about buffers we are going to wait until we have overhauled the GLES 2 backend. We are currently making progress consolidating the GLES 2 backend with a new GLSL backend for CoglMaterial. This will hugely simplify the GLES 2 support and share code with the OpenGL backend. In the end it's hoped that this problem will simply go away so it doesn't make much sense to solve it with the current design. --- cogl/driver/gles/cogl-gles.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cogl/driver/gles/cogl-gles.c b/cogl/driver/gles/cogl-gles.c index 15d652594..c268f614f 100644 --- a/cogl/driver/gles/cogl-gles.c +++ b/cogl/driver/gles/cogl-gles.c @@ -105,7 +105,12 @@ _cogl_features_init (void) flags |= COGL_FEATURE_TEXTURE_NPOT_BASIC; #endif + /* FIXME: HACK: We are in the process of overhauling the GLES 2 backend + * and consolidating with a CoglMaterial GLSL backend. Currently though + * use of CoglBuffers with GLES 2 is broken. */ +#ifndef HAVE_COGL_GLES2 flags |= COGL_FEATURE_VBOS; +#endif /* Both GLES 1.1 and GLES 2.0 support point sprites in core */ flags |= COGL_FEATURE_POINT_SPRITE;