| Index: ppapi/tests/test_graphics_3d.cc
|
| diff --git a/ppapi/tests/test_graphics_3d.cc b/ppapi/tests/test_graphics_3d.cc
|
| index 987d5a8bae9bcf3151aed2719835fcc48b90ad0f..61bedbf198b2730e67caed19e31fcd3a1b251004 100644
|
| --- a/ppapi/tests/test_graphics_3d.cc
|
| +++ b/ppapi/tests/test_graphics_3d.cc
|
| @@ -137,11 +137,8 @@ std::string TestGraphics3D::TestExtensionsGL() {
|
|
|
| int32_t TestGraphics3D::SwapBuffersSync(pp::Graphics3D* context) {
|
| TestCompletionCallback callback(instance_->pp_instance(), callback_type());
|
| - int32_t rv = context->SwapBuffers(callback.GetCallback());
|
| - if (rv != PP_OK_COMPLETIONPENDING)
|
| - return rv;
|
| -
|
| - return callback.WaitForResult();
|
| + callback.WaitForResult(context->SwapBuffers(callback.GetCallback()));
|
| + return callback.result();
|
| }
|
|
|
| std::string TestGraphics3D::CheckPixelPPAPI(
|
|
|