[Embedder] Document incorrectly named field in FlutterOpenGLFramebuffer. (flutter/engine#53720)

Doesn't rename the field to maintain API compatibility. But adds a bug annotation.

Fixes https://github.com/flutter/flutter/issues/148637
This commit is contained in:
Chinmay Garde
2024-07-03 13:38:09 -07:00
committed by GitHub
parent b6fbffe976
commit f20ab5e458

View File

@@ -387,9 +387,14 @@ typedef struct {
} FlutterOpenGLTexture; } FlutterOpenGLTexture;
typedef struct { typedef struct {
/// The target of the color attachment of the frame-buffer. For example, /// The format of the color attachment of the frame-buffer. For example,
/// GL_TEXTURE_2D or GL_RENDERBUFFER. In case of ambiguity when dealing with /// GL_RGBA8.
/// Window bound frame-buffers, 0 may be used. ///
/// In case of ambiguity when dealing with Window bound frame-buffers, 0 may
/// be used.
///
/// @bug This field is incorrectly named as "target" when it actually
/// refers to a format.
uint32_t target; uint32_t target;
/// The name of the framebuffer. /// The name of the framebuffer.