Skip to content

Commit

Permalink
Fix RenderDeviceGLImpl build for Web (#649)
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneko authored Jan 15, 2025
1 parent 135fb03 commit 02f6d99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -668,8 +668,8 @@ void RenderDeviceGLImpl::InitAdapterInfo()

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

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

0 comments on commit 02f6d99

Please sign in to comment.