| Index: ui/gfx/gl/gl_context_osmesa.cc
|
| diff --git a/ui/gfx/gl/gl_context_osmesa.cc b/ui/gfx/gl/gl_context_osmesa.cc
|
| index 0db285f38dd86d4bd52aa004cc130aa13809e984..4e145ac400f456128890d4f9e0a86ca60ccaf424 100644
|
| --- a/ui/gfx/gl/gl_context_osmesa.cc
|
| +++ b/ui/gfx/gl/gl_context_osmesa.cc
|
| @@ -29,6 +29,7 @@ bool GLContextOSMesa::Initialize(GLSurface* compatible_surface) {
|
|
|
| GLuint format =
|
| static_cast<GLSurfaceOSMesa*>(compatible_surface)->GetFormat();
|
| + DCHECK_NE(format, (unsigned)0);
|
| context_ = OSMesaCreateContextExt(format,
|
| 0, // depth bits
|
| 0, // stencil bits
|
| @@ -54,7 +55,7 @@ bool GLContextOSMesa::MakeCurrent(GLSurface* surface) {
|
|
|
| gfx::Size size = surface->GetSize();
|
|
|
| - if (!OSMesaMakeCurrent(static_cast<OSMesaContext>(context_),
|
| + if (!OSMesaMakeCurrent(context_,
|
| surface->GetHandle(),
|
| GL_UNSIGNED_BYTE,
|
| size.width(),
|
|
|