Rename gfx_quads_as_triangles to gfx_quad_as_triangle and set default to 1

This commit is contained in:
def 2015-03-31 16:41:51 +02:00
parent 913d709bb2
commit 3c496c62e1
3 changed files with 8 additions and 8 deletions

View file

@ -109,7 +109,7 @@ void CGraphics_OpenGL::Flush()
for( unsigned i = 0, j = m_NumVertices; i < j; i += 4 )
glDrawArrays(GL_TRIANGLE_FAN, i, 4);
#else
if(g_Config.m_GfxQuadsAsTriangles)
if(g_Config.m_GfxQuadAsTriangle)
glDrawArrays(GL_TRIANGLES, 0, m_NumVertices);
else
glDrawArrays(GL_QUADS, 0, m_NumVertices);
@ -670,7 +670,7 @@ void CGraphics_OpenGL::QuadsDrawTL(const CQuadItem *pArray, int Num)
dbg_assert(m_Drawing == DRAWING_QUADS, "called Graphics()->QuadsDrawTL without begin");
if(g_Config.m_GfxQuadsAsTriangles)
if(g_Config.m_GfxQuadAsTriangle)
{
for(int i = 0; i < Num; ++i)
{
@ -758,7 +758,7 @@ void CGraphics_OpenGL::QuadsDrawFreeform(const CFreeformItem *pArray, int Num)
{
dbg_assert(m_Drawing == DRAWING_QUADS, "called Graphics()->QuadsDrawFreeform without begin");
if(g_Config.m_GfxQuadsAsTriangles)
if(g_Config.m_GfxQuadAsTriangle)
{
for(int i = 0; i < Num; ++i)
{

View file

@ -59,7 +59,7 @@ void CGraphics_Threaded::FlushVertices()
if(m_Drawing == DRAWING_QUADS)
{
if(g_Config.m_GfxQuadsAsTriangles)
if(g_Config.m_GfxQuadAsTriangle)
{
Cmd.m_PrimType = CCommandBuffer::PRIMTYPE_TRIANGLES;
Cmd.m_PrimCount = NumVerts/3;
@ -596,7 +596,7 @@ void CGraphics_Threaded::QuadsDrawTL(const CQuadItem *pArray, int Num)
dbg_assert(m_Drawing == DRAWING_QUADS, "called Graphics()->QuadsDrawTL without begin");
if(g_Config.m_GfxQuadsAsTriangles)
if(g_Config.m_GfxQuadAsTriangle)
{
for(int i = 0; i < Num; ++i)
{
@ -684,7 +684,7 @@ void CGraphics_Threaded::QuadsDrawFreeform(const CFreeformItem *pArray, int Num)
{
dbg_assert(m_Drawing == DRAWING_QUADS, "called Graphics()->QuadsDrawFreeform without begin");
if(g_Config.m_GfxQuadsAsTriangles)
if(g_Config.m_GfxQuadAsTriangle)
{
for(int i = 0; i < Num; ++i)
{

View file

@ -119,9 +119,9 @@ MACRO_CONFIG_INT(GfxThreadedOld, gfx_threaded_old, 1, 0, 1, CFGFLAG_SAVE|CFGFLAG
#endif
MACRO_CONFIG_INT(GfxTuneOverlay, gfx_tune_overlay, 20, 1, 100, CFGFLAG_SAVE|CFGFLAG_CLIENT, "Stop rendering text overlay in tuning zone in editor: high value = less details = more speed")
#if defined(__ANDROID__)
MACRO_CONFIG_INT(GfxQuadsAsTriangles, gfx_quads_as_triangles, 0, 0, 0, CFGFLAG_SAVE|CFGFLAG_CLIENT, "Render quads as triangles (fixes quad coloring on some GPUs)")
MACRO_CONFIG_INT(GfxQuadAsTriangle, gfx_quad_as_triangle, 0, 0, 0, CFGFLAG_SAVE|CFGFLAG_CLIENT, "Render quads as triangles (fixes quad coloring on some GPUs)")
#else
MACRO_CONFIG_INT(GfxQuadsAsTriangles, gfx_quads_as_triangles, 0, 0, 1, CFGFLAG_SAVE|CFGFLAG_CLIENT, "Render quads as triangles (fixes quad coloring on some GPUs)")
MACRO_CONFIG_INT(GfxQuadAsTriangle, gfx_quad_as_triangle, 1, 0, 1, CFGFLAG_SAVE|CFGFLAG_CLIENT, "Render quads as triangles (fixes quad coloring on some GPUs)")
#endif
MACRO_CONFIG_INT(InpMousesens, inp_mousesens, 100, 5, 100000, CFGFLAG_SAVE|CFGFLAG_CLIENT, "Mouse sensitivity")