diff -r 930614179450 src/video/bwindow/SDL_BWin.h
|
a
|
b
|
|
| 113 | 113 | SDL_GLView = new BGLView(Bounds(), "SDL GLView", |
| 114 | 114 | B_FOLLOW_ALL_SIDES, (B_WILL_DRAW|B_FRAME_EVENTS), |
| 115 | 115 | gl_flags); |
| 116 | | SDL_GLView->EnableDirectMode(true); |
| | 116 | //TODO: Figure out why directmode isn't working |
| | 117 | //SDL_GLView->EnableDirectMode(true); |
| | 118 | SDL_GLView->EnableDirectMode(false); |
| 117 | 119 | } |
| 118 | 120 | if ( the_view != SDL_GLView ) { |
| 119 | 121 | if ( the_view ) { |
| … |
… |
|
| 133 | 135 | } |
| 134 | 136 | if ( the_view != SDL_View ) { |
| 135 | 137 | if ( the_view ) { |
| 136 | | #if SDL_VIDEO_OPENGL |
| 137 | | if ( the_view == SDL_GLView ) { |
| 138 | | SDL_GLView->UnlockGL(); |
| 139 | | } |
| 140 | | #endif |
| 141 | 138 | RemoveChild(the_view); |
| 142 | 139 | } |
| 143 | 140 | AddChild(SDL_View); |
| 144 | 141 | the_view = SDL_View; |
| 145 | 142 | } |
| 146 | 143 | } |
| | 144 | #if SDL_VIDEO_OPENGL |
| | 145 | if ( the_view == SDL_GLView ) { |
| | 146 | SDL_GLView->UnlockGL(); |
| | 147 | } |
| | 148 | #endif |
| 147 | 149 | Unlock(); |
| 148 | 150 | return(retval); |
| 149 | 151 | } |