| Index: ui/gl/gl_surface_glx.cc
|
| diff --git a/ui/gl/gl_surface_glx.cc b/ui/gl/gl_surface_glx.cc
|
| index 5acfc7c9d214560663cc7ad1649ececbe9eb3e3d..5ae9350ffe465033c481f78ae2ef5cebe93fe079 100644
|
| --- a/ui/gl/gl_surface_glx.cc
|
| +++ b/ui/gl/gl_surface_glx.cc
|
| @@ -582,6 +582,10 @@ PbufferGLSurfaceGLX::PbufferGLSurfaceGLX(const gfx::Size& size)
|
| : size_(size),
|
| config_(NULL),
|
| pbuffer_(0) {
|
| + // 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);
|
| }
|
|
|
| bool PbufferGLSurfaceGLX::Initialize() {
|
|
|