i965: blit_texture_to_pbo() now accepts TEXTURE_CUBE_MAP.

ARB_DIRECT_STATE_ACCESS permits the user to use TEXTURE_CUBE_MAP as a target.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
This commit is contained in:
Laura Ekstrand
2014-12-09 12:19:13 -08:00
parent 60e3bfddaf
commit 838ef5b781

View File

@@ -459,6 +459,7 @@ blit_texture_to_pbo(struct gl_context *ctx,
if (target == GL_TEXTURE_1D_ARRAY ||
target == GL_TEXTURE_2D_ARRAY ||
target == GL_TEXTURE_CUBE_MAP ||
target == GL_TEXTURE_CUBE_MAP_ARRAY ||
target == GL_TEXTURE_3D) {
perf_debug("%s: no support for multiple slices, fallback to CPU mapping "