summaryrefslogtreecommitdiff
path: root/cogl/cogl-framebuffer-private.h
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2009-11-30 20:04:41 +0000
committerRobert Bragg <robert@linux.intel.com>2010-01-11 15:32:52 +0000
commit9690913fefdad782c74efa5c546ece0d873c05e4 (patch)
treea44a09399cfa30e927941c8f502014695d828e1c /cogl/cogl-framebuffer-private.h
parent05ce533fc8b865ed45f60abdf50625003b841576 (diff)
downloadcogl-9690913fefdad782c74efa5c546ece0d873c05e4.tar.gz
cogl: Support multiple fallbacks in cogl_offscreen_new_to_texture()
The Intel drivers in Mesa 7.6 (and possibly earlier versions) don't support creating FBOs with a stencil buffer but without a depth buffer. This reworks framebuffer allocation so that we try a number of fallback options before failing. The options we try in order are: - the same options that were sucessful last time if available - combined depth and stencil - separate depth and stencil - just stencil, no depth - just depth, no stencil - neither depth or stencil
Diffstat (limited to 'cogl/cogl-framebuffer-private.h')
-rw-r--r--cogl/cogl-framebuffer-private.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cogl/cogl-framebuffer-private.h b/cogl/cogl-framebuffer-private.h
index 946adfe2..1f21a670 100644
--- a/cogl/cogl-framebuffer-private.h
+++ b/cogl/cogl-framebuffer-private.h
@@ -56,7 +56,7 @@ typedef struct _CoglOffscreen
{
CoglFramebuffer _parent;
GLuint fbo_handle;
- GLuint gl_stencil_handle;
+ GSList *renderbuffers;
CoglHandle texture;
} CoglOffscreen;