Ignore:
Timestamp:
Sep 10, 2010, 12:26:39 AM (10 years ago)
Author:
sam
Message:

Activate depth buffer when the GL context is created.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/test-map.cpp

    r203 r206  
    3131    }
    3232
     33    SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
     34    SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 16);
    3335    SDL_Surface *video = SDL_SetVideoMode(640, 480, 0, SDL_OPENGL);
    3436    if (!video)
Note: See TracChangeset for help on using the changeset viewer.