i965: blit_texture_to_pbo() now accepts TEXTURE_CUBE_MAP.
authorLaura Ekstrand <laura@jlekstrand.net>
Tue, 9 Dec 2014 20:19:13 +0000 (12:19 -0800)
committerLaura Ekstrand <laura@jlekstrand.net>
Thu, 8 Jan 2015 19:37:28 +0000 (11:37 -0800)
ARB_DIRECT_STATE_ACCESS permits the user to use TEXTURE_CUBE_MAP as a target.

Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/mesa/drivers/dri/i965/intel_tex_image.c

index 331777919c6e8369dd79b304b63afe6b891c133f..855a6b4eab4701737a70614a63251d83d7a87604 100644 (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 "