DrawableMap::const_iterator it;
it = drawable_map.find(drawable_id);
if (it == drawable_map.end()) {
- return (drawable_map[drawable_id] = ws->createDrawable(visual));
+ return (drawable_map[drawable_id] = glws::createDrawable(visual));
}
return it->second;
it = context_map.find(ctx);
if (it == context_map.end()) {
glws::Context *context;
- context_map[ctx] = context = ws->createContext(visual, sharedContext);
+ context_map[ctx] = context = glws::createContext(visual, sharedContext);
if (!sharedContext) {
sharedContext = context;
}
glws::Drawable *new_drawable = getDrawable(ctx);
glws::Context *new_context = getContext(ctx);
- bool result = ws->makeCurrent(new_drawable, new_context);
+ bool result = glws::makeCurrent(new_drawable, new_context);
if (new_drawable && new_context && result) {
drawable = new_drawable;