}
+Context::~Context()
+{
+ //assert(this != getCurrentContext());
+ if (this != getCurrentContext()) {
+ delete wsContext;
+ }
+}
+
+
static thread_specific Context *
currentContextPtr;
return false;
}
- if (currentContext) {
- currentContext->drawable = NULL;
- }
currentContextPtr = context;
if (drawable && context) {