OpenGL-API icon indicating copy to clipboard operation
OpenGL-API copied to clipboard

CopyTexImage2D references a "CopyPixels" that has been removed from the specification

Open magcius opened this issue 2 years ago • 3 comments

https://registry.khronos.org/OpenGL/specs/gl/glspec46.core.pdf#page=240

The image is taken from the framebuffer exactly as if these arguments were passed to CopyPixels (see section 18.3) with argument type set to COLOR, DEPTH, DEPTH_STENCIL, or STENCIL_INDEX, depending on internalformat, stopping after conversion of depth values.

However, section 18.3 does not mention any behavior for CopyPixels. Funnily enough, the changelog says that this text should be moved into this section, but it seems this was forgotten.

Pixel copying - CopyPixels (the comments also applying to CopyTexImage will be moved to section 8.6).

magcius avatar May 27 '23 19:05 magcius

@oddhack would you mind looking at this one. Thanks.

pdaniell-nv avatar Jun 06 '23 21:06 pdaniell-nv

We can put that on the queue for the next time we do a spec update. From the wording I suspect that was a to-do item that was lost track of and rebooting my memory of the pixel/texel deprecated/non-deprecated language will be a project.

oddhack avatar Jun 07 '23 12:06 oddhack

I assume it's valid to use the compatibility specification for implementation reference here, since it still has the proper spec language, but I still figured I'd point out the editorial error.

magcius avatar Jun 07 '23 15:06 magcius