Minor stuff

This commit is contained in:
Henrik Rydgård
2026-03-01 12:09:43 +01:00
parent 6b3e4b7dd0
commit 5e6ec70280
3 changed files with 9 additions and 4 deletions
+5
View File
@@ -1775,6 +1775,11 @@ void GLQueueRunner::fbo_unbind() {
CHECK_GL_ERROR_IF_DEBUG();
}
std::string GLQueueRunner::GetGLString(int name) const {
auto it = glStrings_.find(name);
return it != glStrings_.end() ? it->second : "";
}
GLRFramebuffer::~GLRFramebuffer() {
if (handle == 0 && z_stencil_buffer == 0 && z_buffer == 0 && stencil_buffer == 0)
return;
+1 -4
View File
@@ -370,10 +370,7 @@ public:
return sawOutOfMemory_;
}
std::string GetGLString(int name) const {
auto it = glStrings_.find(name);
return it != glStrings_.end() ? it->second : "";
}
std::string GetGLString(int name) const;
private:
void InitCreateFramebuffer(const GLRInitStep &step);
+3
View File
@@ -195,6 +195,9 @@ u32 GPU_GLES::CheckGPUFeatures() const {
void GPU_GLES::BuildReportingInfo() {
GLRenderManager *render = (GLRenderManager *)draw_->GetNativeObject(Draw::NativeObject::RENDER_MANAGER);
if (!render) {
return;
}
std::string glVendor = render->GetGLString(GL_VENDOR);
std::string glRenderer = render->GetGLString(GL_RENDERER);