summaryrefslogtreecommitdiffstats
path: root/gpu/pgl
diff options
context:
space:
mode:
Diffstat (limited to 'gpu/pgl')
-rw-r--r--gpu/pgl/command_buffer_pepper.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/gpu/pgl/command_buffer_pepper.cc b/gpu/pgl/command_buffer_pepper.cc
index 0c77d1e..f3f0aff 100644
--- a/gpu/pgl/command_buffer_pepper.cc
+++ b/gpu/pgl/command_buffer_pepper.cc
@@ -41,13 +41,18 @@ Buffer CommandBufferPepper::GetRingBuffer() {
}
CommandBuffer::State CommandBufferPepper::GetState() {
+ context_->waitForProgress = false;
+
if (NPERR_NO_ERROR != device_->flushContext(npp_, context_, NULL, NULL))
context_->error = NPDeviceContext3DError_GenericError;
+ context_->waitForProgress = true;
+
return ConvertState();
}
CommandBuffer::State CommandBufferPepper::Flush(int32 put_offset) {
+ context_->waitForProgress = true;
context_->putOffset = put_offset;
if (NPERR_NO_ERROR != device_->flushContext(npp_, context_, NULL, NULL))