Home | History | Annotate | Download | only in libGLESv2

Lines Matching refs:Current

19 Current *AllocateCurrent()
21 Current *current = (Current*)LocalAlloc(LPTR, sizeof(Current));
23 if (!current)
30 TlsSetValue(currentTLS, current);
32 current->context = NULL;
33 current->display = NULL;
35 return current;
40 void *current = TlsGetValue(currentTLS);
42 if (current)
44 LocalFree((HLOCAL)current);
90 Current *GetCurrentData()
92 Current *current = (Current*)TlsGetValue(currentTLS);
95 // thread local storage (current) might not exist yet.
96 return (current ? current : AllocateCurrent());
101 Current *current = GetCurrentData();
103 current->context = context;
104 current->display = display;
114 Current *current = GetCurrentData();
116 return current->context;
140 Current *current = GetCurrentData();
142 return current->display;