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

Commit 6752d0ab authored by Romain Guy's avatar Romain Guy
Browse files

Mark color uniform fetched after fetching it

Change-Id: I10e8027018608070a536eb8b51c7a4272e37006c
parent 11326aa1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -153,7 +153,7 @@ void Program::set(const mat4& projectionMatrix, const mat4& modelViewMatrix,
void Program::setColor(const float r, const float g, const float b, const float a) {
    if (!mHasColorUniform) {
        mColorUniform = getUniform("color");
        mHasColorUniform = false;
        mHasColorUniform = true;
    }
    glUniform4f(mColorUniform, r, g, b, a);
}