| Index: ui/gl/gl_surface_wgl.cc
|
| diff --git a/ui/gl/gl_surface_wgl.cc b/ui/gl/gl_surface_wgl.cc
|
| index e301bce6b037a0bdbd28dde06995d403481c09c9..23391eada1e3cf3be59f3898530261dd9bf30404 100644
|
| --- a/ui/gl/gl_surface_wgl.cc
|
| +++ b/ui/gl/gl_surface_wgl.cc
|
| @@ -285,6 +285,10 @@ PbufferGLSurfaceWGL::PbufferGLSurfaceWGL(const gfx::Size& size)
|
| : size_(size),
|
| device_context_(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() {
|
|
|