From 02f6d998cc73f84e8ab8e70a445f326dde993515 Mon Sep 17 00:00:00 2001 From: Eugene Kozlov Date: Wed, 15 Jan 2025 01:00:59 +0100 Subject: [PATCH] Fix RenderDeviceGLImpl build for Web (#649) --- Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp b/Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp index d5e4387b8..89a245984 100644 --- a/Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp +++ b/Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp @@ -668,8 +668,8 @@ void RenderDeviceGLImpl::InitAdapterInfo() // Set graphics adapter properties { - std::basic_string glstrVendor = glGetString(GL_VENDOR); - std::string Vendor = StrToLower(std::string(glstrVendor.begin(), glstrVendor.end())); + const std::string glstrVendor = reinterpret_cast(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)