summaryrefslogtreecommitdiff
path: root/src/render
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-28 15:00:30 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-28 15:00:30 +0300
commitf71059ffcaa499841a1d326747e05e8bd965fdf6 (patch)
tree92d3df18f5647dd0778e7b90c98e00a784291973 /src/render
parent13b8e8d199b75ba104f27a943442893e09a180bd (diff)
downloadplus-f71059ffcaa499841a1d326747e05e8bd965fdf6.tar.gz
plus-f71059ffcaa499841a1d326747e05e8bd965fdf6.tar.bz2
plus-f71059ffcaa499841a1d326747e05e8bd965fdf6.tar.xz
plus-f71059ffcaa499841a1d326747e05e8bd965fdf6.zip
Improve a bit performance test in modernopengl.
Diffstat (limited to 'src/render')
-rw-r--r--src/render/modernopenglgraphics.cpp12
1 files changed, 7 insertions, 5 deletions
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