Skip to content

Commit

Permalink
++
Browse files Browse the repository at this point in the history
  • Loading branch information
lhog committed Dec 14, 2024
1 parent 490f369 commit daf240b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rts/Rendering/ModelsDataUploader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ void TransformsUploader::InitDerived()
if (ssbo->GetBufferImplementation() == IStreamBufferConcept::Types::SB_PERSISTENTMAP && !ssbo->IsValid()) {
// some potatoe driver overestimated its support for SB_PERSISTENTMAP
// Redo with good old SB_BUFFERSUBDATA
LOG_L(L_ERROR, "[MatrixUploader::%s] OpenGL reported persistent mapping to be available, but initial mapping of buffer failed. Falling back.", __func__);
LOG_L(L_ERROR, "[%s::%s] OpenGL reported persistent mapping to be available, but initial mapping of buffer failed. Falling back.", className, __func__);
KillImpl();
InitImpl(MATRIX_SSBO_BINDING_IDX, ELEM_COUNT0, ELEM_COUNTI, IStreamBufferConcept::Types::SB_BUFFERSUBDATA, true, TransformsMemStorage::BUFFERING);
}
Expand All @@ -136,7 +136,7 @@ void TransformsUploader::UpdateDerived()
if (!globalRendering->haveGL4)
return;

SCOPED_TIMER("MatrixUploader::Update");
SCOPED_TIMER("TransformsUploader::Update");
ssbo->UnbindBufferRange(bindingIdx);

auto lock = CModelsLock::GetScopedLock();
Expand All @@ -150,7 +150,7 @@ void TransformsUploader::UpdateDerived()
ssbo->Resize(newElemCount);

if (ssbo->GetBufferImplementation() == IStreamBufferConcept::Types::SB_PERSISTENTMAP && !ssbo->IsValid()) {
LOG_L(L_ERROR, "[MatrixUploader::%s] OpenGL reported persistent mapping to be available, but mapping of buffer of %u size failed. Falling back.", __func__, uint32_t(newElemCount * sizeof(CMatrix44f)));
LOG_L(L_ERROR, "[%s::%s] OpenGL reported persistent mapping to be available, but mapping of buffer of %u size failed. Falling back.", className, __func__, uint32_t(newElemCount * sizeof(CMatrix44f)));
KillImpl();
InitImpl(MATRIX_SSBO_BINDING_IDX, newElemCount, ELEM_COUNTI, IStreamBufferConcept::Types::SB_BUFFERSUBDATA, true, TransformsMemStorage::BUFFERING);
}
Expand Down

0 comments on commit daf240b

Please sign in to comment.