Quellcode durchsuchen

mesa: implement unpack_SIGNED_GR1616 in format_unpack.c

tags/mesa-8.0-rc1
Brian Paul vor 14 Jahren
Ursprung
Commit
f0f28548c2
1 geänderte Dateien mit 5 neuen und 1 gelöschten Zeilen
  1. 5
    1
      src/mesa/main/format_unpack.c

+ 5
- 1
src/mesa/main/format_unpack.c Datei anzeigen

@@ -921,7 +921,11 @@ unpack_SIGNED_R16(const void *src, GLfloat dst[4])
static void
unpack_SIGNED_GR1616(const void *src, GLfloat dst[4])
{
/* XXX TODO */
const GLuint s = *((const GLuint *) src);
dst[RCOMP] = SHORT_TO_FLOAT_TEX( s & 0xffff );
dst[GCOMP] = SHORT_TO_FLOAT_TEX( s >> 16 );
dst[BCOMP] = 0.0F;
dst[ACOMP] = 1.0F;
}

static void

Laden…
Abbrechen
Speichern