summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_fp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_fp.cpp b/src/mesa/drivers/dri/i965/brw_fs_fp.cpp
index c4064da88a0..21d677a45a1 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_fp.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_fp.cpp
@@ -448,7 +448,7 @@ fs_visitor::emit_fragment_program_code()
break;
case TEXTURE_CUBE_INDEX: {
- coord_components = 4;
+ coord_components = 3;
fs_reg temp = vgrf(glsl_type::float_type);
fs_reg cubecoord = vgrf(glsl_type::vec3_type);