summaryrefslogtreecommitdiff
path: root/application.cpp
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2010-02-27 23:50:32 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2010-02-27 23:50:32 +0100
commit42fcaf7d7d374bdae934b5d9aeb32af964872681 (patch)
tree1b40bcaac0dff851aee603e221f840827c32acea /application.cpp
parent77361abc13c02469d41af5d937adf517ac5326b9 (diff)
Testing model-loading with assimp.
Diffstat (limited to 'application.cpp')
-rw-r--r--application.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/application.cpp b/application.cpp
index b49bcb9..a77577a 100644
--- a/application.cpp
+++ b/application.cpp
@@ -60,8 +60,11 @@ Application::Application() {
}
// Setup double buffering
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
+
+ SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 32);
+
// Get our surface
- surface = SDL_SetVideoMode(xsize * 2, ysize * 2, 32, flags);
+ surface = SDL_SetVideoMode(xsize, ysize, 32, flags);
if(!surface) {
throw(std::runtime_error("Video mode set failed"));
}