summaryrefslogtreecommitdiff
path: root/src/cairo-gl-surface.c
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2012-01-23 13:07:59 -0800
committerMartin Robinson <mrobinson@igalia.com>2012-05-17 13:13:40 -0700
commit29b243325c0af760249a414bdce2e6afb64186a7 (patch)
treea4d37b73c8fd7226892451403d69c51e46ff7931 /src/cairo-gl-surface.c
parent9208dd6230aa3c236a91105f8dc5d5caf69fe591 (diff)
gl/msaa: Support for non-texture surfaces
Add full support for non-texture surfaces, by correctly querying primitives for stencil and multisample bits.
Diffstat (limited to 'src/cairo-gl-surface.c')
-rw-r--r--src/cairo-gl-surface.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/cairo-gl-surface.c b/src/cairo-gl-surface.c
index 9b8cf27c..c2e9687a 100644
--- a/src/cairo-gl-surface.c
+++ b/src/cairo-gl-surface.c
@@ -392,10 +392,6 @@ _cairo_gl_surface_init (cairo_device_t *device,
surface->height = height;
surface->needs_update = FALSE;
- /* Support for multisampling in non-texture surfaces is still spotty. */
- surface->supports_msaa = FALSE;
- surface->msaa_active = FALSE;
-
_cairo_gl_surface_embedded_operand_init (surface);
}
@@ -417,6 +413,7 @@ _cairo_gl_surface_create_scratch_for_texture (cairo_gl_context_t *ctx,
_cairo_gl_surface_init (&ctx->base, surface, content, width, height);
surface->supports_msaa = ctx->supports_msaa;
+ surface->supports_stencil = TRUE;
/* Create the texture used to store the surface's data. */
_cairo_gl_context_activate (ctx, CAIRO_GL_TEX_TEMP);