Skip to content

Commit a484cf9

Browse files
committed
fix(renderer): should send response for CheckFramebufferStatus()
1 parent 96d718a commit a484cf9

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/client/per_process.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,14 @@ TrCommandBufferResponse *TrClientContextPerProcess::recvCommandBufferResponse(cl
735735
return resp != nullptr;
736736
};
737737
commandbufferResponseCv.wait_for(lock, chrono::milliseconds(timeout), check);
738+
739+
if (resp == nullptr) [[unlikely]]
740+
{
741+
cerr << "Timeout waiting for command buffer response() "
742+
<< "for contextId=" << context->id << ", requestId=" << requestId << endl;
743+
assert(false && "Timeout waiting for command buffer response.");
744+
return nullptr;
745+
}
738746
}
739747

740748
auto after = chrono::steady_clock::now();

src/renderer/render_api_opengles.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,6 +1030,7 @@ class RHI_OpenGL : public TrRenderHardwareInterface
10301030
CheckFramebufferStatusCommandBufferResponse res(req, ret);
10311031
if (TR_UNLIKELY(CheckError(req, reqContentRenderer) != GL_NO_ERROR || options.printsCall))
10321032
PrintDebugInfo(req, nullptr, &res, options);
1033+
reqContentRenderer->sendCommandBufferResponse(res);
10331034
}
10341035
TR_OPENGL_FUNC void OnCreateRenderbuffer(
10351036
CreateRenderbufferCommandBufferRequest *req,

0 commit comments

Comments
 (0)