Changeset 171 for trunk/src/gl/gl_device.cc
- Timestamp:
- 07/18/13 00:50:12 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gl/gl_device.cc
r170 r171 31 31 } 32 32 33 #if NV_SDL_VERSION == NV_SDL_12 33 34 m_info = SDL_GetVideoInfo( ); 34 35 … … 38 39 return; // TODO: Error report 39 40 } 41 #endif 40 42 41 43 // bpp = m_info->vfmt->BitsPerPixel; … … 49 51 SDL_GL_SetAttribute( SDL_GL_MULTISAMPLEBUFFERS, 1 ); 50 52 SDL_GL_SetAttribute( SDL_GL_MULTISAMPLESAMPLES, 4 ); 53 54 #if NV_SDL_VERSION == NV_SDL_20 55 SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2); 56 SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 1); 57 SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); 58 SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24); 59 #endif 51 60 52 61 }
Note: See TracChangeset
for help on using the changeset viewer.