Commit 2b31af29 by Geoff Lang

Remove the ES version check for buffer to texture copies in D3D11.

With PBOs being exposed through an extension in ES2 now, this check is uneccessary. Change-Id: I609a4bcd944194d104e0774e5f6ea34e072c8d9c Reviewed-on: https://chromium-review.googlesource.com/201320Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Tested-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent 13f7d7dc
......@@ -2804,13 +2804,9 @@ FenceImpl *Renderer11::createFence()
bool Renderer11::supportsFastCopyBufferToTexture(GLenum internalFormat) const
{
int clientVersion = getCurrentClientVersion();
ASSERT(getCaps().extensions.pixelBufferObject);
// We only support buffer to texture copies in ES3
if (clientVersion <= 2)
{
return false;
}
GLuint clientVersion = getCurrentClientVersion();
// sRGB formats do not work with D3D11 buffer SRVs
if (gl::GetColorEncoding(internalFormat, clientVersion) == GL_SRGB)
......
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