add error messages.
This commit is contained in:
@@ -97,6 +97,7 @@ void Cursor::Draw(
|
||||
// Check buffers
|
||||
if (!bgraBuffer_ || !buffer_)
|
||||
{
|
||||
Debug::Error("Cursor::UpdateTexture() => no buffer.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -315,7 +315,8 @@ void Duplicator::Duplicate(UINT timeout)
|
||||
return;
|
||||
}
|
||||
|
||||
auto sharedTextureWrapper = device_->GetCompatibleSharedTexture(texture, lastFrameId_ % 2);
|
||||
//auto sharedTextureWrapper = device_->GetCompatibleSharedTexture(texture, lastFrameId_ % 2);
|
||||
auto sharedTextureWrapper = device_->GetCompatibleSharedTexture(texture, 0);
|
||||
if (!sharedTextureWrapper)
|
||||
{
|
||||
Debug::Error("Duplicator::Duplicate() => Shared texture is null.");
|
||||
|
||||
@@ -78,7 +78,7 @@ void Monitor::Render()
|
||||
const auto& sharedTextureWrapper = frame.texture;
|
||||
auto sharedTexture = sharedTextureWrapper->Lock();
|
||||
if (!sharedTexture) return;
|
||||
ScopedReleaser releaser([&] { sharedTextureWrapper->Unlock(); });
|
||||
ScopedReleaser sharedTextureReleaser([&] { sharedTextureWrapper->Unlock(); });
|
||||
|
||||
if (unityTexture_)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user