summaryrefslogtreecommitdiff
path: root/application.cpp
diff options
context:
space:
mode:
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"));
}