Just rename a variable

This commit is contained in:
Deve 2015-12-20 13:24:54 +01:00
parent 5020f3ca2e
commit 70aad3e265
2 changed files with 5 additions and 5 deletions

View File

@ -47,11 +47,11 @@ void CentralVideoSettings::init()
hasTextureCompression = false; hasTextureCompression = false;
hasUBO = false; hasUBO = false;
hasGS = false; hasGS = false;
hasSRGBCapableVisual = true;
m_GI_has_artifact = false;
m_GI_has_artifact = false;
m_need_rh_workaround = false; m_need_rh_workaround = false;
m_need_srgb_workaround = false; m_need_srgb_workaround = false;
m_need_srgb_visual_workaround = false;
// Call to glGetIntegerv should not be made if --no-graphics is used // Call to glGetIntegerv should not be made if --no-graphics is used
if (!ProfileWorld::isNoGraphics()) if (!ProfileWorld::isNoGraphics())
@ -194,7 +194,7 @@ void CentralVideoSettings::init()
GLint param = GL_SRGB; GLint param = GL_SRGB;
glGetFramebufferAttachmentParameteriv(GL_DRAW_FRAMEBUFFER, GL_BACK_LEFT, glGetFramebufferAttachmentParameteriv(GL_DRAW_FRAMEBUFFER, GL_BACK_LEFT,
GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING, &param); GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING, &param);
hasSRGBCapableVisual = (param == GL_SRGB); m_need_srgb_visual_workaround = (param != GL_SRGB);
} }
} }
} }
@ -226,7 +226,7 @@ bool CentralVideoSettings::needsRGBBindlessWorkaround() const
bool CentralVideoSettings::needsSRGBCapableVisualWorkaround() const bool CentralVideoSettings::needsSRGBCapableVisualWorkaround() const
{ {
return !hasSRGBCapableVisual; return m_need_srgb_visual_workaround;
} }
bool CentralVideoSettings::isARBGeometryShader4Usable() const bool CentralVideoSettings::isARBGeometryShader4Usable() const

View File

@ -41,10 +41,10 @@ private:
bool hasSSBO; bool hasSSBO;
bool hasImageLoadStore; bool hasImageLoadStore;
bool hasMultiDrawIndirect; bool hasMultiDrawIndirect;
bool hasSRGBCapableVisual;
bool m_need_rh_workaround; bool m_need_rh_workaround;
bool m_need_srgb_workaround; bool m_need_srgb_workaround;
bool m_need_srgb_visual_workaround;
bool m_GI_has_artifact; bool m_GI_has_artifact;
public: public:
void init(); void init();