Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ef0609db authored by Nick Desaulniers's avatar Nick Desaulniers Committed by android-build-merger
Browse files

Merge "[frameworks][native][opengl] fix -Wimplicit-int-float-conversion" am:...

Merge "[frameworks][native][opengl] fix -Wimplicit-int-float-conversion" am: 62f8e351 am: 4fd60fc0 am: 1503b663
am: 94ea3b28

Change-Id: Ie5ddabe01855e68ae3de7f932c43c4c97ac09857
parents 923b8272 94ea3b28
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -191,10 +191,10 @@ static void setupVA() {
static void randUniform(int pgm, const char *var) {
    GLint loc = glGetUniformLocation(pgm, var);
    if (loc >= 0) {
        float x = ((float)rand()) / RAND_MAX;
        float y = ((float)rand()) / RAND_MAX;
        float z = ((float)rand()) / RAND_MAX;
        float w = ((float)rand()) / RAND_MAX;
        float x = ((float)rand()) / (float)RAND_MAX;
        float y = ((float)rand()) / (float)RAND_MAX;
        float z = ((float)rand()) / (float)RAND_MAX;
        float w = ((float)rand()) / (float)RAND_MAX;
        glUniform4f(loc, x, y, z, w);
    }
}