Field

Changeset 162:e023fb0f4382

Show
Ignore:
Timestamp:
08/23/2008 12:33:59 PM (5 months ago)
Author:
marc@e0.local
branch:
default
Message:

possible fix for OverlayCanvas? trouble in #96

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • development/java/field/core/plugins/drawing/opengl/BaseGLGraphicsContext.java

    r68 r162  
    205205        LateExecutingDrawing later = new LateExecutingDrawing(); 
    206206 
     207        private iLinearGraphicsContext wasContext; 
     208 
    207209        public void submitLine(CachedLine line, Dict properties) { 
    208210 
     
    241243        public void windowDisplayEnter() { 
    242244 
     245                wasContext = GLComponentWindow.currentContext; 
    243246                if (insideWindow) 
    244247                        GLComponentWindow.currentContext = this; 
     
    289292                for (Pair<CachedLine, Dict> p : needingCreating) { 
    290293                        later.prepLine(p.left, p.right); 
    291                          
     294 
    292295                        InternalLine line = create(p); 
    293296                        if (line != null) 
     
    295298                } 
    296299                for (Map.Entry<CachedLine, InternalLine> il : cache.entrySet()) { 
    297                  
     300 
    298301                        il.getValue().outputTo_list.open(); 
    299302                } 
     
    327330 
    328331                endQueue.update(); 
     332 
     333                if (insideWindow) 
     334                        GLComponentWindow.currentContext = wasContext; 
     335                else 
     336                        GLComponentWindow.fastContext = wasContext; 
    329337 
    330338        }