mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Fix slow down on Adreno 540 GPUs.
This commit is contained in:
parent
d841854023
commit
05295254b6
|
@ -478,7 +478,7 @@ struct FramebufferTextureFormatsGLES3 : public graphics::FramebufferTextureForma
|
|||
protected:
|
||||
void init() override
|
||||
{
|
||||
if (m_glinfo.renderer == Renderer::Adreno500) {
|
||||
if (m_glinfo.renderer == Renderer::Adreno530) {
|
||||
colorInternalFormat = GL_RGBA32F;
|
||||
colorFormat = GL_RGBA;
|
||||
colorType = GL_FLOAT;
|
||||
|
|
|
@ -27,8 +27,11 @@ void GLInfo::init() {
|
|||
LOG(LOG_VERBOSE, "OpenGL vendor: %s\n", glGetString(GL_VENDOR));
|
||||
const GLubyte * strRenderer = glGetString(GL_RENDERER);
|
||||
|
||||
if (std::regex_match(std::string((const char*)strRenderer), std::regex("Adreno.*5\\d\\d") ))
|
||||
renderer = Renderer::Adreno500;
|
||||
if (std::regex_match(std::string((const char*)strRenderer), std::regex("Adreno.*530")))
|
||||
renderer = Renderer::Adreno530;
|
||||
else if (std::regex_match(std::string((const char*)strRenderer), std::regex("Adreno.*540")) ||
|
||||
std::regex_match(std::string((const char*)strRenderer), std::regex("Adreno.*6\\d\\d")))
|
||||
renderer = Renderer::Adreno_no_bugs;
|
||||
else if (strstr((const char*)strRenderer, "Adreno") != nullptr)
|
||||
renderer = Renderer::Adreno;
|
||||
else if (strstr((const char*)strRenderer, "VideoCore IV") != nullptr)
|
||||
|
|
|
@ -4,7 +4,8 @@
|
|||
namespace opengl {
|
||||
|
||||
enum class Renderer {
|
||||
Adreno500,
|
||||
Adreno530,
|
||||
Adreno_no_bugs,
|
||||
Adreno,
|
||||
VideoCore,
|
||||
Intel,
|
||||
|
|
Loading…
Reference in New Issue
Block a user