File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Graphics/GraphicsEngineOpenGL/src Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments