Index: o3d/gpu_plugin/command_buffer.cc |
=================================================================== |
--- o3d/gpu_plugin/command_buffer.cc (revision 26857) |
+++ o3d/gpu_plugin/command_buffer.cc (working copy) |
@@ -11,7 +11,9 @@ |
: npp_(npp), |
size_(0), |
get_offset_(0), |
- put_offset_(0) { |
+ put_offset_(0), |
+ token_(0), |
+ error_(ERROR_NO_ERROR) { |
// Element zero is always NULL. |
registered_objects_.push_back(NPObjectPointer<NPObject>()); |
} |
@@ -152,5 +154,11 @@ |
return registered_objects_[handle]; |
} |
+int32 CommandBuffer::ResetError() { |
+ int32 last_error = error_; |
+ error_ = ERROR_NO_ERROR; |
+ return last_error; |
+} |
+ |
} // namespace gpu_plugin |
} // namespace o3d |