Lines Matching refs:current
39 gl::Current *current = new gl::Current; in glAttachThread() local
41 if(current) in glAttachThread()
43 sw::Thread::setLocalStorage(currentTLS, current); in glAttachThread()
45 current->context = 0; in glAttachThread()
46 current->display = 0; in glAttachThread()
47 current->drawSurface = 0; in glAttachThread()
48 current->readSurface = 0; in glAttachThread()
56 gl::Current *current = (gl::Current*)sw::Thread::getLocalStorage(currentTLS); in glDetachThread() local
58 if(current) in glDetachThread()
60 delete current; in glDetachThread()
169 Current *current = (Current*)sw::Thread::getLocalStorage(currentTLS); in getCurrent() local
171 if(!current) in getCurrent()
181 Current *current = getCurrent(); in makeCurrent() local
183 current->context = context; in makeCurrent()
184 current->display = display; in makeCurrent()
194 Current *current = getCurrent(); in getContext() local
196 return current->context; in getContext()
201 Current *current = getCurrent(); in getDisplay() local
203 return current->display; in getDisplay()
215 Current *current = getCurrent(); in setCurrentDisplay() local
217 current->display = dpy; in setCurrentDisplay()
222 Current *current = getCurrent(); in setCurrentContext() local
224 current->context = ctx; in setCurrentContext()
229 Current *current = getCurrent(); in setCurrentDrawSurface() local
231 current->drawSurface = surface; in setCurrentDrawSurface()
236 Current *current = getCurrent(); in getCurrentDrawSurface() local
238 return current->drawSurface; in getCurrentDrawSurface()
243 Current *current = getCurrent(); in setCurrentReadSurface() local
245 current->readSurface = surface; in setCurrentReadSurface()
250 Current *current = getCurrent(); in getCurrentReadSurface() local
252 return current->readSurface; in getCurrentReadSurface()