Mercurial > sdl-ios-xcode
comparison src/video/bwindow/SDL_BWin.h @ 4013:5804139bdf0b SDL-1.2
Use GL direct updates when possible
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 07 Jul 2007 19:22:27 +0000 |
parents | 4e29535b821b |
children | a1b03ba2fcd0 |
comparison
equal
deleted
inserted
replaced
4012:4e29535b821b | 4013:5804139bdf0b |
---|---|
111 #if SDL_VIDEO_OPENGL | 111 #if SDL_VIDEO_OPENGL |
112 if ( SDL_GLView == NULL ) { | 112 if ( SDL_GLView == NULL ) { |
113 SDL_GLView = new BGLView(Bounds(), "SDL GLView", | 113 SDL_GLView = new BGLView(Bounds(), "SDL GLView", |
114 B_FOLLOW_ALL_SIDES, (B_WILL_DRAW|B_FRAME_EVENTS), | 114 B_FOLLOW_ALL_SIDES, (B_WILL_DRAW|B_FRAME_EVENTS), |
115 gl_flags); | 115 gl_flags); |
116 SDL_GLView->EnableDirectMode(true); | |
116 } | 117 } |
117 if ( the_view != SDL_GLView ) { | 118 if ( the_view != SDL_GLView ) { |
118 if ( the_view ) { | 119 if ( the_view ) { |
119 RemoveChild(the_view); | 120 RemoveChild(the_view); |
120 } | 121 } |