Przeglądaj źródła

Use _mesa_copy_instructions rather than memcpy in _mesa_insert_mvp_code.

tags/pre-merge-glsl-compiler-1
Oliver McFadden 18 lat temu
rodzic
commit
cfe984dbd0
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1
    2
      src/mesa/shader/programopt.c

+ 1
- 2
src/mesa/shader/programopt.c Wyświetl plik

@@ -100,8 +100,7 @@ _mesa_insert_mvp_code(GLcontext *ctx, struct gl_vertex_program *vprog)
}

/* Append original instructions after new instructions */
_mesa_memcpy(newInst + 4, vprog->Base.Instructions,
origLen * sizeof(struct prog_instruction));
_mesa_copy_instructions (newInst + 4, vprog->Base.Instructions, origLen);

/* free old instructions */
_mesa_free(vprog->Base.Instructions);

Ładowanie…
Anuluj
Zapisz