Skip to content

Commit d72cca4

Browse files
AdmenriAdev
andauthored
OpenGL: enhance adapter description (#677)
Co-authored-by: Adev <[email protected]>
1 parent d801f19 commit d72cca4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -674,12 +674,14 @@ void RenderDeviceGLImpl::InitAdapterInfo()
674674

675675
// Set graphics adapter properties
676676
{
677-
const std::string glstrVendor = reinterpret_cast<const char*>(glGetString(GL_VENDOR));
678-
const std::string Vendor = StrToLower(glstrVendor);
677+
const std::string glstrVendor = reinterpret_cast<const char*>(glGetString(GL_VENDOR));
678+
const std::string glstrRenderer = reinterpret_cast<const char*>(glGetString(GL_RENDERER));
679+
const std::string Vendor = StrToLower(glstrVendor);
679680
LOG_INFO_MESSAGE("GPU Vendor: ", Vendor);
681+
LOG_INFO_MESSAGE("GPU Renderer: ", glstrRenderer);
680682

681-
for (size_t i = 0; i < _countof(m_AdapterInfo.Description) - 1 && i < glstrVendor.length(); ++i)
682-
m_AdapterInfo.Description[i] = glstrVendor[i];
683+
for (size_t i = 0; i < _countof(m_AdapterInfo.Description) - 1 && i < glstrRenderer.length(); ++i)
684+
m_AdapterInfo.Description[i] = glstrRenderer[i];
683685

684686
m_AdapterInfo.Type = ADAPTER_TYPE_UNKNOWN;
685687
m_AdapterInfo.VendorId = 0;

0 commit comments

Comments
 (0)