summaryrefslogtreecommitdiffstats
path: root/src/mapi
diff options
context:
space:
mode:
authorLaura Ekstrand <laura@jlekstrand.net>2015-03-02 16:48:59 -0800
committerFredrik Höglund <fredrik@kde.org>2015-05-14 15:48:13 +0200
commit085c67dc77ab3c00d3f68ba52f8343f8ff0cab53 (patch)
tree39f3e55c960530d1788d7e684e008c37aac7c537 /src/mapi
parentd78c831a147e8af6f6fc1a610f4c2e490e75fad1 (diff)
downloadexternal_mesa3d-085c67dc77ab3c00d3f68ba52f8343f8ff0cab53.zip
external_mesa3d-085c67dc77ab3c00d3f68ba52f8343f8ff0cab53.tar.gz
external_mesa3d-085c67dc77ab3c00d3f68ba52f8343f8ff0cab53.tar.bz2
main: Major refactor of get_texture_for_framebuffer.
This splits off the (still) rather large chunk that is get_texture_for_framebuffer into lots of smaller functions specialized to service the wide variety of unique needs of *FramebufferTexture* entry points. The result is much cleaner because, rather than having a pile of branches and confusing conditions (like the boolean layered), the uniqueness is baked into the entry points. The entry points know whether or not they are layered or use a textarget. [Fredrik: - Mention the value of <textarget> in the error message. - Rename check_zoffset to check_layer, and zoffset to layer. The zoffset parameter was renamed to layer in ARB_framebuffer_object. - Make layered a GLboolean since the value is visible to the API. - Remove EXT suffixes in refactored code. - Whitespace fixes.] Reviewed-by: Fredrik Höglund <fredrik@kde.org> Signed-off-by: Fredrik Höglund <fredrik@kde.org>
Diffstat (limited to 'src/mapi')
-rw-r--r--src/mapi/glapi/gen/ARB_framebuffer_object.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapi/glapi/gen/ARB_framebuffer_object.xml b/src/mapi/glapi/gen/ARB_framebuffer_object.xml
index 7c547c1..999a8ef 100644
--- a/src/mapi/glapi/gen/ARB_framebuffer_object.xml
+++ b/src/mapi/glapi/gen/ARB_framebuffer_object.xml
@@ -247,7 +247,7 @@
<param name="textarget" type="GLenum"/>
<param name="texture" type="GLuint"/>
<param name="level" type="GLint"/>
- <param name="zoffset" type="GLint"/>
+ <param name="layer" type="GLint"/>
<glx rop="4323"/>
</function>