]> git.tdb.fi Git - libs/gl.git/blobdiff - extensions/ext_framebuffer_object.glext
Make extensions compatible with OpenGL ES
[libs/gl.git] / extensions / ext_framebuffer_object.glext
index 88f41cb1bb23b73bd3e13e7a68963f51ea4b6767..06e9c37b3dfd836c14117f6b4e9872a5c63cf15f 100644 (file)
@@ -1,4 +1,39 @@
 extension EXT_framebuffer_object
-# Not promoted; keep them around for more accurate error checking
+# The core flavor allows attachments to have different sizes or formats; keep
+# these error codes around in case we encounter extension flavor framebuffers
 optional GL_FRAMEBUFFER_INCOMPLETE_DIMENSIONS_EXT
 optional GL_FRAMEBUFFER_INCOMPLETE_FORMATS_EXT
+# Changing the draw or read buffer is not available on OpenGL ES before 3.0 so
+# these errors don't exist
+optional GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_EXT
+optional GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER_EXT
+# OpenGL ES has a more limited range of stencil formats
+ignore GL_STENCIL_INDEX1_EXT
+ignore GL_STENCIL_INDEX4_EXT
+ignore GL_STENCIL_INDEX16_EXT
+# 1D textures are not available on OpenGL ES
+optional glFramebufferTexture1DEXT
+# 2D array textures were introduced to OpenGL ES at the same time as 3D
+# textures, so the more generic glFramebufferTextureLayer should be used
+optional glFramebufferTexture3DEXT
+# Color attachments beyond 0 are not available on OpenGL ES before 3.0; access
+# through NV_fbo_color_attachments instead
+ignore GL_MAX_COLOR_ATTACHMENTS_EXT
+ignore GL_COLOR_ATTACHMENT1_EXT
+ignore GL_COLOR_ATTACHMENT2_EXT
+ignore GL_COLOR_ATTACHMENT3_EXT
+ignore GL_COLOR_ATTACHMENT4_EXT
+ignore GL_COLOR_ATTACHMENT5_EXT
+ignore GL_COLOR_ATTACHMENT6_EXT
+ignore GL_COLOR_ATTACHMENT7_EXT
+ignore GL_COLOR_ATTACHMENT8_EXT
+ignore GL_COLOR_ATTACHMENT9_EXT
+ignore GL_COLOR_ATTACHMENT10_EXT
+ignore GL_COLOR_ATTACHMENT11_EXT
+ignore GL_COLOR_ATTACHMENT12_EXT
+ignore GL_COLOR_ATTACHMENT13_EXT
+ignore GL_COLOR_ATTACHMENT14_EXT
+ignore GL_COLOR_ATTACHMENT15_EXT
+# The query for attached texture layer is not available on OpenGL ES before 3.0
+# due to the lack of appropriate texture types
+ignore GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_EXT