Remove unused fbo parameter in GLES SetAsFramebufferAttachment(). (flutter/engine#47133)

Trivial change that removes an unused parameter.
This commit is contained in:
Matan Lurey
2023-10-19 15:46:13 -07:00
committed by GitHub
parent a64b2e4568
commit 3d54f07596
4 changed files with 4 additions and 6 deletions

View File

@@ -41,7 +41,7 @@ static std::optional<GLuint> ConfigureFBO(
gl.BindFramebuffer(fbo_type, fbo);
if (!TextureGLES::Cast(*texture).SetAsFramebufferAttachment(
fbo_type, fbo, TextureGLES::AttachmentPoint::kColor0)) {
fbo_type, TextureGLES::AttachmentPoint::kColor0)) {
VALIDATION_LOG << "Could not attach texture to framebuffer.";
DeleteFBO(gl, fbo, fbo_type);
return std::nullopt;

View File

@@ -176,19 +176,19 @@ struct RenderPassData {
if (auto color = TextureGLES::Cast(pass_data.color_attachment.get())) {
if (!color->SetAsFramebufferAttachment(
GL_FRAMEBUFFER, fbo, TextureGLES::AttachmentPoint::kColor0)) {
GL_FRAMEBUFFER, TextureGLES::AttachmentPoint::kColor0)) {
return false;
}
}
if (auto depth = TextureGLES::Cast(pass_data.depth_attachment.get())) {
if (!depth->SetAsFramebufferAttachment(
GL_FRAMEBUFFER, fbo, TextureGLES::AttachmentPoint::kDepth)) {
GL_FRAMEBUFFER, TextureGLES::AttachmentPoint::kDepth)) {
return false;
}
}
if (auto stencil = TextureGLES::Cast(pass_data.stencil_attachment.get())) {
if (!stencil->SetAsFramebufferAttachment(
GL_FRAMEBUFFER, fbo, TextureGLES::AttachmentPoint::kStencil)) {
GL_FRAMEBUFFER, TextureGLES::AttachmentPoint::kStencil)) {
return false;
}
}

View File

@@ -506,7 +506,6 @@ static GLenum ToAttachmentPoint(TextureGLES::AttachmentPoint point) {
}
bool TextureGLES::SetAsFramebufferAttachment(GLenum target,
GLuint fbo,
AttachmentPoint point) const {
if (!IsValid()) {
return false;

View File

@@ -46,7 +46,6 @@ class TextureGLES final : public Texture,
kStencil,
};
[[nodiscard]] bool SetAsFramebufferAttachment(GLenum target,
GLuint fbo,
AttachmentPoint point) const;
Type GetType() const;