From f71059ffcaa499841a1d326747e05e8bd965fdf6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 28 Jun 2014 15:00:30 +0300 Subject: Improve a bit performance test in modernopengl. --- src/render/modernopenglgraphics.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/render/modernopenglgraphics.cpp') diff --git a/src/render/modernopenglgraphics.cpp b/src/render/modernopenglgraphics.cpp index 3595d6a78..ae121be85 100644 --- a/src/render/modernopenglgraphics.cpp +++ b/src/render/modernopenglgraphics.cpp @@ -355,8 +355,8 @@ void ModernOpenGLGraphics::testDraw() // logger->log("allocate: %d, %ld", mVboCached, sizeof(vertices)); // logger->log("allocate ebo: %d, %ld", mEboCached, sizeof(elements)); - mglBufferData(GL_ARRAY_BUFFER, sizeof(vertices), - vertices, GL_STREAM_DRAW); +// mglBufferData(GL_ARRAY_BUFFER, sizeof(vertices), +// vertices, GL_STREAM_DRAW); // mglBufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(elements), // elements, GL_STREAM_DRAW); #ifdef DEBUG_DRAW_CALLS @@ -832,15 +832,17 @@ void ModernOpenGLGraphics::beginDraw() glDisable(GL_COLOR_LOGIC_OP); glDisable(GL_COLOR_MATERIAL); glDisable(GL_STENCIL_TEST); - glEnable(GL_TEXTURE_2D); +// glEnable(GL_TEXTURE_2D); + glDisable(GL_LINE_SMOOTH); + glDisable(GL_POLYGON_SMOOTH); glShadeModel(GL_FLAT); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); #ifndef ANDROID - glHint(GL_LINE_SMOOTH_HINT, GL_FASTEST); - glHint(GL_POLYGON_SMOOTH_HINT, GL_FASTEST); +// glHint(GL_LINE_SMOOTH_HINT, GL_FASTEST); +// glHint(GL_POLYGON_SMOOTH_HINT, GL_FASTEST); #ifndef __MINGW32__ glHint(GL_TEXTURE_COMPRESSION_HINT, GL_FASTEST); #endif -- cgit v1.2.3-70-g09d2