Skip to content

Commit c257157

Browse files
bghgaryCopilot
andcommitted
Trim UpdateDevice exception message to a simple statement
Exception messages should describe what went wrong; how to recover belongs in the API doc-comment (which Device.h already has). Aligns with the simple- statement style of the other DeviceImpl exception messages. [Created by Copilot on behalf of @bghgary] Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 9e8ab8b commit c257157

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Core/Graphics/Source/DeviceImpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ namespace Babylon::Graphics
110110
std::scoped_lock lock{m_state.Mutex};
111111
if (m_state.Bgfx.Initialized)
112112
{
113-
throw std::runtime_error{"UpdateDevice called while rendering is enabled. Call DisableRendering first; the new device will take effect on the next EnableRendering / StartRenderingCurrentFrame."};
113+
throw std::runtime_error{"UpdateDevice called while rendering is enabled."};
114114
}
115115
m_state.Bgfx.InitState.platformData.context = device;
116116
m_state.Bgfx.Dirty = true;

0 commit comments

Comments
 (0)