HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • Back to Ticket #268

Ticket #268: SDL-1.2-HG-2010-12-21_opengl_patch.diff

File SDL-1.2-HG-2010-12-21_opengl_patch.diff, 1001 bytes (added by umccullough, 5 years ago)

Patch to fix OpenGL view locking problem with SDL 1.2-HG

  • src/video/bwindow/SDL_BWin.h

    diff -r 930614179450 src/video/bwindow/SDL_BWin.h
    a b  
    113113                                SDL_GLView = new BGLView(Bounds(), "SDL GLView", 
    114114                                                B_FOLLOW_ALL_SIDES, (B_WILL_DRAW|B_FRAME_EVENTS), 
    115115                                                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); 
    117119                        } 
    118120                        if ( the_view != SDL_GLView ) { 
    119121                                if ( the_view ) { 
    … …  
    133135                        } 
    134136                        if ( the_view != SDL_View ) { 
    135137                                if ( the_view ) { 
    136 #if SDL_VIDEO_OPENGL 
    137                                         if ( the_view == SDL_GLView ) { 
    138                                                 SDL_GLView->UnlockGL(); 
    139                                         } 
    140 #endif 
    141138                                        RemoveChild(the_view); 
    142139                                } 
    143140                                AddChild(SDL_View); 
    144141                                the_view = SDL_View; 
    145142                        } 
    146143                } 
     144#if SDL_VIDEO_OPENGL 
     145                if ( the_view == SDL_GLView ) { 
     146                        SDL_GLView->UnlockGL(); 
     147                } 
     148#endif 
    147149                Unlock(); 
    148150                return(retval); 
    149151        } 

Download in other formats:

  • Original Format

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/