From c59270e2b82abe9bcb0af6a1593b81772f6306d3 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Sun, 19 Sep 2004 08:03:46 +0000 Subject: Add GL_ARB_texture_cube_map support for i830. Most of the code was lifted from the i915 side. i830 will now report version 1.3! Hurrah! With the exception of GL_EXT_texture_compression_s3tc, the i830 driver now supports all the extensions that its Windows counterpart supports. --- src/mesa/drivers/dri/i915/i830_vtbl.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/mesa/drivers/dri/i915/i830_vtbl.c') diff --git a/src/mesa/drivers/dri/i915/i830_vtbl.c b/src/mesa/drivers/dri/i915/i830_vtbl.c index b0a7287c901..22939e8e5c7 100644 --- a/src/mesa/drivers/dri/i915/i830_vtbl.c +++ b/src/mesa/drivers/dri/i915/i830_vtbl.c @@ -121,11 +121,15 @@ static void i830_render_start( intelContextPtr intel ) switch (sz) { case 1: case 2: - case 3: /* XXX: fix for CUBE/VOLUME textures */ emit = EMIT_2F; sz = 2; mcs |= TEXCOORDTYPE_CARTESIAN; break; + case 3: + emit = EMIT_3F; + sz = 3; + mcs |= TEXCOORDTYPE_VECTOR; + break; case 4: emit = EMIT_3F_XYW; sz = 3; -- cgit v1.2.3