Skip to content

Commit 02f6d99

Browse files
authored
Fix RenderDeviceGLImpl build for Web (#649)
1 parent 135fb03 commit 02f6d99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -668,8 +668,8 @@ void RenderDeviceGLImpl::InitAdapterInfo()
668668

669669
// Set graphics adapter properties
670670
{
671-
std::basic_string<GLubyte> glstrVendor = glGetString(GL_VENDOR);
672-
std::string Vendor = StrToLower(std::string(glstrVendor.begin(), glstrVendor.end()));
671+
const std::string glstrVendor = reinterpret_cast<const char*>(glGetString(GL_VENDOR));
672+
const std::string Vendor = StrToLower(glstrVendor);
673673
LOG_INFO_MESSAGE("GPU Vendor: ", Vendor);
674674

675675
for (size_t i = 0; i < _countof(m_AdapterInfo.Description) - 1 && i < glstrVendor.length(); ++i)

0 commit comments

Comments
 (0)