summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_blitter.c
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2012-05-11 13:36:46 +0100
committerJosé Fonseca <[email protected]>2012-05-11 14:36:20 +0100
commit223831ca146bc3aca615542794a7c3800ccbcc6f (patch)
tree9e638d22d3489cf593156509e6fdcd657aa3d45f /src/gallium/auxiliary/util/u_blitter.c
parent11aa82cc0bda6bd9162f76553a3f68e28978edae (diff)
gallium/tgsi: Redefine the TGSI_TEXTURE_UNKNOWN texture target.
Some code relies on the existing of an invalid texture target. It seems safer to bring it back than to deal with unintended consequences. This partially reverts commit a4ebb04214bab1cd9bd41967232ec89441e31744. Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util/u_blitter.c')
-rw-r--r--src/gallium/auxiliary/util/u_blitter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c
index 28e73832540..d0b9187d1f9 100644
--- a/src/gallium/auxiliary/util/u_blitter.c
+++ b/src/gallium/auxiliary/util/u_blitter.c
@@ -674,7 +674,7 @@ pipe_tex_to_tgsi_tex(enum pipe_texture_target pipe_tex_target)
return TGSI_TEXTURE_2D_ARRAY;
default:
assert(0 && "unexpected texture target");
- return 0;
+ return TGSI_TEXTURE_UNKNOWN;
}
}