Commit 04d0646c by Geoff Lang Committed by Commit Bot

Support GL_NV_fence in the NULL backend.

BUG=770696 Change-Id: Ice5345eddc4cec61cd5ce33a7cd5d45fa68379a5 Reviewed-on: https://chromium-review.googlesource.com/695918Reviewed-by: 's avatarCorentin Wallez <cwallez@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>
parent 50cac57a
...@@ -68,6 +68,7 @@ ContextNULL::ContextNULL(const gl::ContextState &state, AllocationTrackerNULL *a ...@@ -68,6 +68,7 @@ ContextNULL::ContextNULL(const gl::ContextState &state, AllocationTrackerNULL *a
mCaps = GenerateMinimumCaps(maxClientVersion); mCaps = GenerateMinimumCaps(maxClientVersion);
mExtensions = gl::Extensions(); mExtensions = gl::Extensions();
mExtensions.fence = true;
mExtensions.copyTexture = true; mExtensions.copyTexture = true;
mExtensions.copyCompressedTexture = true; mExtensions.copyCompressedTexture = true;
......
...@@ -24,20 +24,18 @@ FenceNVNULL::~FenceNVNULL() ...@@ -24,20 +24,18 @@ FenceNVNULL::~FenceNVNULL()
gl::Error FenceNVNULL::set(GLenum condition) gl::Error FenceNVNULL::set(GLenum condition)
{ {
UNIMPLEMENTED(); return gl::NoError();
return gl::InternalError();
} }
gl::Error FenceNVNULL::test(GLboolean *outFinished) gl::Error FenceNVNULL::test(GLboolean *outFinished)
{ {
UNIMPLEMENTED(); *outFinished = GL_TRUE;
return gl::InternalError(); return gl::NoError();
} }
gl::Error FenceNVNULL::finish() gl::Error FenceNVNULL::finish()
{ {
UNIMPLEMENTED(); return gl::NoError();
return gl::InternalError();
} }
} // namespace rx } // namespace rx
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment