summaryrefslogtreecommitdiff
path: root/src/cairo-gl-surface.c
diff options
context:
space:
mode:
authorAlexandros Frantzis <alexandros.frantzis@linaro.org>2010-12-06 13:36:22 +0200
committerChris Wilson <chris@chris-wilson.co.uk>2010-12-15 15:32:20 +0000
commitcf518b29e06328715837accd3a4390adde898624 (patch)
tree5b0a33de988884bfc7bd7f51442f4600e73f319f /src/cairo-gl-surface.c
parented862d3f7bd11c6d60f48efd69c0fa035b5b17a1 (diff)
gl: Use the dispatch table for calling ARB/EXT functions
Use the dispatch table for calling GL functions that can have multiple name variants. Also, always use the core variant names for GL constants.
Diffstat (limited to 'src/cairo-gl-surface.c')
-rw-r--r--src/cairo-gl-surface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cairo-gl-surface.c b/src/cairo-gl-surface.c
index 9b4b2acf..61a0e9d3 100644
--- a/src/cairo-gl-surface.c
+++ b/src/cairo-gl-surface.c
@@ -785,9 +785,9 @@ _cairo_gl_surface_finish (void *abstract_surface)
ctx->current_target = NULL;
if (surface->depth)
- glDeleteFramebuffersEXT (1, &surface->depth);
+ ctx->dispatch.DeleteFramebuffers (1, &surface->depth);
if (surface->fb)
- glDeleteFramebuffersEXT (1, &surface->fb);
+ ctx->dispatch.DeleteFramebuffers (1, &surface->fb);
if (surface->owns_tex)
glDeleteTextures (1, &surface->tex);