Commit 306f10df authored by dnicoara@chromium.org's avatar dnicoara@chromium.org

Blacklist (0,0) sized offscreen surfaces on Windows

BUG=381041

Review URL: https://codereview.chromium.org/341673002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@277969 0039d316-1c4b-4281-b951-d872f2087c98
parent 80ce83bc
...@@ -285,6 +285,10 @@ PbufferGLSurfaceWGL::PbufferGLSurfaceWGL(const gfx::Size& size) ...@@ -285,6 +285,10 @@ PbufferGLSurfaceWGL::PbufferGLSurfaceWGL(const gfx::Size& size)
: size_(size), : size_(size),
device_context_(NULL), device_context_(NULL),
pbuffer_(NULL) { pbuffer_(NULL) {
// Some implementations of Pbuffer do not support having a 0 size. For such
// cases use a (1, 1) surface.
if (size_.GetArea() == 0)
size_.SetSize(1, 1);
} }
PbufferGLSurfaceWGL::~PbufferGLSurfaceWGL() { PbufferGLSurfaceWGL::~PbufferGLSurfaceWGL() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment