Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit fb9c05c

Browse files
committed
Allow 3d texture layers for framebuffer blit
b/135141616 Change-Id: Ia3c804c0bef7a000a54359d24dcd8bacc063a121 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/33508 Tested-by: Lingfeng Yang <lfy@google.com> Kokoro-Presubmit: Lingfeng Yang <lfy@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by: Nicolas Capens <nicolascapens@google.com>
1 parent 762741b commit fb9c05c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/OpenGL/libGLESv2/Context.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4180,8 +4180,8 @@ void Context::blitFramebuffer(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1
41804180
{
41814181
GLenum readColorbufferType = readFramebuffer->getReadBufferType();
41824182
GLenum drawColorbufferType = drawFramebuffer->getColorbufferType(0);
4183-
const bool validReadType = readColorbufferType == GL_TEXTURE_2D || readColorbufferType == GL_TEXTURE_RECTANGLE_ARB || Framebuffer::IsRenderbuffer(readColorbufferType);
4184-
const bool validDrawType = drawColorbufferType == GL_TEXTURE_2D || drawColorbufferType == GL_TEXTURE_RECTANGLE_ARB || Framebuffer::IsRenderbuffer(drawColorbufferType);
4183+
const bool validReadType = readColorbufferType == GL_TEXTURE_2D || readColorbufferType == GL_TEXTURE_RECTANGLE_ARB || readColorbufferType == GL_TEXTURE_2D_ARRAY || readColorbufferType == GL_TEXTURE_3D || Framebuffer::IsRenderbuffer(readColorbufferType);
4184+
const bool validDrawType = drawColorbufferType == GL_TEXTURE_2D || drawColorbufferType == GL_TEXTURE_RECTANGLE_ARB || readColorbufferType == GL_TEXTURE_2D_ARRAY || readColorbufferType == GL_TEXTURE_3D || Framebuffer::IsRenderbuffer(drawColorbufferType);
41854185
if(!validReadType || !validDrawType)
41864186
{
41874187
return error(GL_INVALID_OPERATION);

0 commit comments

Comments
 (0)