mesa/st: Create front renderbuffer on the fly when supplied with a surface
authorNicolai Hähnle <nhaehnle@gmail.com>
Sat, 12 Sep 2009 14:49:31 +0000 (16:49 +0200)
committerNicolai Hähnle <nhaehnle@gmail.com>
Sun, 20 Sep 2009 14:58:53 +0000 (16:58 +0200)
commite617dd14ab4863921c02612ab76faa94b02a155c
treedb26a1bb2ec6c2c130104d7caa8c338db40ad0d3
parentc8c5de9e9a310633a2d046e63a7277820e0577ef
mesa/st: Create front renderbuffer on the fly when supplied with a surface

Normally, the mesa/st would create a fake front buffer out of a
client-allocated surface.

In the DRI setting, however, st/dri provides a front buffer surface which is
created and maintained by the X server. Prefer to use this surface instead,
so that front buffer rendering and reading works correctly.

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
src/mesa/state_tracker/st_framebuffer.c