diff options
-rw-r--r-- | src/cairo-egl-context.c | 2 | ||||
-rw-r--r-- | src/cairo-evas-gl-context.c | 3 | ||||
-rw-r--r-- | src/cairo-gl-private.h | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/src/cairo-egl-context.c b/src/cairo-egl-context.c index 5b67d4b3c..0a13c6aac 100644 --- a/src/cairo-egl-context.c +++ b/src/cairo-egl-context.c @@ -343,7 +343,7 @@ cairo_egl_device_create (EGLDisplay dpy, EGLContext egl) * This smaller size means that flushing needs to be done more often, * but it is less demanding of scarce memory on embedded devices. */ - ctx->base.vbo_size = 16*1024; + ctx->base.vbo_size = 16 * 1024; eglMakeCurrent (dpy, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT); diff --git a/src/cairo-evas-gl-context.c b/src/cairo-evas-gl-context.c index 3cd4e0e0b..8135edacb 100644 --- a/src/cairo-evas-gl-context.c +++ b/src/cairo-evas-gl-context.c @@ -337,6 +337,9 @@ cairo_evas_gl_device_create (Evas_GL *evas_gl, else ctx->has_multithread_makecurrent = FALSE; + // reset vbo_size + ctx->base.vbo_size = 16 * 1024; + evas_gl_make_current (ctx->evas_gl, NULL, NULL); return &ctx->base.base; } diff --git a/src/cairo-gl-private.h b/src/cairo-gl-private.h index ad08abd9f..e5a709e97 100644 --- a/src/cairo-gl-private.h +++ b/src/cairo-gl-private.h @@ -112,7 +112,7 @@ * but larger means hogging more memory and can cause trouble for drivers * (especially on embedded devices). Use the CAIRO_GL_VBO_SIZE environment * variable to set this to a different size. */ -#define CAIRO_GL_VBO_SIZE_DEFAULT (1024*1024) +#define CAIRO_GL_VBO_SIZE_DEFAULT (256*1024) #define MIN_IMAGE_CACHE_WIDTH 512 #define MIN_IMAGE_CACHE_HEIGHT 512 |