comparison Framework/OpenGL/WebAssemblyOpenGLContext.cpp @ 961:92e32e263ae9 toa2019082601

Removed log in IsContextLost (too many calls) + removed glGetError guards on calls (expensive) + added shared_ptr ref count dump in LoaderCache (still needs to figure that one out)
author Benjamin Golinvaux <bgo@osimis.io>
date Mon, 26 Aug 2019 11:01:53 +0200
parents 769249e1f3b4
children d6b83ee3a950
comparison
equal deleted inserted replaced
960:733be18fe140 961:92e32e263ae9
69 return reinterpret_cast<void*>(context_); 69 return reinterpret_cast<void*>(context_);
70 } 70 }
71 71
72 bool IsContextLost() 72 bool IsContextLost()
73 { 73 {
74 LOG(TRACE) << "IsContextLost() for context " << std::hex << context_ << std::dec; 74 //LOG(TRACE) << "IsContextLost() for context " << std::hex << context_ << std::dec;
75 bool apiFlag = (emscripten_is_webgl_context_lost(context_) != 0); 75 bool apiFlag = (emscripten_is_webgl_context_lost(context_) != 0);
76 isContextLost_ = apiFlag; 76 isContextLost_ = apiFlag;
77 return isContextLost_; 77 return isContextLost_;
78 } 78 }
79 79