| OLD | NEW |
| 1 Name | 1 Name |
| 2 | 2 |
| 3 CHROMIUM_copy_texture | 3 CHROMIUM_copy_texture |
| 4 | 4 |
| 5 Name Strings | 5 Name Strings |
| 6 | 6 |
| 7 GL_CHROMIUM_copy_texture | 7 GL_CHROMIUM_copy_texture |
| 8 | 8 |
| 9 Version | 9 Version |
| 10 | 10 |
| 11 Last Modifed Date: April 1, 2013 | 11 Last Modifed Date: July 16, 2014 |
| 12 | 12 |
| 13 Dependencies | 13 Dependencies |
| 14 | 14 |
| 15 OpenGL ES 2.0 is required. | 15 OpenGL ES 2.0 is required. |
| 16 | 16 |
| 17 CHROMIUM_flipy affects the definition of this extension. | 17 CHROMIUM_flipy affects the definition of this extension. |
| 18 EXT_texture_format_BGRA8888 affects the definition of this extension. | 18 EXT_texture_format_BGRA8888 affects the definition of this extension. |
| 19 | 19 |
| 20 Overview | 20 Overview |
| 21 | 21 |
| 22 This extension expands on the functionality provided by the | 22 This extension expands on the functionality provided by the |
| 23 glCopyTexImage2D command. A new function is exported, | 23 glCopyTexImage2D command. A new function is exported, |
| 24 glCopyTextureCHROMIUM, that performs the same copy operation as | 24 glCopyTextureCHROMIUM, that performs the same copy operation as |
| 25 glCopyTexImage2D, while respecting the pixel-storage modifiers | 25 glCopyTexImage2D, while respecting the pixel-storage modifiers |
| 26 UNPACK_FLIP_Y_CHROMIUM, GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM and | 26 UNPACK_FLIP_Y_CHROMIUM, GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM and |
| 27 GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM. | 27 GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM. |
| 28 | 28 |
| 29 If GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM and | 29 If GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM and |
| 30 GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM are enabled. Then no alpha | 30 GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM are enabled. Then no alpha |
| 31 processing occurs. This is the equivalent of having neither flag set. | 31 processing occurs. This is the equivalent of having neither flag set. |
| 32 | 32 |
| 33 The extension also supports copying BGRA textures and copying | 33 The extension also supports copying BGRA textures and copying |
| 34 EXTERNAL_OES texture to BGRA texture, which is not explicitly | 34 EXTERNAL_OES texture to BGRA texture, which is not explicitly |
| 35 granted by EXT_texture_format_BGRA8888. | 35 granted by EXT_texture_format_BGRA8888. |
| 36 | 36 |
| 37 New Procedures and Functions | 37 New Procedures and Functions |
| 38 | 38 |
| 39 void glCopyTextureCHROMIUM (GLenum target, GLenum source_id, | 39 void glCopyTextureCHROMIUM (GLenum target, GLenum source_id, |
| (...skipping 16 matching lines...) Expand all Loading... |
| 56 | 56 |
| 57 INVALID_VALUE is generated if <target> is not GL_TEXTURE_2D. | 57 INVALID_VALUE is generated if <target> is not GL_TEXTURE_2D. |
| 58 | 58 |
| 59 INVALID_VALUE is generated if <source_id> or <dest_id> are not valid texture | 59 INVALID_VALUE is generated if <source_id> or <dest_id> are not valid texture |
| 60 objects. | 60 objects. |
| 61 | 61 |
| 62 INVALID_VALUE is generated if textures corresponding to <dest_id> have not | 62 INVALID_VALUE is generated if textures corresponding to <dest_id> have not |
| 63 been bound as GL_TEXTURE_2D object. | 63 been bound as GL_TEXTURE_2D object. |
| 64 | 64 |
| 65 INVALID_VALUE is generated if textures corresponding to <source_id> have not | 65 INVALID_VALUE is generated if textures corresponding to <source_id> have not |
| 66 been bound as GL_TEXTURE_2D or GL_TEXTURE_EXTERNAL_OES objects. | 66 been bound as GL_TEXTURE_2D, GL_TEXTURE_RECTANGLE_ARB or |
| 67 GL_TEXTURE_EXTERNAL_OES objects. |
| 67 | 68 |
| 68 INVALID_VALUE is generated if <level> is not a valid level of the | 69 INVALID_VALUE is generated if <level> is not a valid level of the |
| 69 destination texture, or if level 0 of the source texture is not defined. | 70 destination texture, or if level 0 of the source texture is not defined. |
| 70 | 71 |
| 71 Errors | 72 Errors |
| 72 | 73 |
| 73 None. | 74 None. |
| 74 | 75 |
| 75 New Tokens | 76 New Tokens |
| 76 | 77 |
| 77 None. | 78 None. |
| 78 | 79 |
| 79 New State | 80 New State |
| 80 | 81 |
| 81 None. | 82 None. |
| 82 | 83 |
| 83 Revision History | 84 Revision History |
| 84 | 85 |
| 85 8/1/2011 Documented the extension | 86 8/1/2011 Documented the extension |
| 86 7/4/2013 Add a new parameter dest_type to glCopyTextureCHROMIUM() | 87 7/4/2013 Add a new parameter dest_type to glCopyTextureCHROMIUM() |
| 88 16/7/2014 Add GL_TEXTURE_RECTANGLE_ARB as valid source_id target. |
| OLD | NEW |