Remove unused fbo parameter in GLES SetAsFramebufferAttachment(). (flutter/engine#47133)
Trivial change that removes an unused parameter.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -506,7 +506,6 @@ static GLenum ToAttachmentPoint(TextureGLES::AttachmentPoint point) {
|
||||
}
|
||||
|
||||
bool TextureGLES::SetAsFramebufferAttachment(GLenum target,
|
||||
GLuint fbo,
|
||||
AttachmentPoint point) const {
|
||||
if (!IsValid()) {
|
||||
return false;
|
||||
|
||||
@@ -46,7 +46,6 @@ class TextureGLES final : public Texture,
|
||||
kStencil,
|
||||
};
|
||||
[[nodiscard]] bool SetAsFramebufferAttachment(GLenum target,
|
||||
GLuint fbo,
|
||||
AttachmentPoint point) const;
|
||||
|
||||
Type GetType() const;
|
||||
|
||||
Reference in New Issue
Block a user