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

Commit 62f8e351 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

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

parents 8d2843ac 02233490
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);
    }
}