Przeglądaj źródła

progs/tests: Use rand() instead of random().

More portable. Same implementation on Linux.
tags/mesa_7_7_rc1
José Fonseca 16 lat temu
rodzic
commit
699260b195
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      progs/tests/prog_parameter.c

+ 1
- 1
progs/tests/prog_parameter.c Wyświetl plik

@@ -116,7 +116,7 @@ static int set_parameter_batch( GLsizei count, GLfloat * param,


for ( i = 0 ; i < (4 * count) ; i++ ) {
param[i] = (GLfloat) random() / (GLfloat) random();
param[i] = (GLfloat) rand() / (GLfloat) rand();
}

/* Try using the "classic" interface.

Ładowanie…
Anuluj
Zapisz