mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Windows: cefclient: Create a new D3D11 device for each browser (issue #2538)
This fixes a texture resizing issue when creating multiple windows with OSR and shared textures enabled.
This commit is contained in:
@@ -7,8 +7,6 @@
|
||||
#include <direct.h>
|
||||
#include <shlobj.h>
|
||||
|
||||
#include "tests/cefclient/browser/osr_d3d11_win.h"
|
||||
|
||||
namespace client {
|
||||
|
||||
std::string MainContextImpl::GetDownloadPath(const std::string& file_name) {
|
||||
@@ -38,11 +36,4 @@ std::string MainContextImpl::GetAppWorkingDirectory() {
|
||||
return szWorkingDir;
|
||||
}
|
||||
|
||||
std::shared_ptr<d3d11::Device> MainContextImpl::GetD3D11Device() {
|
||||
CEF_REQUIRE_UI_THREAD();
|
||||
if (!d3d11_device_)
|
||||
d3d11_device_ = d3d11::Device::create();
|
||||
return d3d11_device_;
|
||||
}
|
||||
|
||||
} // namespace client
|
||||
|
Reference in New Issue
Block a user