Index: trunk/src/webkit/gpu/context_provider_in_process.cc |
=================================================================== |
--- trunk/src/webkit/gpu/context_provider_in_process.cc (revision 189974) |
+++ trunk/src/webkit/gpu/context_provider_in_process.cc (working copy) |
@@ -60,8 +60,9 @@ |
attributes.noAutomaticFlushes = true; |
context3d_.reset( |
- new webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl( |
- attributes)); |
+ new webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl()); |
+ if (!context3d_->Initialize(attributes, NULL)) |
+ context3d_.reset(); |
return context3d_; |
} |