summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/nine/cubetexture9.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/state_trackers/nine/cubetexture9.c')
-rw-r--r--src/gallium/state_trackers/nine/cubetexture9.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/nine/cubetexture9.c b/src/gallium/state_trackers/nine/cubetexture9.c
index bb1219aa88f..8e1659a06ee 100644
--- a/src/gallium/state_trackers/nine/cubetexture9.c
+++ b/src/gallium/state_trackers/nine/cubetexture9.c
@@ -63,6 +63,10 @@ NineCubeTexture9_ctor( struct NineCubeTexture9 *This,
return D3DERR_INVALIDCALL;
}
+ /* We support ATI1 and ATI2 hacks only for 2D textures */
+ if (Format == D3DFMT_ATI1 || Format == D3DFMT_ATI2)
+ return D3DERR_INVALIDCALL;
+
info->screen = pParams->device->screen;
info->target = PIPE_TEXTURE_CUBE;
info->format = pf;