diff --git a/src/cairo-gl-device.c b/src/cairo-gl-device.c index b30c49c..9817709 100644 --- a/src/cairo-gl-device.c +++ b/src/cairo-gl-device.c @@ -345,9 +345,7 @@ _get_depth_stencil_format (cairo_gl_context_t *ctx) #if CAIRO_HAS_GL_SURFACE if (ctx->gl_flavor == CAIRO_GL_FLAVOR_DESKTOP) return GL_DEPTH_STENCIL; -#endif - -#if CAIRO_HAS_GLESV2_SURFACE +#elif CAIRO_HAS_GLESV2_SURFACE if (ctx->gl_flavor == CAIRO_GL_FLAVOR_DESKTOP) return GL_DEPTH24_STENCIL8_OES; #endif