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

Commit 049c1147 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Convert half4 color to float array for buffer copy"

parents d2c0820d 89e197aa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -133,7 +133,7 @@ void Program::setUniforms(const Description& desc) {
        glUniformMatrix4fv(mTextureMatrixLoc, 1, GL_FALSE, desc.mTexture.getMatrix().asArray());
    }
    if (mColorLoc >= 0) {
        const float* color = &static_cast<details::TVec4<float> const &>(desc.mColor)[0];
        const float color[4] = {desc.mColor.r, desc.mColor.g, desc.mColor.b, desc.mColor.a};
        glUniform4fv(mColorLoc, 1, color);
    }
    if (mColorMatrixLoc >= 0) {