Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit c224985

Browse files
bsalomonSkia Commit-Bot
authored and
Skia Commit-Bot
committed
Mark last render target bound ID invalid after clearing texture levels using glClear
Fixes WebGL invalid framebuffer issues. Change-Id: I841b8aa27f126feeb9971123c8b025630cdd3e0b Reviewed-on: https://skia-review.googlesource.com/c/skia/+/241757 Commit-Queue: Brian Salomon <[email protected]> Commit-Queue: Brian Osman <[email protected]> Auto-Submit: Brian Salomon <[email protected]> Reviewed-by: Brian Osman <[email protected]>
1 parent 86c48ab commit c224985

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/gpu/gl/GrGLGpu.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,6 +1298,7 @@ sk_sp<GrTexture> GrGLGpu::onCreateTexture(const GrSurfaceDesc& desc,
12981298
this->unbindSurfaceFBOForPixelOps(tex.get(), i, GR_GL_FRAMEBUFFER);
12991299
}
13001300
}
1301+
fHWBoundRenderTargetUniqueID.makeInvalid();
13011302
} else {
13021303
std::unique_ptr<char[]> zeros;
13031304
GL_CALL(PixelStorei(GR_GL_UNPACK_ALIGNMENT, 1));

0 commit comments

Comments
 (0)