mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Minor stuff
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user