Capture/Replay: Handle newly generated FBOs in tracker

Bug: angleproject:6425
Change-Id: I39d22a6770290a0c407ac358b1c059c6a2ddeefa
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3269886
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Cody Northrop <cnorthrop@google.com>
Commit-Queue: Gert Wollny <gert.wollny@collabora.com>
This commit is contained in:
Gert Wollny 2021-11-09 11:16:07 +01:00 коммит произвёл Angle LUCI CQ
Родитель 9a36c3b6f1
Коммит 71bffb8af8
1 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -4984,6 +4984,18 @@ void FrameCaptureShared::maybeCapturePreCallUpdates(
break;
}
case EntryPoint::GLGenFramebuffers:
{
GLsizei count = call.params.getParam("n", ParamType::TGLsizei, 0).value.GLsizeiVal;
const gl::FramebufferID *framebufferIDs =
call.params.getParam("framebuffersPacked", ParamType::TFramebufferIDPointer, 1)
.value.FramebufferIDPointerVal;
for (GLsizei i = 0; i < count; i++)
{
handleGennedResource(framebufferIDs[i]);
}
break;
}
case EntryPoint::GLGenTextures:
{
GLsizei count = call.params.getParam("n", ParamType::TGLsizei, 0).value.GLsizeiVal;