|
@@ -73,7 +73,7 @@ public:
|
|
|
CefWindowInfo windowInfo;
|
|
CefWindowInfo windowInfo;
|
|
|
CefBrowserSettings browserSettings;
|
|
CefBrowserSettings browserSettings;
|
|
|
|
|
|
|
|
- //browserSettings.webgl = STATE_ENABLED;
|
|
|
|
|
|
|
+ browserSettings.webgl = STATE_ENABLED;
|
|
|
|
|
|
|
|
windowInfo.width = width;
|
|
windowInfo.width = width;
|
|
|
windowInfo.height = height;
|
|
windowInfo.height = height;
|
|
@@ -92,7 +92,7 @@ public:
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef ATOMIC_PLATFORM_WINDOWS
|
|
#ifdef ATOMIC_PLATFORM_WINDOWS
|
|
|
- windowInfo.SetAsWindowless(info.info.win.window, false);
|
|
|
|
|
|
|
+ windowInfo.SetAsWindowless(info.info.win.window, false);
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
webClient_->renderHandler_->SetSize(width, height);
|
|
webClient_->renderHandler_->SetSize(width, height);
|
|
@@ -166,6 +166,9 @@ WebClient::WebClient(Context* context) : Object(context)
|
|
|
|
|
|
|
|
WebClient::~WebClient()
|
|
WebClient::~WebClient()
|
|
|
{
|
|
{
|
|
|
|
|
+ if (d_)
|
|
|
|
|
+ d_->CloseBrowser(true);
|
|
|
|
|
+
|
|
|
renderHandler_ = 0;
|
|
renderHandler_ = 0;
|
|
|
//d_->Release();
|
|
//d_->Release();
|
|
|
}
|
|
}
|