Explorar el Código

mesa: fix bug in evaluation of structure fields

Fixes incorrect size information.  See bug 19273.

(cherry picked from commit e8d7db31e2)
tags/mesa_20090313
Brian Paul hace 16 años
padre
commit
158d3febd8
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  1. 1
    3
      src/mesa/shader/slang/slang_emit.c

+ 1
- 3
src/mesa/shader/slang/slang_emit.c Ver fichero

@@ -1999,9 +1999,7 @@ emit_struct_field(slang_emit_info *emitInfo, slang_ir_node *n)
_slang_copy_ir_storage(n->Store, n->Children[0]->Store);

n->Store->Index = n->Children[0]->Store->Index + fieldOffset / 4;
/* XXX test this:
n->Store->Index += fieldOffset / 4;
*/
n->Store->Size = fieldSize;

switch (fieldSize) {
case 1:

Cargando…
Cancelar
Guardar