summaryrefslogtreecommitdiff
path: root/src/openglgraphics.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2006-05-03 13:38:20 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2006-05-03 13:38:20 +0000
commitc74ed8da3751f85b4bfb235b055f404f5340eae7 (patch)
tree56462755320b0bd98cb826e533fecfbbe3d3e0b1 /src/openglgraphics.cpp
parent3297165f99f0dac7a453f180e1bef05782da2c6e (diff)
downloadmana-c74ed8da3751f85b4bfb235b055f404f5340eae7.tar.gz
mana-c74ed8da3751f85b4bfb235b055f404f5340eae7.tar.bz2
mana-c74ed8da3751f85b4bfb235b055f404f5340eae7.tar.xz
mana-c74ed8da3751f85b4bfb235b055f404f5340eae7.zip
Increased fps limit granularity and cleaned some code, fixed some xml library name in Dev-C++ project file, switched version to 0.0.20.
Diffstat (limited to 'src/openglgraphics.cpp')
-rw-r--r--src/openglgraphics.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/openglgraphics.cpp b/src/openglgraphics.cpp
index 9de59f79..1e8918cb 100644
--- a/src/openglgraphics.cpp
+++ b/src/openglgraphics.cpp
@@ -37,8 +37,6 @@
#include "resources/image.h"
-extern volatile int framesToDraw;
-
OpenGLGraphics::OpenGLGraphics():
mAlpha(false), mTexture(false), mColorAlpha(false)
{
@@ -108,15 +106,6 @@ void OpenGLGraphics::updateScreen()
glFlush();
glFinish();
SDL_GL_SwapBuffers();
-
- // Decrement frame counter when using framerate limiting
- if (framesToDraw > 1) framesToDraw--;
-
- // Wait while we're not allowed to draw next frame yet
- while (framesToDraw == 1)
- {
- SDL_Delay(10);
- }
}
void OpenGLGraphics::_beginDraw()