Index: ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc |
diff --git a/ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc b/ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc |
index 48f6ed1d4d62739215573a00d4f41e8c90465ce0..db39d35d0d0b1ce5e8d904f1d4dc9362cead356c 100644 |
--- a/ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc |
+++ b/ppapi/thunk/ppb_graphics_3d_trusted_thunk.cc |
@@ -24,10 +24,11 @@ PP_Resource CreateRaw(PP_Instance instance, |
PP_Resource share_context, |
const int32_t* attrib_list) { |
EnterResourceCreation enter(instance); |
- if (enter.failed()) |
+ EnterGraphics3D enter_share(share_context, true); |
piman
2012/05/16 23:38:45
same here, NoLock.
(scshunt)
2012/05/17 16:55:45
Ok.
|
+ if (enter.failed() || enter_share.failed()) |
return 0; |
return enter.functions()->CreateGraphics3DRaw( |
- instance, share_context, attrib_list); |
+ instance, enter_share.object(), attrib_list); |
} |
PP_Bool InitCommandBuffer(PP_Resource context) { |