path: root/bin
diff options
authorPaul Berry <>2013-11-19 13:31:20 -0800
committerPaul Berry <>2013-11-21 18:16:34 -0800
commit068a073c1d4853b5c8f33efdeb481026f42e23a5 (patch)
treefc9e9592ff3401705c35cc98b1577f78b3c639b9 /bin
parent95140740ad1c6cd8a34002c307556f5c49a34589 (diff)
meta: fix meta clear of layered framebuffers
From section 4.4.7 (Layered Framebuffers) of the GLSL 3.2 spec: When the Clear or ClearBuffer* commands are used to clear a layered framebuffer attachment, all layers of the attachment are cleared. This patch fixes meta clears to properly clear all layers of a layered framebuffer attachment. We accomplish this by adding a geometry shader to the meta clear program which sets gl_Layer to a uniform value. When clearing a layered framebuffer, we execute in a loop, setting the uniform to point to each layer in turn. Cc: "10.0" <> Reviewed-by: Eric Anholt <> Reviewed-by: Jordan Justen <>
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions